Skip to content
Scrappa Get API key
Target API 1 credit/request

Target Product Search API Documentation

GET https://scrappa.co/api/target/search

Target Product Search API Documentation Search Target products. Each row has the tcin, title, brand, url, DPCI, item type, images, videos, price, regular price, save percent, rating, review count, promotions, spec lines and badges. Filter by price range, store and ZIP, sort by relevance, price, rating, best sellers or newest, and search inside a category. A page has 24 products and the page number in the answer always matches the page you asked for. A price range is checked on every row: no product outside the range is returned. A search text with no match returns an empty list and costs nothing. Target changes its ranking between calls, so a product can appear on two neighbouring pages. Add include_fulfillment=true with a zip to get shipping, pickup and store stock for every row. Cost: 3 credits per page, 4 with include_fulfillment. An empty result and every error cost nothing. A call takes 3 to 10 seconds.

Target Product Search API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/target/search
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "query": "coffee maker",
        "facets": [
            {
                "id": "d_deals",
                "name": "Deals",
                "type": "checkbox",
                "options": [
                    {
                        "name": "Sale",
                        "value": "sale"
                    }
                ]
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

8 optional filters available.

query string Required

Search text, 1 to 200 characters. Example: coffee maker.

Example value coffee shops
page integer Optional

Page number, 1 to 50. Each page has 24 products. Default: 1.

Example value 1
sort string Optional

relevance, featured, price_low, price_high, rating_high, bestselling or newest. Default: relevance.

Example value relevance
min_price number Optional

Lowest price in USD. Send it together with max_price. Rows outside the range are never returned.

Example value 10
max_price number Optional

Highest price in USD. Send it together with min_price.

Example value 10
store_id string Optional

Store number from the stores endpoint, e.g. 1375. Sets the store for price and stock. Store 3991 is not accepted.

Example value 1234567890
zip string Optional

5-digit US ZIP code. Without store_id, the nearest store of the ZIP is used. Required with include_fulfillment.

Example value example
category string Optional

Target category id, e.g. 5xtb0, to search inside one category. An unknown id answers 422.

Example value example
include_fulfillment boolean Optional

true to add shipping, pickup and store stock to every row. Needs a zip. Costs 4 credits. Default: false.

Example value true

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "query": "coffee maker",
        "facets": [
            {
                "id": "d_deals",
                "name": "Deals",
                "type": "checkbox",
                "options": [
                    {
                        "name": "Sale",
                        "value": "sale"
                    }
                ]
            }
        ],
        "results": [
            {
                "url": "https://www.target.com/p/example-coffee-maker/-/A-92538311",
                "dpci": "204-00-3429",
                "tcin": "92538311",
                "brand": "Example",
                "price": {
                    "current": 24.99,
                    "regular": 29.99,
                    "is_on_sale": true,
                    "price_note": null,
                    "current_max": null,
                    "current_min": null,
                    "save_amount": 5,
                    "save_percent": 17,
                    "comparison_type": "reg",
                    "formatted_current": "$24.99",
                    "formatted_regular": "$29.99"
                },
                "title": "Example Coffee Maker",
                "badges": [
                    "Highly rated"
                ],
                "images": {
                    "primary": "https://target.scene7.com/is/image/Target/GUEST_example-primary",
                    "alternates": [
                        "https://target.scene7.com/is/image/Target/GUEST_example-alt"
                    ]
                },
                "rating": {
                    "count": 1280,
                    "average": 4.6,
                    "review_count": 412
                },
                "videos": [],
                "bullets": [
                    {
                        "label": "Capacity",
                        "value": "12 Cups"
                    }
                ],
                "class_id": 0,
                "item_type": "Coffee Makers",
                "promotions": [],
                "fulfillment": null,
                "parent_tcin": null,
                "department_id": 204
            }
        ],
        "sort_by": "relevance",
        "store_id": "1375",
        "pagination": {
            "per_page": 24,
            "total_pages": 27,
            "current_page": 1,
            "has_next_page": true,
            "total_results": 641
        },
        "sort_options": [
            "relevance",
            "featured",
            "price_low",
            "price_high",
            "rating_high",
            "bestselling",
            "newest"
        ],
        "auto_corrected_query": null
    },
    "meta": {
        "credits": 3,
        "billable": true,
        "duration_ms": 4210,
        "endpoint_family": "search"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "max_price": [
            "Send min_price and max_price together, or neither."
        ]
    },
    "message": "The request validation failed"
}
503

Service Unavailable

Target could not be reached or refused the request. This response is not billable. Retry later.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "search"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Target is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.