Target Stores
Structured Target data: send queries. Cursor-paginated, 1 credit per successful call.
Overview
Section titled “Overview”Call GET /api/v2/target-stores/ with queries. The results are in data.stores; send data.next_cursor back as cursor to get the next page. 4 optional parameters refine the call (see Parameters).
Request
Section titled “Request”curl -G "https://api.scrapier.io/api/v2/target-stores/" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "queries=10001" \ --max-time 210const params = new URLSearchParams({ queries: "10001" });
const res = await fetch(`https://api.scrapier.io/api/v2/target-stores/?${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}`);
console.log(body.data.stores);import requests
resp = requests.get( "https://api.scrapier.io/api/v2/target-stores/", headers={"X-API-Key": "YOUR_API_KEY"}, params={"queries": "10001"}, timeout=210,)body = resp.json()if not resp.ok: raise RuntimeError(body.get("error") or body.get("detail"))
print(body["data"]["stores"])curl -X POST "https://api.scrapier.io/api/v2/target-stores/" \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"queries":"10001"}' \ --max-time 210Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
X-API-Key header | string | yes | — | Your API key from the dashboard. |
queries | string | yes | e.g. 10001 | ZIP, city, "city, ST", state or Target URL. Required first call. 20 stores per page. |
cursor | string | no | — | 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. |
radius_miles | integer | no | 100 | locked in cursor |
include_details | boolean | no | true | locked in cursor |
include_google | boolean | no | false | Google rating/reviews/photos. locked in cursor |
Advanced
| Name | Type | Default | Description |
|---|---|---|---|
use_proxy | boolean | true | Route the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise. |
raw_data | boolean | false | When 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. |
Response
Section titled “Response”{ "success": true, "data": { "queries": "10001", "input_type": "search", "radius_miles": 100, "page": 1, "page_size": 20, "stores": [ { "keyword": "10001", "input_type": "search", "position": 1, "store_id": "3412", "name": "Chelsea 23rd and 8th", "url": "https://www.target.com/sl/chelsea-23rd-and-8th/3412", "category": "TargetExpress", "status": "Open", "distance": 0.37, "address": "258 8th Ave, New York, NY 10011-1619", "street": "258 8th Ave", "city": "New York", "state": "NY", "postal_code": "10011-1619", "phone": "646-720-0024", "latitude": 40.745412, "longitude": -73.998103, "timezone": "America/New_York", "rating": null, "rating_max": null, "reviews_count": null, "price_level": null, "verified": true, "description": "Shop Target Chelsea 23rd and 8th Store for furniture, electronics, clothing, groceries, home goods and more at prices you will love.", "image_urls": [ "https://api.target.com/store_maps/v1/external/svg_images?location_id=3412&floor_id=1&key=9f36aeafbe60771e321a7cc95a78140772ab3e96", "https://api.target.com/geospatial_locations/v1/static_map?place=40.745412,-73.998103&key=9f36aeafbe60771e321a7cc95a78140772ab3e96" ], "hours": [ { "date": "2026-09-24", "day_name": "Thursday", "is_open": true, "opens_at": "08:00:00", "closes_at": "23:00:00" } ], "scraped_at": "2026-09-24T11:29:11.828Z" } ], "next_cursor": "eyJqIjp7ImlucHV0IjoiMTAwMDEiLCJraW5kIjoic2VhcmNoIiwicGxhY2UiOiIxMDAwMSJ9LCJsayI6eyJpbmNsdWRlX2RldGFpbHMiOnRydWUsImluY2x1ZGVfZ29vZ2xlIjpmYWxzZSwicmFkaXVzX21pbGVzIjoxMDB9LCJvIjoyMCwicCI6Mn0" }}Bad input. The exact message varies by endpoint.
{ "success": false, "error": "…"}Balance below the endpoint’s price.
{ "error": "Insufficient credits. Buy more to scrape more.", "balance": 1, "required": 2}Invalid or unknown API key.
{ "detail": "Authentication service unavailable or invalid API key."}Throttled — wait for Retry-After.
{ "detail": "Request was throttled. Expected available in N seconds."}Sample from the live catalog; arrays trimmed to 3 items. Results are in data.stores.
Response fields
Section titled “Response fields”| Field | Type | Example | Description |
|---|---|---|---|
queries | string | 10001 | — |
input_type | string | search | — |
radius_miles | integer | 100 | — |
page | integer | 1 | — |
page_size | integer | 20 | — |
stores | array | [1 item] | The results. |
next_cursor | string | eyJqIjp7ImlucHV0IjoiMTAwMDEiLCJraW5kIjoic2Vhc… | Pass back as cursor for the next page. null on the last page. |
stores[].keyword | string | 10001 | — |
stores[].input_type | string | search | — |
stores[].position | integer | 1 | — |
stores[].store_id | string | 3412 | — |
stores[].name | string | Chelsea 23rd and 8th | — |
stores[].url | string | https://www.target.com/sl/chelsea-23rd-and-8t… | — |
stores[].category | string | TargetExpress | — |
stores[].status | string | Open | — |
stores[].distance | number | 0.37 | — |
stores[].address | string | 258 8th Ave, New York, NY 10011-1619 | — |
stores[].street | string | 258 8th Ave | — |
stores[].city | string | New York | — |
stores[].state | string | NY | — |
stores[].postal_code | string | 10011-1619 | — |
stores[].phone | string | 646-720-0024 | — |
stores[].latitude | number | 40.745412 | — |
stores[].longitude | number | -73.998103 | — |
stores[].timezone | string | America/New_York | — |
stores[].rating | null | null | — |
stores[].rating_max | null | null | — |
stores[].reviews_count | null | null | — |
stores[].price_level | null | null | — |
stores[].verified | boolean | true | — |
stores[].description | string | Shop Target Chelsea 23rd and 8th Store for fu… | — |
stores[].image_urls | array | [2 items] | — |
stores[].hours | array | [1 item] | — |
stores[].scraped_at | string | 2026-09-24T11:29:11.828Z | — |
Pagination
Section titled “Pagination”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-stores/";let params = { queries: "10001" };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.stores ?? [])); if (!data.next_cursor) break; // null = last page params = { cursor: data.next_cursor };}import requests
URL = "https://api.scrapier.io/api/v2/target-stores/"HEADERS = {"X-API-Key": "YOUR_API_KEY"}params = {"queries": "10001"}items = []
for _ in range(10): # each page is one billed call resp = requests.get(URL, headers=HEADERS, params=params, timeout=210) resp.raise_for_status() data = resp.json()["data"] items.extend(data.get("stores") or []) if not data.get("next_cursor"): # None = last page break params = {"cursor": data["next_cursor"]}Errors
Section titled “Errors”Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.
| Status | Meaning | Retry? | Charged? |
|---|---|---|---|
400 | Bad or missing input. | No — fix the params | No |
401 / 403 | Missing, invalid or revoked API key. | No — fix the key | No |
402 | Out of credits (body has balance). | No — top up | No |
404 | Unknown endpoint slug. | No — check the slug | No |
429 / 503 | Busy or throttled. | Yes — after Retry-After | No |
5xx | Target site or upstream failure, or timeout. | Yes — with backoff | No |
- Locked into the cursor:
radius_miles,include_details,include_google. Set them on the first call; later pages reuse them.
Related
Section titled “Related”- Target Category — Structured Target data: send
urls. Cursor-paginated, 1 credit per successful call. - 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.