For error messages, see [Troubleshooting](/docs/troubleshooting).

## How do I set or change the redirect URI (callback URL)? [#callback-url]

Go to "Your apps", click "Edit" next to the app, fill in "Redirect URI" and click "Save changes". The URI must use HTTPS and must not point to `localhost`. To register more than one URI, separate them with a space. With more than one URI, you must send `redirect_uri` in the authorization request (see [Grant type: authorization_code](/api-reference#description/grant-type-authorization-code) in the API reference).

## Can I use the API to read other people's adverts? [#read-other-ads]

No. You can manage only the adverts of OLX accounts that connected your app through the `authorization_code` flow.

## Can I manage adverts in more than one country? [#multiple-countries]

Yes, but each country needs its own credentials. A `client_id` and `client_secret` work on one site only. To work in another country, sign in to the Developer Portal of that country with an OLX account from that country and register an app there.

| Country    | Site   |
| ---------- | ------ |
| Poland     | olx.pl |
| Bulgaria   | olx.bg |
| Romania    | olx.ro |
| Portugal   | olx.pt |
| Ukraine    | olx.ua |
| Kazakhstan | olx.kz |

## Is there a test environment? [#test-environment]

No. To test, create a separate OLX account, connect it to your app and run your requests against that account.

## In which categories can I post adverts? [#ad-categories]

It depends on the country. Some categories are closed to the API, for example real estate or free categories in Poland. If you are not sure about a category, [contact us](/contact) before you build around it.

<SiteOnly site="olxpl">

Categories open for posting in Poland:

- 4 (Praca)
- 5 (Motoryzacja)
- 87 (Moda)
- 88 (Dla Dzieci)
- 99 (Elektronika)
- 103 (Zwierzęta)
- 628 (Dom i Ogród)
- 751 (Muzyka i Edukacja)
- 757 (Rolnictwo)
- 767 (Sport i Hobby)
- 4371 (Usługi)

</SiteOnly>

## Is there a request limit? [#request-limit]

Yes: 4500 requests per IP address within 5 minutes. Above that, the IP is blocked for 30 minutes and every request returns a 403 page. See [Troubleshooting](/docs/troubleshooting#rate-limits) for what the block looks like and what to do.
