---
title: "Target API: Product Search and Prices as JSON | Perceptlayer"
description: "Search Target products as JSON with tcin, price.current, price.regular, is_on_sale and rating per result: 1 credit a page of 24, product lookups 1–2 credits."
url: https://perceptlayer.com/blog/target-api-product-data
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# Target API: Product Search and Prices as JSON

14 Nov 2026 Perceptlayer 7 min read

The Perceptlayer Target API returns Target product data as JSON from four endpoints: search, product, reviews and stores. `GET /v1/target/search` takes a keyword and returns products with a `tcin`, `title`, `brand`, `price` and `rating` each, plus pagination and filter facets, for 1 credit per successful call. `GET /v1/target/product` looks one item up by `tcin` for 1–2 credits. This guide covers the search request, the price fields in a recorded response, what the recording shows about availability, and what tracking a product costs.

## Key takeaways

-   `GET /v1/target/search` requires `query` (up to 200 characters) and costs 1 credit; the recorded response has 24 products a page ( `per_page`), 293 results and 13 pages.
-   Each result's `price` object carries `current`, `regular`, `is_on_sale` and `comparison_type`; on-sale items in the recording add `formatted_regular`, `save_amount` and `save_percent`.
-   `GET /v1/target/product` requires `tcin` and costs 1–2 credits per successful call; `reviews` and `stores` cost 1 credit each.
-   The recorded search results carry no per-item availability field. The endpoints take `store_id`, `zip` and `include_fulfillment`; check what those return in the playground.
-   Tracking 100 products daily with `product` costs 100 × 30 × 1–2 = 3,000 to 6,000 credits a month, inside the Starter pack's 10,000.

## Which endpoints does the Target API have?

The [Target API](https://perceptlayer.com/apis/target) has four endpoints, all `GET` requests on the standard tier. `search` finds products by keyword, `product` returns one product by its `tcin`, `reviews` returns a product's reviews, and `stores` takes a ZIP code. Search, reviews and stores cost 1 credit per successful call. Product costs 1–2 credits. Failed calls cost nothing.

| Endpoint | Required parameters | Optional parameters | Credits |
| --- | --- | --- | --- |
| `GET /v1/target/search` | `query` | `page`, `sort`, `min_price`, `max_price`, `store_id`, `zip`, `category`, `include_fulfillment` | 1 |
| `GET /v1/target/product` | `tcin` | `url`, `store_id`, `zip`, `include_fulfillment` | 1–2 |
| `GET /v1/target/reviews` | `tcin` | `sort`, `page`, `size`, `verified_only`, `photos_only` | 1 |
| `GET /v1/target/stores` | `zip` | none | 1 |

The data is collected from publicly available sources and returned as found at the time of the call. It is product and price data, not an integration with a Target account or order.

## How do you search Target products?

Send a `GET` request to `https://api.perceptlayer.com/v1/target/search` with a keyword in `query` and your key in the `X-API-Key` header. Each successful call returns one page of results for 1 credit. This is the request behind the recorded response in the next section:

```bash
curl "https://api.perceptlayer.com/v1/target/search?query=coffee+maker" \
  -H "X-API-Key: $API_KEY"
```

Keys start with `sk_live_`; where you can't set a header, put the key in the `api_key` query parameter. The [authentication docs](https://docs.perceptlayer.com/authentication) cover both. The search endpoint takes these parameters:

| Parameter | Type | Required | Documented constraint |
| --- | --- | --- | --- |
| `query` | string | yes | Up to 200 characters |
| `page` | integer | no | None documented |
| `sort` | string | no | One of `relevance`, `featured`, `price_low`, `price_high`, `rating_high`, `bestselling`, `newest` |
| `min_price` | number | no | None documented |
| `max_price` | number | no | None documented |
| `store_id` | string | no | None documented |
| `zip` | string | no | None documented |
| `category` | string | no | None documented |
| `include_fulfillment` | boolean | no | None documented |

For a price watch, `sort=price_low` with `min_price` and `max_price` narrows a broad query to the band you care about. The [search endpoint page](https://perceptlayer.com/apis/target/search) has the same list and a playground.

## What does the search response contain?

The response wraps the data in `success`, `data` and `meta`. `data.results` holds one object per product, `data.pagination` says how many pages exist, and `data.facets` lists the filters shown on the results page. This is the recorded response for `coffee maker`, trimmed:

```json
{
  "success": true,
  "data": {
    "query": "coffee maker",
    "results": [
      {
        "tcin": "91863920",
        "title": "Mr. Coffee 12-Cup Programmable Coffee Maker Black",
        "brand": "Mr. Coffee",
        "url": "https://www.target.com/p/mr-coffee-12c-programmable-drip-coffee-maker-stainless-steel-finish/-/A-91863920",
        "dpci": "072-08-0313",
        …
        "item_type": "Coffee Makers",
        …
        "price": {
          "current": 19.99,
          "regular": 34.99,
          "formatted_current": "$19.99",
          "formatted_regular": "$34.99",
          "comparison_type": "reg",
          "save_amount": 15,
          "save_percent": 43,
          "is_on_sale": true
        },
        "rating": {
          "average": 4.27,
          "count": 1037
        },
        …
        "badges": ["Bestseller"]
      },
      {
        "tcin": "91863923",
        …
        "price": {
          "current": 26.99,
          "regular": 26.99,
          "formatted_current": "$26.99",
          "is_on_sale": false
        },
        …
      }
    ],
    "pagination": {
      "current_page": 1,
      "total_pages": 13,
      "total_results": 293,
      "per_page": 24,
      "has_next_page": true
    },
    "sort_by": "relevance",
    …
    "store_id": "3991",
    "facets": [
      …
      {
        "id": "d_channel",
        "name": "Shipping & Pickup",
        "type": "checkbox",
        "options": [
          { "name": "buy online & pick up", "value": "buy online & pick up" },
          { "name": "get it today", "value": "get it today" }
        ]
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    …
    "credits_charged": 1,
    "credits_remaining": 1945
  }
}
```

| Field | What it holds in the recording |
| --- | --- |
| `results[].tcin` | The item identifier, `91863920`; also at the end of `url` as `A-91863920` |
| `results[].dpci` | `072-08-0313` |
| `results[].brand`, `item_type` | `Mr. Coffee`, `Coffee Makers` |
| `results[].price` | Price object; see the next section |
| `results[].rating.average`, `rating.count` | `4.27` and `1037` |
| `results[].bullets[]` | `label` and `value` pairs, such as dimensions and weight |
| `results[].badges` | Labels such as `Bestseller` |
| `pagination` | `total_results` 293, `per_page` 24, `total_pages` 13, `has_next_page` true |
| `store_id` | `3991`, though the request sent none |
| `facets[]` | Filters with `id`, `name`, `type` and `options` |

### How should you read the bullets?

Treat `bullets` as display text. In the recording, the second product's dimensions read `13.5 Inches (H) x 8.7 Meter (W) x 13 Inches (D)`: data is returned as found on the page, so validate units before you compare products on size or weight.

## How do you read prices from a search result?

Read `price.current` as the price now and `price.regular` as the regular price, both numbers. `is_on_sale` is a boolean, so you can filter on it without comparing the two. In the recording, the on-sale item also carries `formatted_regular`, `comparison_type` ( `reg`), `save_amount` (15) and `save_percent` (43), while the item that isn't on sale has only `current`, `regular`, `formatted_current` and `is_on_sale`.

That difference matters in code. Read the optional fields with a default instead of indexing them directly, or the first full-price item will raise an error.

| Field | On-sale item | Full-price item |
| --- | --- | --- |
| `current` | `19.99` | `26.99` |
| `regular` | `34.99` | `26.99` |
| `is_on_sale` | `true` | `false` |
| `save_amount` | `15` | absent |
| `save_percent` | `43` | absent |
| `formatted_regular` | `$34.99` | absent |
| `comparison_type` | `reg` | absent |

The `formatted_*` fields are display strings with a currency symbol. Store the numbers and format them yourself.

## What does the recording show about availability?

The recorded search results have no per-item stock or availability field. Availability appears in two places only. The response reports `store_id` `3991`, though the request sent none, and the `facets` list has a `Shipping & Pickup` filter with options such as `buy online & pick up` and `get it today`.

The `search` and `product` endpoints take optional `store_id`, `zip` and `include_fulfillment` parameters, and `stores` requires a `zip`. Their effect on the response isn't documented beyond their names and types, so we won't describe it. Run a search with `include_fulfillment=true` and a `zip` in the playground on the [Target API page](https://perceptlayer.com/apis/target), and check which fields appear before you build availability tracking on them. The [stores endpoint page](https://perceptlayer.com/apis/target/stores) and [product endpoint page](https://perceptlayer.com/apis/target/product) list their parameters too.

## How do you track Target prices in Python?

The cheapest way to track prices is to re-run a search and record every product it returns: one call covers a page of up to 24 products in the recording. The script below runs a few queries, walks their pages while `has_next_page` is true, and appends one row per product. It reads only fields from the recorded response, and uses `.get` for the price fields that full-price items lack.

```python
import csv
import datetime
import os
import time

import requests

API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/target/search"
QUERIES = ["coffee maker", "espresso machine"]
MAX_PAGES = 3

def fetch(params, attempts=3):
    for _ in range(attempts):
        r = requests.get(URL, params=params, headers={"X-API-Key": API_KEY}, timeout=60)
        if r.status_code in (429, 503):
            time.sleep(int(r.headers.get("Retry-After", "5")))
            continue
        r.raise_for_status()
        return r.json()["data"]
    raise RuntimeError(f"gave up on {params}")

today = datetime.date.today().isoformat()
with open("target_prices.csv", "a", newline="") as f:
    out = csv.writer(f)
    for query in QUERIES:
        for page in range(1, MAX_PAGES + 1):
            data = fetch({"query": query, "page": page})
            for item in data["results"]:
                price = item["price"]
                out.writerow([
                    today,
                    query,
                    item["tcin"],
                    item["title"],
                    price["current"],
                    price["regular"],
                    price["is_on_sale"],
                    price.get("save_percent", ""),
                    item.get("rating", {}).get("average", ""),
                ])
            time.sleep(1)
            if not data["pagination"]["has_next_page"]:
                break
```

Each run costs one credit per page fetched: two queries × three pages is 6 credits. The one-second pause keeps the script within a free account's 1 request a second; paying accounts run at least 5 a second.

### When should you use the product endpoint instead?

Use `GET /v1/target/product` when you track a fixed list of items and don't want to depend on where they rank in a search. It takes the `tcin` from each search result, the same name as the field, and costs 1–2 credits per successful call. We don't have a recorded product response for this guide, so run one in the playground first and read `X-Credits-Used` to see what each call costs you.

### What should the script do with errors?

Every error returns an HTTP status and a JSON body with `code`, `message` and `request_id`, and costs nothing. Retry `rate_limited` (429) and `temporarily_unavailable` (503) after `Retry-After`, log `invalid_parameters` (422) with the parameters you sent, and retry `source_error` (502) later. The [errors docs](https://docs.perceptlayer.com/errors) list every code.

## What does tracking a Target product cost?

Tracking by search costs 1 credit per page, and a page held 24 products in the recording, so the cost per product is a fraction of a credit. Tracking by `product` costs 1–2 credits per item per check. Only successful calls are billed, so a failed call and a successful retry cost the same as one success.

| Plan | Arithmetic | Credits |
| --- | --- | --- |
| First test: 5 search pages, 40 product lookups | 5 × 1 + 40 × 1–2 | 45 to 85 |
| 10 queries × 3 pages, daily | 10 × 3 × 30 × 1 | 900 a month |
| 100 products by `tcin`, daily | 100 × 30 × 1–2 | 3,000 to 6,000 a month |
| 500 products by `tcin`, daily | 500 × 30 × 1–2 | 15,000 to 30,000 a month |

The first plan fits the 100 free credits you get once on signup. The second and third fit the Starter pack's 10,000 credits, and the last fits the Build pack's 50,000. Purchased credits last 12 months, with no subscription. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for how debits work.

To try it, run `search` in the playground on the [Target API page](https://perceptlayer.com/apis/target) with your own query, then [get a free API key](https://perceptlayer.com/signup) and schedule the script. More single-source guides are in [API guides](https://perceptlayer.com/blog/category/api-guides).

## APIs in this post

-   [Target **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/target)

## Frequently asked questions

### Is this Target's own API?

No. It is Perceptlayer's API for Target data, and this guide doesn't cover any developer program Target runs itself. Perceptlayer's Target API returns product data collected from publicly available sources through four endpoints: search, product, reviews and stores. One API key works for all of them, and each successful call costs 1 credit, except `product` at 1–2 credits.

### How much does a Target API call cost?

`GET /v1/target/search`, `reviews` and `stores` cost 1 credit per successful call. `GET /v1/target/product` costs 1–2 credits. Failed calls cost nothing and return `X-Credits-Used: 0`. In the recorded search, one page held 24 products, so tracking a whole results page is 1 credit; tracking 100 items by `tcin` daily is 3,000 to 6,000 credits a month.

### Does the Target API show whether a product is in stock?

The recorded search response has no per-item stock field. It reports a `store_id` and a `Shipping & Pickup` facet, and the `search` and `product` endpoints take `store_id`, `zip` and `include_fulfillment`. Their effect isn't documented beyond names and types, so run a call with them in the playground and check the response before you rely on availability data.

### What is a tcin?

`tcin` is the item identifier in each search result, such as `91863920` in the recorded response, and the same number appears at the end of the result's `url` as `A-91863920`. The `product` and `reviews` endpoints both require a `tcin` parameter. Each result also carries a `dpci`, such as `072-08-0313`.

### Can an AI agent search Target products?

Yes. Through the MCP server at `https://perceptlayer.com/mcp`, an agent finds the Target endpoints with `search_endpoints` and reads their parameters with `get_endpoint`, both free. It runs a search with `call_endpoint`, which spends credits only on success and reports the credits used and remaining. The [AI agents docs](https://docs.perceptlayer.com/ai-agents) show the setup.

target product data prices ecommerce python

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 14 Nov 2026 Perceptlayer 7 min read
    
    ## [Amazon Product API: Search, Offers and Reviews as JSON](https://perceptlayer.com/blog/amazon-product-api-json)
    
    Search Amazon by keyword, then look each asin up with product, offers, rating-summary and customers-say. Domain values per endpoint, 1 credit a call.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 16 Nov 2026 Perceptlayer 8 min read
    
    ## [Shopify Scraper or API: What You Get](https://perceptlayer.com/blog/shopify-scraper-vs-api)
    
    A Shopify scraper vs a 1-credit products call: a recorded store page of 30 products with variant SKUs, prices and stock flags, and the cost per product tracked.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
    
    ## [Costco API: Product Data and Prices as JSON](https://perceptlayer.com/blog/costco-api-product-prices)
    
    A recorded Costco search returned 24 products with price, original price, stock and rating as JSON for 1 credit. Endpoints, parameters, tracking costs.
