API documentation

Welcome to OLX API!

Getting started

Many API endpoints require authentication or return additional information if you are authenticated.

You can authenticate your request by sending a token in the 'Authorization' header of your request. In the following example, replace {token} with a reference to your token:

Example request with bearer token

curl https://api.olx.ba/me \
  -H "Authorization: Bearer {token}"

If you try to use a API endpoint without a token or with a token that has insufficient permissions, you will receive a 404 Not Found or 403 Forbidden response.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

Resources

Users

Learn about the user model and how to create, retrieve, update, delete, and list user.

Listings

Learn about the listings model and how to create, retrieve, update, delete, and list listings.

Categories

Learn about the categories.