# target.search

The products on a page of Target's search results: prices, ratings, brands and sellers, with advertisements marked.

Target search, one of the Target scrapers.

| | |
| --- | --- |
| Id | `target.search` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/target.search/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | What to search for, e.g. "wireless headphones". Limit: at least 1 characters, at most 200 characters. |
| `page` | integer | no | The results page, from 1 (Target serves at most 50, of 24 products each). Limit: 1 to 50. Default: `1`. |
| `sort` | "relevance" \| "featured" \| "price_low" \| "price_high" \| "rating_high" \| "bestselling" \| "newest" | no | Target's sort order. Default: `"relevance"`. |
| `max_results` | integer | no | Return at most this many items of the page; all of them when not given. Limit: 1 to 100. |
| `include_sponsored` | boolean | no | False leaves the advertisements (sponsored: true) out. Default: `true`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `tcin` | string | Target's item number (TCIN): the number after A- in the product's address. |
| `parent_tcin` | string or null | The TCIN of the product this item is one version of (one colour, one size), when it is one. |
| `url` | string or null | The product's address on target.com. |
| `title` | string | The product's name. |
| `brand` | string or null | The brand, when the results page states it. |
| `price` | object or null | The current price; for a product with several versions, the lowest of them. |
| `price.amount` | number | The amount as Target states it. |
| `price.currency` | string | The currency code: USD, the only currency target.com sells in. |
| `regular_price` | object or null | The regular price Target states beside the current one; the same amount when the product is not reduced. |
| `regular_price.amount` | number | The amount as Target states it. |
| `regular_price.currency` | string | The currency code: USD, the only currency target.com sells in. |
| `price_text` | string or null | The price as the page writes it, e.g. "$16.80" or "$499.99 - $749.99". |
| `price_type` | string or null | Target's word for the kind of price: reg, sale or clearance. |
| `unit_price_text` | string or null | The price per unit as the page writes it, e.g. "$0.11/fluid ounce", when it states one. |
| `rating` | number or null | Average rating, 0 to 5; null for a product nobody has rated. |
| `rating_count` | integer or null | Number of ratings. |
| `seller_name` | string or null | The partner that sells the product on target.com, when it is not Target itself. |
| `seller_id` | string or null | Target's id of that partner. |
| `sponsored` | boolean | True for an advertisement (a sponsored placement), false for a result. |
| `labels` | array of string | The labels on the tile, e.g. New at Target, Bestseller. |
| `image` | string or null | The address of the product's main picture. |
| `position` | integer | The item's place among the returned items of this page, from 1. |
| `page` | integer | The results page the item was on. |
| `fetched_at` | string (date-time) | When the results page was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/target.search/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"lego"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "target.search",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "query": "lego"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "tcin": "93342487",
      "parent_tcin": null,
      "url": "https://www.target.com/p/lego-disney-lucky-38-penny-101-dalmatians-puppies-43271/-/A-93342487",
      "title": "LEGO Disney Lucky & Penny 101 Dalmatians Puppies 43271",
      "brand": "LEGO",
      "price": {
        "amount": 19.99,
        "currency": "USD"
      },
      "regular_price": {
        "amount": 19.99,
        "currency": "USD"
      },
      "price_text": "$19.99",
      "price_type": "reg",
      "unit_price_text": null,
      "rating": 4.8,
      "rating_count": 134,
      "seller_name": null,
      "seller_id": null,
      "sponsored": true,
      "labels": [],
      "image": "https://target.scene7.com/is/image/Target/GUEST_e2340129-1748-473c-8003-81b9fd8dd417",
      "position": 7,
      "page": 1,
      "fetched_at": "2026-11-19T18:07:41.375872Z"
    }
  ],
  "next_cursor": null
}
```

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Target scrapers](https://docs.enrichednow.com/results-and-statuses.md#target) are in their own section there.
