Hotline.ua category menu

GET https://api.api.sh/hotline/v1/categories
1 credit / call e-commerce try it in the playground →

Hotline.ua's category menu: every department, group and category with id, title, link and path, or one branch when id is given. Paths work with the category endpoints.

Every response includes credits_used: the credits this call cost.

Part of the Hotline.ua API: 13 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
id string Return only this menu item and its children.
lang uk | ru Language (default uk).

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/hotline/v1/categories" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"lang": "uk","id": null,"count": 24,"categories": [{"id": 10,"title": "Енергозабезпечення","url": "https://hotline.ua/power/","path": "/power/","level": 1,"children": [{"id": 7428,"title": "Енергозабезпечення","url": "https://hotline.ua/power/energy/","path": "/power/energy/","level": 2,"children": []},{"id": 7429,"title": "Зарядні станції","url": "https://hotline.ua/mobile/zaryadnye-stancii/","path": "/mobile/zaryadnye-stancii/","level": 3,"children": []},"… 46 more"]},{"id": 14,"title": "Смартфони, Смарт-годинники","url": "https://hotline.ua/mobile/","path": "/mobile/","level": 1,"children": [{"id": 1697,"title": "Смартфони та мобільні телефони","url": "https://hotline.ua/mobile/telefony-i-garnitury/","path": "/mobile/telefony-i-garnitury/","level": 2,"children": []},{"id": 168,"title": "Смартфони та мобільні телефони","url": "https://hotline.ua/mobile/mobilnye-telefony-i-smartfony/","path": "/mobile/mobilnye-telefony-i-smartfony/","level": 3,"children": []},"… 113 more"]},"… 22 more"],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.