Target
Target price, regular price, stock, shipping, store pickup and same-day delivery by TCIN, about 3 million items per credit.
Target price, regular price, stock, shipping, store pickup and same-day delivery by TCIN, about 3 million items per credit.
At a glance
Property | Value |
|---|---|
|
|
Item id | The TCIN: the number after |
Marketplaces |
|
Tier |
|
Ids per call | 1,000 |
Typical call | 5–15 s for 1,000 TCINs |
Example
- cURL
- Python
- Node.js
curl -X POST "https://api.scrapelyserp.com/v1/products" \
-H "Authorization: Bearer $SCRAPELY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"target","ids":["83887639","1011697103","54191097"]}'import os
import requests
HEADERS = {"Authorization": f"Bearer {os.environ['SCRAPELY_API_KEY']}"}
r = requests.post(
"https://api.scrapelyserp.com/v1/products",
headers=HEADERS,
json={
"platform": "target",
"ids": ["83887639", "1011697103", "54191097"],
},
timeout=120,
)
r.raise_for_status()
data = r.json()
for p in data["results"]:
print(p["id"], p["status"], (p.get("price") or {}).get("amount"))const res = await fetch('https://api.scrapelyserp.com/v1/products', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SCRAPELY_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ platform: 'target', ids: ['83887639', '1011697103', '54191097'] }),
signal: AbortSignal.timeout(120_000),
});
if (!res.ok) throw new Error((await res.json()).error.code);
const data = await res.json();
for (const p of data.results) console.log(p.id, p.status, p.price?.amount);Full reference → POST /v1/products
1011697103 is a variation parent: it answers with its featured variant, whose TCIN is target.tcin. 54191097 does not exist, so it is not_found.
Store and location
Target prices and stocks some items per store. Answers are for one reference store, named in target.pickup: shipping is national, pickup and same-day delivery are that store's. Send zip (a 5-digit US ZIP code) to get the answer for the Target store that serves it instead: prices, stock, pickup and same-day delivery are that store's, and target.pickup names it. An unknown ZIP code is a free 400.
Target fields
Besides the common fields, each result carries a target object.
Field | Description |
|---|---|
| The item that was priced (a parent's featured variant), and its variation parent. |
| The regular price, Target's own price text (may be a range), and the unit price. |
| Sold out online and in every store. |
|
|
| Order pickup (store, quantity, date) and same-day delivery at the reference store. |
| Target's product type, and the brand when Target names one. |
availability.inStock is true when the item ships, or can be picked up or delivered the same day from the reference store; message says which. Fulfilment statuses are upper-case: IN_STOCK, LIMITED_STOCK, OUT_OF_STOCK, UNAVAILABLE, …
Statuses on Target
partial: the item answered without a price or stock. Ask again later.not_found: Target says there is no such TCIN. Delist it.
Watchlists
A watchlist with "platform": "target" reads each TCIN once per run and reports changes to price, regularPrice, inStock, shipping, pickup.