Jiji category filters

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

Every filter of a category as the site's search shows it: key (use it in /jiji/v1/search filters or ranges), label, type, unit, range bounds and presets with counts, and the possible values with listing counts (e.g. every car make). Pass filters to get dependent values (e.g. the models of one make).

Every response includes credits_used: the credits this call cost.

Part of the Jiji API: 15 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
categoryrequired string A category slug from /jiji/v1/categories. Example: cars
filters string Already chosen values as key:value;key2:value (e.g. filter_attr_1_make:Toyota to get its models).
region_id string A region id from /jiji/v1/regions to count values in one region.
country ng | ke | gh | ug | tz | et Country site: ng (default), ke, gh, ug, tz or et.

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

Example

curl "https://api.api.sh/jiji/v1/filters?category=cars" \
  -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)

{"country": "ng","category": "cars","total": 106894,"count": 20,"filters": [{"key": "price","label": "Price, ₦","type": "range","value_type": "int","unit": "₦","parent": null,"multiple": false,"range": {"min_param": "price_min","max_param": "price_max","min": 1100000,"max": 62000000000},"presets": [{"label": "Under 5 M","from": null,"to": 5000000,"count": 6413},{"label": "5 - 12 M","from": 5000000,"to": 12000000,"count": 25654},"… 3 more"],"popular_values": [],"values": []},{"key": "filter_attr_7314_popular_filters","label": "Popular Filters","type": "terms","value_type": "str","unit": null,"parent": null,"multiple": false,"range": null,"presets": [],"popular_values": [],"values": [{"value": "Low Mileage","count": 11828},{"value": "Automatic Cars","count": 104847},"… 7 more"]},"… 18 more"],"note": "Pass values as filters=key:value|value;key2:value to /jiji/v1/search, and range keys as ranges=key:min-max.","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.