Target category

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

Products of a Target category (browse) page, 24 per page: title, brand, price, rating, images, promotions and more, with the category name, breadcrumbs, related categories, facets (pass their ids back as facets) and sort options. Pass next_page from the previous response; next_page is null on the last page.

Every response includes credits_used: the credits this call cost.

Parameters

nametypedescription
category string A Target category id, the part after N- in a target.com/c/ link (5xt1a is Grocery). Required unless url is given. Example: 5xt1a
url string A target.com/c/<name>/-/N-<id> category page; facets in the link are applied too.
page integer Page number. Pass next_page from the previous response; next_page is null on the last page.
sort featured | price_asc | price_desc | rating | bestselling | newest
facets string Facet ids from facets (brand, price, rating, deals...), comma separated.
store_id string Target store id for prices and availability (default 3991).

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

Example

curl "https://api.api.sh/target/v1/category?category=5xt1a" \
  -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).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.