Target product API
One Target item with price at a store, specifications, images, ratings and variations.
GET /v1/target/products/{tcin}2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/target/products/87450164",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "tcin": "87450164", "product": { "__typename": "Product", "tcin": "54406334", "category": { "parent_category_id": "4ydi5", "name": "Holiday Hosting & Entertaining", "breadcrumbs": [ "…" ] }, "sales_classification_nodes": { "node_ids": [ "…" ] }, "ratings_and_reviews": { "has_verified": true, "statistics": { "…": "6 fields" }, "most_recent": [ "…" ], "photos": [ "…" ] }, "variation_hierarchy": [ { "…": "5 fields" }, "… 2 more" ], "desirability_cues": [ { "…": "3 fields" } ], "ornaments": [ { "…": "6 fields" }, "… 1 more" ], "…": "6 more fields" }}Parameters
| Name | Type | Description |
|---|---|---|
tcinpath · required | string | Target item number (TCIN), or a target.com/p/…/A-<tcin> URL. Example: 87450164. |
store_idquery | string | Store whose prices and stock to use (default 3991). |
Response fields
200 with a TargetProductResponse, in the JSON Target’s own site reads.
| Field | Type | Description |
|---|---|---|
tcin | string | |
product | TargetProduct | Target’s pdp_client product: item (title, brand, bullets, images, specs), price, ratings_and_reviews, variation_hierarchy, children, promotions, category. |
Status codes
| Status | Meaning |
|---|---|
200 | The item. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The item, category or place does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Target is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Target is a trademark of Target Brands, Inc. We are not affiliated with or endorsed by Target.