Hotline.ua category filters

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

Every filter group of a Hotline.ua category (brand, price, and each specification) with value ids, titles, aliases, descriptions and product counts, recalculated for the filters already chosen. Pass value ids to the category endpoint as filters or exclude.

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
pathrequired string Category link or path. Example: /mobile/mobilnye-telefony-i-smartfony/
filters string Already chosen value ids (comma-separated), to get counts for the next choice.
exclude string Excluded value ids.
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/category/filters?path=%2Fmobile%2Fmobilnye-telefony-i-smartfony%2F" \
  -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)

{"path": "/mobile/mobilnye-telefony-i-smartfony/","category_id": 11,"category": "Смартфони та мобільні телефони","total": 4443,"lang": "uk","applied_filters": {"filters": [],"exclude": []},"count": 45,"filters": [{"id": 185,"title": "Ціна","type": "price","description": null,"excludable": false,"top_value_ids": [],"values": [{"id": -2,"title": "506","alias": null,"count": 0,"total_count": 0,"group": null,"description": null},{"id": -1,"title": "231299","alias": null,"count": 0,"total_count": 0,"group": null,"description": null}]},{"id": 8156,"title": "Популярні фільтри","type": "smart","description": null,"excludable": false,"top_value_ids": [],"values": [{"id": 572578,"title": "Смартфон з NFC","alias": null,"count": 3870,"total_count": 3870,"group": null,"description": "це пристрій із підтримкою технології для безконтактних платежів, як-от оплата через Google Pay або Apple Pay. NFC також дає змогу обмінювати…"},{"id": 385521,"title": "6000 мА·год і більше","alias": null,"count": 1532,"total_count": 1532,"group": null,"description": "це ємність акумулятора смартфона, що показує, скільки енергії він може зберігати. Смартфони з такою ємністю забезпечують до 2 днів роботи за…"},"… 14 more"]},"… 43 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.