allegro / allegro-api

Issue tracker and wiki for Allegro REST API
https://developer.allegro.pl/
213 stars 39 forks source link

Getting categories in other languages #9926

Open hoszke opened 18 hours ago

hoszke commented 18 hours ago

I am using endpoint to getting categories: https://api.allegro.pl.allegrosandbox.pl/sale/categories

By default it downloads in polish. How can I download it in other languages (english, or other available languages)?

PrzemyslawLukanowski commented 18 hours ago

Yes, it is possible, just add an Accept-Language header in your request and provide one of the supported values: en-US, cs-CZ, sk-SK.

hoszke commented 16 hours ago

Thanks! Is it known, that how often it changes? Is it possible to get the modified categories after specified timestamp?

PrzemyslawLukanowski commented 16 hours ago

You can track category changes using GET /sale/category-events. There's no single rule for changes so the frequency of changes may vary. There's no possibility to get categories after a specified timestamp, you can only use the "from" parameter, thanks to which you will get changes from specific event.