> Documentation index: https://docs.scrapier.io/llms.txt
> Auth: header `X-API-Key: <key>` · Base: https://api.scrapier.io/api/v2 · Synchronous; paginate with `cursor` ← `data.next_cursor`.

# Target Stores

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

`GET|POST https://api.scrapier.io/api/v2/target-stores/` · 1 credit per successful call · Cursor-paginated

## 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

```bash
curl -G "https://api.scrapier.io/api/v2/target-stores/" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "queries=10001" \
  --max-time 210
```

```python
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"])
```

POST with a JSON body works too (same parameters; the body is merged over the query string).

## Parameters

| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| `X-API-Key` (header) | string | yes | — | Your API key. |
| `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. |
| `use_proxy` | boolean | no | `true` | Route the request through Scrapier's residential proxy pool. Default: `true`. Leave as is unless support tells you otherwise. |
| `raw_data` | boolean | no | `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

HTTP 200. Results are in `data.stores`. Sample from the live catalog, arrays trimmed to 3 items.

```json
{
  "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"
  }
}
```

## 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

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.

```python
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

Failed calls are free. Branch on HTTP status; the message is in `error` (or `detail`). See https://docs.scrapier.io/errors.md

- **400** Bad input. The exact message varies by endpoint. `{"success":false,"error":"…"}`
- **402** Balance below the endpoint's price. `{"error":"Insufficient credits. Buy more to scrape more.","balance":1,"required":2}`
- **403** Invalid or unknown API key. `{"detail":"Authentication service unavailable or invalid API key."}`
- **429** Throttled — wait for Retry-After. `{"detail":"Request was throttled. Expected available in N seconds."}`
- **404** unknown slug · **503** busy (retry after `Retry-After`) · **5xx** upstream failure or timeout (retry with backoff).

## Notes

- Locked into the cursor: `radius_miles`, `include_details`, `include_google`. Set them on the first call; later pages reuse them.

## Related

- [Target Category](https://docs.scrapier.io/api-reference/target/target-category.md): Structured Target data: send `urls`. Cursor-paginated, 1 credit per successful call.
- [Target Reviews](https://docs.scrapier.io/api-reference/target/target-reviews.md): Structured Target data: send `urls`. Cursor-paginated, 1 credit per successful call.
- [Target Search Products](https://docs.scrapier.io/api-reference/target/target-search-products.md): Structured Target data: send `queries`. Cursor-paginated, 1 credit per successful call.
- [Target Single Product Info](https://docs.scrapier.io/api-reference/target/target-single-product-info.md): Structured Target data: send `urls`. Single lookup, 1 credit per successful call.
