Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APITarget

    target.product

    One Target product's details: price, availability, seller, rating, specifications, images and versions.

    Id
    target.product
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/target.product/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

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

    Inputs of target.product
    FieldTypeDescription
    urlstringThe product's address, e.g. https://www.target.com/p/some-product/-/A-51298018.Limit: at most 2048 characters.
    tcinstringTarget's item number (TCIN): the number after A- in the product's address.Limit: matches ^[0-9]{4,12}$.

    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.

    Record fields of target.product
    FieldTypeNotes
    tcinstringTarget's item number (TCIN) of the product asked for.
    parent_tcinstring or nullThe TCIN of the product this one is a version of (one colour, one size), when it is one.
    urlstring or nullThe product's address on target.com.
    titlestringThe product's name.
    brandstring or nullThe brand.
    descriptionstring or nullThe product description, as text.
    highlightsarray of stringThe highlights listed on the page, in its order.
    specificationsarray of objectThe product's specifications, each a name and a value, in the page's order.
    name (in specifications[])stringThe name of the specification, as the page gives it.
    value (in specifications[])stringIts value, as text.
    priceobject or nullThe current online price; for a product with several versions, the lowest of them.
    amount (in price)numberThe amount as Target states it.
    currency (in price)stringThe currency code: USD, the only currency target.com sells in.
    regular_priceobject or nullThe regular price Target states beside the current one (for several versions, the highest); the same amount when the product is not reduced.
    amount (in regular_price)numberThe amount as Target states it.
    currency (in regular_price)stringThe currency code: USD, the only currency target.com sells in.
    price_textstring or nullThe price as the page writes it, e.g. "$129.99" or "$499.99 - $749.99".
    price_typestring or nullTarget's word for the kind of price: reg, sale or clearance.
    unit_price_textstring or nullThe price per unit as the page writes it, when it states one.
    availabilitystring or nullWhether Target ships the product, in its own code, e.g. IN_STOCK, OUT_OF_STOCK, PRE_ORDER_SELLABLE; null for a product with several versions (each version says for itself) and when Target does not say.
    sold_outboolean or nullTrue when Target marks the product as sold out; null for a product with several versions.
    upcstring or nullThe barcode number (UPC), when Target states it; a product with several versions has one per version.
    dpcistring or nullTarget's department-class-item number, e.g. 008-07-4671, when it states one.
    seller_namestring or nullThe partner that sells the product on target.com, when it is not Target itself.
    seller_idstring or nullTarget's id of that partner.
    ratingnumber or nullAverage rating, 0 to 5; null for a product nobody has rated.
    rating_countinteger or nullNumber of ratings.
    review_countinteger or nullNumber of written reviews.
    category_patharray of stringThe category, from the department down.
    imagesarray of stringThe addresses of the product's pictures, the main one first.
    variantsarray of objectEvery version of the product (colour, size), with the choices that lead to it.
    tcin (in variants[])stringThe TCIN of this version of the product.
    options (in variants[])object of string valuesWhat distinguishes the version, e.g. {"Color": "Black Wash", "Size": "4"}.
    url (in variants[])string or nullThe version's own address, when Target gives one.
    ships (in variants[])boolean or nullWhether Target says the version can be shipped; null when it does not say.
    sold_out (in variants[])boolean or nullTrue when Target marks the version as sold out.
    fetched_atstring (date-time)When the product was read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/target.product/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"tcin":"51298018"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("target.product", {"tcin": "51298018"})
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("target.product", { tcin: "51298018" });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "target.product", map[string]any{"tcin": "51298018"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("target.product", Map.of("tcin", "51298018"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run target.product --input-json '{"tcin":"51298018"}'

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "tcin": "51298018"
      }
    }

    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.product",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "tcin": "51298018"
      },
      "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": "51298018",
          "parent_tcin": null,
          "url": "https://www.target.com/p/lego-architecture-london-skyline-building-set-21034/-/A-51298018",
          "title": "LEGO Architecture London Skyline Building Set 21034",
          "brand": "LEGO",
          "description": "Celebrate the architectural diversity of London with this detailed LEGO brick model. The LEGO Architecture Skyline Collection offers models suitable for display and decor in the home and office, and has been developed for all with an … [truncated]",
          "highlights": [
            "Build a detailed LEGO Architecture model interpretation of the London skyline featuring famous landmarks!",
            "The model building kit for adults and kids aged 12+ features the National Gallery, Nelson’s Column, London Eye, Big Ben and Tower Bridge",
            "London’s Thames River is represented by transparent baseplate tiles"
          ],
          "specifications": [
            {
              "name": "Number of Pieces",
              "value": "468"
            },
            {
              "name": "Suggested Age",
              "value": "12 Years and Up"
            },
            {
              "name": "Assembled Dimensions",
              "value": "7.52 Inches (H) x 2.4 Inches (D)"
            }
          ],
          "price": {
            "amount": 23.99,
            "currency": "USD"
          },
          "regular_price": {
            "amount": 39.99,
            "currency": "USD"
          },
          "price_text": "$23.99",
          "price_type": "sale",
          "unit_price_text": null,
          "availability": "IN_STOCK",
          "sold_out": false,
          "upc": "673419264419",
          "dpci": "204-00-1859",
          "seller_name": null,
          "seller_id": null,
          "rating": 4.76,
          "rating_count": 499,
          "review_count": 182,
          "category_path": [
            "Toys & Games",
            "Building Toys",
            "Building Sets"
          ],
          "images": [
            "https://target.scene7.com/is/image/Target/GUEST_301af2b3-f5bc-4536-a78e-c0928b2a7626",
            "https://target.scene7.com/is/image/Target/GUEST_5a3f6645-2511-49d1-9726-a2408da5c4a7",
            "https://target.scene7.com/is/image/Target/GUEST_963236e8-8291-4d1b-9897-0e5af49fe601"
          ],
          "variants": [],
          "fetched_at": "2026-11-19T18:07:41.361836Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: description: 807 characters, the first 233 shown.
    • Shortened: highlights: 6 items, the first 3 shown.
    • Shortened: specifications: 8 items, the first 3 shown.
    • Shortened: images: 4 items, the first 3 shown.

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Target scrapers are in their own section there.