Skip to content

Structured Target data: send urls. Cursor-paginated, 1 credit per successful call.

GET · POST1 credit / successful callCursor-paginated
GEThttps://api.scrapier.io/api/v2/target-category/Open in Playground

Call GET /api/v2/target-category/ with urls. The results are in data.products; send data.next_cursor back as cursor to get the next page. 6 optional parameters refine the call (see Parameters).

Terminal window
curl -G "https://api.scrapier.io/api/v2/target-category/" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "urls=https://www.target.com/c/kitchen-dining/-/N-hz89j" \
--max-time 210
NameTypeRequiredDefaultDescription
X-API-Key headerstringyes—Your API key from the dashboard.
urlsstringyese.g. https://www.target.com/c/kitchen-dining/-/N-hz89jTarget category URL or bare category id. Required first call.
cursorstringno—Pagination cursor returned in the previous response's next_cursor. Pass it back unchanged to fetch the next page. When next_cursor is null, you have reached the last page.
sort_bystringnofeatured
featuredprice_lowprice_highratingbestsellingnewest
locked in cursor
store_idstringno3991
locked in cursor
zipstringno55403Availability store ZIP.
locked in cursor
enrich_detailsbooleannotrue
locked in cursor
include_sponsoredbooleannofalse
locked in cursor
Advanced
NameTypeDefaultDescription
use_proxybooleantrueRoute the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise.
raw_databooleanfalseWhen true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under raw_responses, in place of the formatted items. When false (default) you get the formatted output. Pagination (cursor / next_cursor) works the same in both modes.
{
"success": true,
"data": {
"urls": "https://www.target.com/c/kitchen-dining/contigo/-/N-hz89jZ5v3gb",
"category_id": "hz89j",
"page": 1,
"page_size": 24,
"total_results": 66,
"products": [
{
"input_url": "https://www.target.com/c/kitchen-dining/contigo/-/N-hz89jZ5v3gb",
"category_id": "hz89j",
"facets": "5v3gb",
"position": 2,
"page": 1,
"id": "1004801191",
"url": "https://www.target.com/p/contigo-cortland-chill-2-0-24oz-stainless-steel-water-bottle-with-autoseal-lid/-/A-1004801191",
"title": "Contigo Cortland Chill 2.0, 24 oz, Stainless Steel Water Bottle with AUTOSEAL Lid",
"description": "Press, sip, and seal your way to better hydration. The AUTOSEAL Stainless Steel Water Bottle lets you sip easily with just the push of a button...",
"seller": "CPGIO",
"brand": "Contigo",
"price": {
"current": 28.49,
"original": 35,
"currency": "USD"
},
"rating": {
"average": 4.86,
"count": 34
},
"image_urls": [
"https://target.scene7.com/is/image/Target/GUEST_779483a4-5e59-473e-93cc-3445e4d35511"
],
"availability": "IN_STOCK",
"reviews_count": 32,
"features": [
"Push AUTOSEAL button for 100% spill-proof one-handed drinking; spout automatically seals when button is released",
"Double-wall vacuum-insulated stainless steel keeps drinks cold for 24 hours and hot for 6 hours"
],
"scraped_at": "2026-09-23T11:29:59.623Z"
}
],
"next_cursor": "eyJjIjoiaHo4OWoiLCJmIjoiNXYzZ2IiLCJuIjoyNCwibnAiOjIsInAiOjJ9"
}
}

Sample from the live catalog; arrays trimmed to 3 items. Results are in data.products.

FieldTypeExampleDescription
urlsstringhttps://www.target.com/c/kitchen-dining/conti…—
category_idstringhz89j—
pageinteger1—
page_sizeinteger24—
total_resultsinteger66—
productsarray[1 item]The results.
next_cursorstringeyJjIjoiaHo4OWoiLCJmIjoiNXYzZ2IiLCJuIjoyNCwib…Pass back as cursor for the next page. null on the last page.
products[].input_urlstringhttps://www.target.com/c/kitchen-dining/conti…—
products[].category_idstringhz89j—
products[].facetsstring5v3gb—
products[].positioninteger2—
products[].pageinteger1—
products[].idstring1004801191—
products[].urlstringhttps://www.target.com/p/contigo-cortland-chi…—
products[].titlestringContigo Cortland Chill 2.0, 24 oz, Stainless …—
products[].descriptionstringPress, sip, and seal your way to better hydra…—
products[].sellerstringCPGIO—
products[].brandstringContigo—
products[].priceobject{…}—
products[].ratingobject{…}—
products[].image_urlsarray[1 item]—
products[].availabilitystringIN_STOCK—
products[].reviews_countinteger32—
products[].featuresarray[2 items]—
products[].scraped_atstring2026-09-23T11:29:59.623Z—

Pass data.next_cursor back as cursor until it is null. Required inputs are ignored once a cursor is sent. Each page is one billed call. More in Pagination.

const url = "https://api.scrapier.io/api/v2/target-category/";
let params = { urls: "https://www.target.com/c/kitchen-dining/-/N-hz89j" };
const items = [];
for (let page = 0; page < 10; page++) { // each page is one billed call
const res = await fetch(`${url}?${new URLSearchParams(params)}`, {
headers: { "X-API-Key": "YOUR_API_KEY" },
signal: AbortSignal.timeout(210_000),
});
const body = await res.json();
if (!res.ok) throw new Error(body.error ?? body.detail ?? `HTTP ${res.status}`);
const data = body.data;
items.push(...(data.products ?? []));
if (!data.next_cursor) break; // null = last page
params = { cursor: data.next_cursor };
}

Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.

StatusMeaningRetry?Charged?
400Bad or missing input.No — fix the paramsNo
401 / 403Missing, invalid or revoked API key.No — fix the keyNo
402Out of credits (body has balance).No — top upNo
404Unknown endpoint slug.No — check the slugNo
429 / 503Busy or throttled.Yes — after Retry-AfterNo
5xxTarget site or upstream failure, or timeout.Yes — with backoffNo
  • Locked into the cursor: sort_by, store_id, zip, enrich_details, include_sponsored. Set them on the first call; later pages reuse them.
  • Target Reviews — Structured Target data: send urls. Cursor-paginated, 1 credit per successful call.
  • Target Search Products — Structured Target data: send queries. Cursor-paginated, 1 credit per successful call.
  • Target Single Product Info — Structured Target data: send urls. Single lookup, 1 credit per successful call.
  • Target Stores — Structured Target data: send queries. Cursor-paginated, 1 credit per successful call.