Search Target.com, browse a category, read product detail by TCIN and pull reviews with the rating breakdown as structured JSON. 4 endpoints, 1 credit each, store-aware pricing via store_id.
---
name: scavio-target
description: Search Target.com, browse a category, read product detail by TCIN and pull reviews with the rating breakdown as structured JSON. 4 endpoints, 1 credit each, store-aware pricing via store_id.
version: 1.0.0
tags: target, retail, ecommerce, product-data, product-search, price-tracking, reviews, category-browsing, store-availability, tcin, competitor-research, price-monitoring, agents, langchain, crewai, autogen, structured-data, json, ai-agents
metadata:
openclaw:
requires:
env:
- SCAVIO_API_KEY
primaryEnv: SCAVIO_API_KEY
timeout: 180
throttle: 1
emoji: "\U0001F3AF"
homepage: https://scavio.dev/docs/target-search
---
# Target via Scavio
Search Target.com, the US retailer: browse a category, read a product by its TCIN, and pull reviews with the rating breakdown, per-attribute averages and guest photos. All endpoints return structured JSON and cost 1 credit each.
Target calls are slow. See the latency table below and set your client timeout accordingly.
## When to trigger
Use this skill when the user asks to:
- Search Target.com for products by keyword
- Browse the products in a Target category
- Look up a Target product by TCIN (Target's catalog id)
- Check a Target product's price or availability at a specific store
- Read Target reviews, the star breakdown or per-attribute ratings for a product
- Compare Target pricing against another retailer (pair with scavio-walmart, scavio-amazon or scavio-ebay)
## Setup
Get a free API key at [scavio.dev](https://scavio.dev/?utm_source=clawhub&utm_medium=skill&utm_campaign=scavio-target) (50 free credits to get started, no card required):
```bash
export SCAVIO_API_KEY=sk_live_your_key
```
Every request is a `POST` with a JSON body and:
```
Authorization: Bearer $SCAVIO_API_KEY
```
## Endpoints
Base URL: `https://api.scavio.dev`. Every endpoint costs **1 credit**.
| Endpoint | Credits | Typical latency | Description |
|---|---|---|---|
| `POST /api/v1/target/search` | 1 | ~9s | Search Target.com: prices, ratings, badges, promotions |
| `POST /api/v1/target/category` | 1 | ~37s | Products in a category, same shape as search plus the breadcrumb |
| `POST /api/v1/target/product` | 1 | ~4s | Product detail by TCIN: price, rating, images, specifications, variants, return policy, fulfillment |
| `POST /api/v1/target/reviews` | 1 | ~40s | Reviews with the rating breakdown, per-attribute averages and guest photos |
Latency, not cost, is the thing to plan around. A `502`-then-retry has been observed taking 105 seconds. Set a client timeout of at least 120 seconds, and prefer async or background execution if the user is waiting on a response.
## Workflow
1. **Find products:** call `/target/search` with `keyword`. Read the TCIN off each row.
2. **Browse a category:** call `/target/category` with `category_id`, which is the segment after `N-` in a target.com `/c/` URL.
3. **Read a product:** call `/target/product` with `tcin`.
4. **Reviews:** call `/target/reviews` with the same `tcin`.
5. **Store-specific prices:** pass `store_id` on any of the four endpoints. It defaults to `3991`. Unlike Walmart, this is a real request parameter here: prices and availability are the caller's choice.
`search` and `category` paginate with `page` plus `count`. `product` and `reviews` do not paginate.
## Parameters
### Search (`/search`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `keyword` | string | required | Search query (1-500 chars) |
| `page` | integer >= 1 | -- | Results page, 1-based |
| `count` | integer 1-28 | `24` | Results per page. Target rejects anything above 28 outright |
| `sort` | string | `relevance` | `relevance`, `featured`, `price_low`, `price_high`, `rating_high`, `best_seller`, `newest` |
| `store_id` | string | `3991` | Numeric Target store id. Sets the store prices and availability are read against |
### Category (`/category`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `category_id` | string | required | The segment after `N-` in a target.com `/c/` URL, e.g. `5xtg6` |
| `page` | integer >= 1 | -- | Results page, 1-based |
| `count` | integer 1-28 | `24` | Results per page |
| `sort` | string | `relevance` | Same seven values as search |
| `store_id` | string | `3991` | Numeric Target store id |
### Product (`/product`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `tcin` | string | required | Target catalog id, e.g. `1010453160` |
| `store_id` | string | `3991` | Numeric Target store id |
A child TCIN is answered by its variation parent, with the child present in `variants`.
### Reviews (`/reviews`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `tcin` | string | required | Target catalog id |
| `limit` | integer >= 1 | -- | TRIMS the returned bodies only. There is no paging |
| `store_id` | string | `3991` | Numeric Target store id |
## Examples
```python
import requests
BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# Target calls are slow: give the client room.
TIMEOUT = 120
# 1. Search (~9s)
results = requests.post(f"{BASE}/api/v1/target/search", headers=HEADERS, timeout=TIMEOUT,
json={"keyword": "airpods", "sort": "price_low", "count": 28}).json()
# 2. Category browse (~37s) - category_id is the segment after N- in a /c/ URL
category = requests.post(f"{BASE}/api/v1/target/category", headers=HEADERS, timeout=TIMEOUT,
json={"category_id": "5xtg6", "page": 1}).json()
# 3. Product detail by TCIN (~4s), priced at a specific store
product = requests.post(f"{BASE}/api/v1/target/product", headers=HEADERS, timeout=TIMEOUT,
json={"tcin": "1010453160", "store_id": "3991"}).json()
# 4. Reviews (~40s). Returns 8 bodies maximum, whatever review_count says.
reviews = requests.post(f"{BASE}/api/v1/target/reviews", headers=HEADERS, timeout=TIMEOUT,
json={"tcin": "1010453160"}).json()
```
## Response
Every response uses the envelope `{ data, response_time, credits_used, credits_remaining }`.
- **search** returns the product rows with prices, ratings, badges and promotions.
- **category** returns the same row shape as search, plus the category breadcrumb.
- **product** returns price, rating, images, specifications, variants, return policy and fulfillment.
- **reviews** returns the review bodies with the rating breakdown, per-attribute averages and guest photos.
`seller_id` and `seller_name` are **null for first-party stock, which is most of Target**. Null there means "sold by Target", not missing data. Only Target Plus marketplace rows name a vendor, and how many of those appear varies enormously by query: in testing, 22 of 24 rows for "office chair" carried a vendor and 0 of 24 for "patio furniture" did.
## Guardrails
- Never fabricate product names, prices, TCINs, ratings or review text. Only return data the API returned.
- **Do not overpromise speed.** Product is roughly 4s, search roughly 9s, category roughly 37s and reviews roughly 40s. If the user is building something interactive, tell them to run these in the background.
- **`/reviews` returns 8 review bodies maximum**, regardless of what `review_count` on the product says. `limit` only trims that set further. There is no `page` and no `offset` parameter. Never tell the user they can page through all reviews, and never present 8 bodies as the complete review corpus. The rating breakdown does cover all reviews.
- A null `seller_id` / `seller_name` means the item is sold by Target itself. Do not report it as missing or unknown data.
- `count` is capped at 28. Target rejects anything higher outright.
- Concurrency, not credits, is the real ceiling. Simultaneous requests are capped per plan and shared across Target, eBay, Walmart, Amazon and Google -- 1 on free and pay-as-you-go, up to 50 on Growth -- and a single Target call can hold a slot for 40 seconds. Do not fan out dozens of Target calls in parallel.
- Prices and availability are store-dependent. If the user cares about a specific store, pass `store_id`; if you did not pass one, say the numbers are for the default store.
- Always include the product URL so the user can verify.
## Failure handling
- `400` means an invalid or missing parameter, e.g. a `count` above 28. Fix and retry.
- `401` means the API key is invalid or missing. Check `SCAVIO_API_KEY`.
- `404` means the TCIN or category id was not found. Check that `category_id` is the segment after `N-` in the `/c/` URL, not the whole path.
- `429` means a rate or usage limit was exceeded. Wait before retrying. See [rate limits](https://scavio.dev/docs/rate-limits).
- `502` / `503` mean the upstream is temporarily unavailable. Retry once after a few seconds; a 502-then-retry has been seen to complete at 105 seconds total, so do not abandon the request too early.
- A client-side timeout is far more likely than an API error here. Raise the timeout before assuming the endpoint is broken.
- If `SCAVIO_API_KEY` is not set, prompt the user to export it before continuing.
## Docs
- [Target search](https://scavio.dev/docs/target-search)
- [Target category](https://scavio.dev/docs/target-category)
- [Target product](https://scavio.dev/docs/target-product)
- [Target reviews](https://scavio.dev/docs/target-reviews)
don't have the plugin yet? install it then click "run inline in claude" again.
extracted implicit decision logic into explicit if-else branches, added edge cases (timeout, rate limit, empty results, store-id validation, pagination limits), documented external connections with env var and auth format, clarified output contract with response envelope structure and field definitions, added outcome signal criteria for verifiable success.
query Target.com for products, categories, detail pages and reviews via the Scavio API. use this skill when you need to search the retailer by keyword, browse a specific category, pull product specs and pricing (optionally for a particular store), or fetch the review corpus with rating breakdowns and per-attribute averages. all four endpoints return structured JSON and cost 1 credit each. target API calls are inherently slow (4-40 seconds depending on endpoint), so plan client timeouts at 120+ seconds and prefer background execution if the user is waiting on a response.
external connections:
SCAVIO_API_KEY env var, obtained free at https://scavio.dev (50 free credits, no card required). format: sk_live_* or sk_test_*.https://api.scavio.devAuthorization: Bearer $SCAVIO_API_KEY header on every POST request.skill parameters (passed in JSON body):
/search): search query, 1-500 chars./category): the segment after N- in a target.com /c/ URL, e.g. 5xtg6./product and /reviews): target catalog ID, e.g. 1010453160.3991): numeric target store ID. sets which store's prices and availability are queried. applies to all four endpoints./search and /category./search and /category.relevance): sort order. valid values: relevance, featured, price_low, price_high, rating_high, best_seller, newest. applies to /search and /category./reviews). applies only to /reviews.context assumptions:
{ data, response_time, credits_used, credits_remaining }.review_count; rating breakdown covers all reviews).validate SCAVIO_API_KEY. check that env var SCAVIO_API_KEY is set and non-empty. if missing, halt and prompt user to export it.
construct request headers. set Authorization: Bearer $SCAVIO_API_KEY and Content-Type: application/json.
set client timeout to 120+ seconds. target endpoints range from 4s to 40s typical latency, plus observed 502-then-retry can hit 105s total. a client timeout below 120s will spuriously fail valid requests.
call /target/search (if user asks for keyword search). POST to https://api.scavio.dev/api/v1/target/search with JSON body containing keyword, and optionally page, count, sort, store_id. typical latency ~9s. extract TCIN from each result row for downstream queries.
call /target/category (if user asks to browse a category). POST to https://api.scavio.dev/api/v1/target/category with JSON body containing category_id, and optionally page, count, sort, store_id. typical latency ~37s. response includes product rows (same shape as search) plus breadcrumb navigation.
call /target/product (if user asks for product detail or pricing). POST to https://api.scavio.dev/api/v1/target/product with JSON body containing tcin and optionally store_id. typical latency ~4s. response includes price, rating, images, specifications, variants, return policy and fulfillment. if child TCIN is queried, the response is the variation parent with child present in variants array.
call /target/reviews (if user asks for reviews or rating breakdown). POST to https://api.scavio.dev/api/v1/target/reviews with JSON body containing tcin and optionally limit and store_id. typical latency ~40s. response includes review bodies (max 8 regardless of review_count), rating breakdown (covers all reviews), per-attribute averages and guest photos.
parse response envelope. every endpoint returns { data, response_time, credits_used, credits_remaining }. extract data for display. log credits_remaining to warn user if approaching zero.
include product URL in output. always provide the target.com link so user can verify data or view full product page.
if SCAVIO_API_KEY is not set: halt and ask user to run export SCAVIO_API_KEY=sk_your_key_here. do not proceed.
if user asks to search vs. browse a category: use /search if keyword-driven (user says "find airpods"), use /category if user provides or references a category ID (user says "show me electronics" or provides a /c/ URL segment).
if user cares about a specific store's pricing: pass store_id explicitly in the request. if store_id is not provided, default to 3991 and disclose this to the user. if user does not specify a store but comparison shopping is implied, ask which store(s) to check before querying.
if user wants to page through results: apply pagination only to /search and /category via page and count. /product and /reviews do not paginate. if user asks for "all reviews", explain that max 8 review bodies are returned; the rating breakdown aggregate covers all reviews, but individual body text is capped at 8.
if seller_id and seller_name are null: report the item as "sold by Target" (first-party). null does not indicate missing data. only Target Plus marketplace items have a non-null seller.
if count parameter is set above 28: reject it before sending the request and inform user that target caps results per page at 28.
if response status is 400: invalid or missing parameter. check that category_id is the N-* segment (not the full /c/ path), count is 1-28, sort is a valid value, and required fields (keyword, tcin, category_id) are present. retry with corrected payload.
if response status is 401: API key is invalid, missing or revoked. check SCAVIO_API_KEY env var and regenerate the key at https://scavio.dev if needed.
if response status is 404: TCIN or category_id does not exist on target. verify TCIN format (10 digits typical) and that category_id is the segment after N- in the target.com /c/ URL, not the full path. retry with corrected ID.
if response status is 429: rate or usage limit exceeded. wait 10-30 seconds before retrying (consult https://scavio.dev/docs/rate-limits for plan details). concurrency limit is 1 on free/pay-as-you-go, up to 50 on Growth; a single target call holds a slot for up to 40s, so serial execution is safer on free tier.
if response status is 502 or 503: upstream target.com is temporarily unavailable. retry once after 5-10 seconds. do not give up early; observed retry completion took 105s total. raise client timeout if retrying.
if request times out client-side: client timeout (120s+) was likely too aggressive, or the endpoint is experiencing exceptional latency. wait a minute and retry once. a timeout is far more likely than an endpoint error.
if response indicates zero results: search, category or reviews returned empty. this is a valid outcome (product not found, no reviews, category has no items). do not retry; inform user clearly.
success response format:
all four endpoints return a JSON envelope:
{
"data": { ... },
"response_time": "1234ms",
"credits_used": 1,
"credits_remaining": 42
}
search and category output:
data is an array of product objects, each containing:tcin (string): target catalog ID.name (string): product title.price (number or null): current price at requested store.regular_price (number or null): pre-discount price.rating (number 0-5 or null): average star rating.review_count (integer): total reviews.badges (array): promotional labels (e.g. "clearance", "online exclusive").promotions (array): active deals.seller_id (string or null): marketplace vendor ID; null means sold by target.seller_name (string or null): marketplace vendor name; null means sold by target.in_stock (boolean or null): availability at requested store.breadcrumb (array): category hierarchy from root to current.product output:
data is a single object containing:tcin (string): product ID.name (string): product title.price (number or null): current price.regular_price (number or null): list price.rating (number 0-5 or null): average star rating.review_count (integer): total reviews.description (string): full product description.specifications (object): key-value attributes (e.g. { "color": "black", "size": "medium" }).images (array): product photo URLs.variants (array): child TCINs and their attributes (if parent is queried).return_policy (string): return window and conditions.fulfillment (object): shipping speed, delivery estimate, pickup options.in_stock (boolean or null): availability at requested store.reviews output:
data is an object containing:review_bodies (array, max 8 items): review text, author, date, helpful count.rating_breakdown (object): distribution of 1-5 star ratings across all reviews, e.g. { "5": 150, "4": 32, "3": 8, "2": 4, "1": 2 }.attribute_ratings (object): per-attribute averages, e.g. { "comfort": 4.2, "durability": 3.9, "fit": 4.5 }.guest_photos (array): user-submitted images and their metadata.file/location: all responses are transient JSON (not persisted unless caller saves them). always include the target.com product URL (constructed from TCIN or extracted from response) for verification.
user successfully executed the skill if:
API request completes without error. status code 200, response envelope contains data, response_time, credits_used, credits_remaining.
data matches the request intent. search returned products for the keyword, category returned products for the category ID, product returned specs/pricing/variants for the TCIN, reviews returned bodies + rating breakdown + per-attribute averages.
latency is within expected bounds. search ~9s, category ~37s, product ~4s, reviews ~40s. if significantly slower, user may notice but request still succeeds if within 120s client timeout.
credits deducted. each call uses 1 credit. credits_remaining decrements by 1. if approaching zero, user is warned.
store-specific data is accurate (if store_id passed). prices and availability reflect the requested store, not default. if store_id was not passed, user is informed that numbers are for store 3991.
seller attribution is correct. null seller fields are reported as "sold by Target". non-null fields show marketplace vendor name.
user can verify the data. product URL is included in output, allowing user to cross-check with target.com or proceed to purchase.
no data fabrication. all returned values come from the API response; no synthetic prices, ratings, TCINs or review text are inserted.
credits: original author unknown (clawhub source). enriched per implexa standards 2025.