> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/products/web-scraper-api/targets/e-commerce/target/product.md).

# Product

Extract Target product pages by product ID with parsed data including pricing, brand, category, description, and rating score, with support for store, fulfillment type, and more.

The `target_product` source retrieves Target product pages. With `"parse": true` the response is structured JSON (fields described in the [data dictionary](#output-data-dictionary) below). Without it, `content` holds the page HTML.

{% hint style="info" %}
Besides the parameters listed below, you can include additional parameters such as `user_agent_type`, `geo_location`, `render`, and more to customize your scraping request. Read more [here](/products/web-scraper-api/features.md).
{% endhint %}

## Request samples

{% tabs %}
{% tab title="cURL" %}

```shell
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "target_product",
        "product_id": "89459966",
        "parse": true
    }'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
from pprint import pprint

# Structure payload.
payload = {
    'source': 'target_product',
    'product_id': '89459966',
    'parse': True
}

# Get response.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),
    json=payload
)

# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())
```

{% endtab %}

{% tab title="Node.js" %}

```javascript
const https = require("https");

const username = "USERNAME";
const password = "PASSWORD";
const body = {
    source: "target_product",
    product_id: "89459966",
    parse: true
};

const options = {
    hostname: "realtime.oxylabs.io",
    path: "/v1/queries",
    method: "POST",
    headers: {
        "Content-Type": "application/json",
        Authorization:
            "Basic " + Buffer.from(`${username}:${password}`).toString("base64"),
    },
};

const request = https.request(options, (response) => {
    let data = "";

    response.on("data", (chunk) => {
        data += chunk;
    });

    response.on("end", () => {
        const responseData = JSON.parse(data);
        console.log(JSON.stringify(responseData, null, 2));
    });
});

request.on("error", (error) => {
    console.error("Error:", error);
});

request.write(JSON.stringify(body));
request.end();
```

{% endtab %}

{% tab title="HTTP" %}

```http
# The whole string you submit has to be URL-encoded.

https://realtime.oxylabs.io/v1/queries?source=target_product&product_id=89459966&parse=true&access_token=12345abcde
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

$params = array(
    'source' => 'target_product',
    'product_id' => '89459966',
    'parse' => true
);

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://realtime.oxylabs.io/v1/queries");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERPWD, "USERNAME" . ":" . "PASSWORD");

$headers = array();
$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
echo $result;

if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);
```

{% endtab %}

{% tab title="Golang" %}

```go
package main

import (
    "bytes"
    "encoding/json"
    "fmt"
    "io/ioutil"
    "net/http"
)

func main() {
    const Username = "USERNAME"
    const Password = "PASSWORD"

    payload := map[string]interface{}{
        "source": "target_product",
        "product_id": "89459966",
        "parse": true,
    }

    jsonValue, _ := json.Marshal(payload)

    client := &http.Client{}
    request, _ := http.NewRequest("POST",
        "https://realtime.oxylabs.io/v1/queries",
        bytes.NewBuffer(jsonValue),
    )

    request.SetBasicAuth(Username, Password)
    response, _ := client.Do(request)

    responseText, _ := ioutil.ReadAll(response.Body)
    fmt.Println(string(responseText))
}
```

{% endtab %}

{% tab title="C#" %}

```csharp
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Json;
using System.Threading.Tasks;

namespace OxyApi
{
    class Program
    {
        static async Task Main()
        {
            const string Username = "USERNAME";
            const string Password = "PASSWORD";

            var parameters = new {
                source = "target_product",
                product_id = "89459966",
                parse = true
            };

            var client = new HttpClient();

            Uri baseUri = new Uri("https://realtime.oxylabs.io");
            client.BaseAddress = baseUri;

            var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/v1/queries");
            requestMessage.Content = JsonContent.Create(parameters);

            var authenticationString = $"{Username}:{Password}";
            var base64EncodedAuthenticationString = Convert.ToBase64String(System.Text.ASCIIEncoding.UTF8.GetBytes(authenticationString));
            requestMessage.Headers.Add("Authorization", "Basic " + base64EncodedAuthenticationString);

            var response = await client.SendAsync(requestMessage);
            var contents = await response.Content.ReadAsStringAsync();

            Console.WriteLine(contents);
        }
    }
}
```

{% endtab %}

{% tab title="Java" %}

```java
package org.example;

import okhttp3.*;
import org.json.JSONObject;
import java.util.concurrent.TimeUnit;

public class Main implements Runnable {
    private static final String AUTHORIZATION_HEADER = "Authorization";
    public static final String USERNAME = "USERNAME";
    public static final String PASSWORD = "PASSWORD";

    public void run() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("source", "target_product");
        jsonObject.put("product_id", "89459966");
        jsonObject.put("parse", true);

        Authenticator authenticator = (route, response) -> {
            String credential = Credentials.basic(USERNAME, PASSWORD);
            return response
                    .request()
                    .newBuilder()
                    .header(AUTHORIZATION_HEADER, credential)
                    .build();
        };

        var client = new OkHttpClient.Builder()
                .authenticator(authenticator)
                .readTimeout(180, TimeUnit.SECONDS)
                .build();

        var mediaType = MediaType.parse("application/json; charset=utf-8");
        var body = RequestBody.create(jsonObject.toString(), mediaType);
        var request = new Request.Builder()
                .url("https://realtime.oxylabs.io/v1/queries")
                .post(body)
                .build();

        try (var response = client.newCall(request).execute()) {
            if (response.body() != null) {
                try (var responseBody = response.body()) {
                    System.out.println(responseBody.string());
                }
            }
        } catch (Exception exception) {
            System.out.println("Error: " + exception.getMessage());
        }

        System.exit(0);
    }

    public static void main(String[] args) {
        new Thread(new Main()).start();
    }
}
```

{% endtab %}

{% tab title="JSON" %}

```json
{
    "source": "target_product",
    "product_id": "89459966",
    "parse": true
}
```

{% endtab %}
{% endtabs %}

## Request parameter values

<table><thead><tr><th width="180">Parameter</th><th>Description</th><th width="160">Default Value</th></tr></thead><tbody><tr><td><mark style="background-color:green;"><strong><code>source</code></strong></mark></td><td>Sets the scraper.</td><td><code>target_product</code></td></tr><tr><td><mark style="background-color:green;"><strong><code>product_id</code></strong></mark></td><td>The product ID (TCIN), the number after <code>/A-</code> in the product page URL, e.g. <code>target.com/p/beats-studio-pro-bluetooth-wireless-headphones/-/A-</code><strong><code>89459966</code></strong>.</td><td>-</td></tr><tr><td><code>parse</code></td><td>Returns parsed data when set to <code>true</code>. Explore the output data dictionary.</td><td><code>false</code></td></tr><tr><td><code>fulfillment_type</code>, <code>store_id</code>, <code>delivery_zip</code></td><td>Optional localization parameters, see <a href="#localization-and-filtering">Localization and Filtering</a>.</td><td>-</td></tr></tbody></table>

&#x20;   – mandatory parameter

### Localization and filtering <a href="#localization-and-filtering" id="localization-and-filtering"></a>

<table><thead><tr><th width="160">Parameter</th><th>Description</th><th width="92">Default</th></tr></thead><tbody><tr><td><code>fulfillment_type</code></td><td>Shows the product's availability for the chosen method. Available values: <code>pickup</code> (requires <code>store_id</code>), <code>shipping</code> and <code>delivery</code> (require <code>delivery_zip</code>).</td><td>-</td></tr><tr><td><code>store_id</code></td><td>Target store number as an integer, e.g. <code>1771</code>. Only existing store numbers are accepted.</td><td>-</td></tr><tr><td><code>delivery_zip</code></td><td>Delivery ZIP code as a string, e.g. <code>"10001"</code>.</td><td>-</td></tr></tbody></table>

`fulfillment_type` without the parameter it requires is rejected with HTTP 400.

```json
{
    "source": "target_product",
    "product_id": "89459966",
    "fulfillment_type": "pickup",
    "store_id": 1771,
    "parse": true
}
```

## Response example <a href="#response-example" id="response-example"></a>

A parsed product page for product ID `89459966` (list is shortened to one item and the description is cut):

{% code expandable="true" %}

```json
{
    "results": [
        {
            "content": {
                "add_to_cart": true,
                "brand": {
                    "href": "/b/beats/-/N-s64q0",
                    "name": "Beats"
                },
                "category": {
                    "name": "Wireless Over-Ear Headphones",
                    "path": "target > Electronics & Tech > Headphones > Over-Ear Headphones > Wireless Over-Ear Headphones"
                },
                "color": "Black",
                "currency": "USD",
                "description": "Featuring a fully custom acoustic platform. Personalized Spatial Audio with dynamic head tracking.¹ Fully adaptive Activ...",
                "dimensions": null,
                "ean": "194253715092",
                "image_count": 18,
                "images": {
                    "alternate": [
                        "https://target.scene7.com/is/image/Target/GUEST_ef540473-6413-4766-895d-a31208c185ef"
                    ],
                    "main": "https://target.scene7.com/is/image/Target/GUEST_ae460959-e23b-4c7b-9b1f-ee5427a949c9"
                },
                "in_stock": true,
                "item_weight": {
                    "unit": "ounces",
                    "value": 9.17
                },
                "lead_time": "Fri, Oct 2",
                "option_name": "Black",
                "options": [
                    {
                        "color": "Black",
                        "tcin": "89401490"
                    },
                    {
                        "color": "Deep Brown",
                        "tcin": "89401493"
                    },
                    {
                        "color": "Navy",
                        "tcin": "89401491"
                    },
                    {
                        "color": "Sandstone",
                        "tcin": "89401492"
                    },
                    {
                        "color": "Matte Pink",
                        "tcin": "94778650"
                    }
                ],
                "parent_id": "89459966",
                "parse_status_code": 12000,
                "price": {
                    "current": 249.99,
                    "discounted": true,
                    "regular": 349.99
                },
                "product_id": "89401490",
                "rating": {
                    "count": 3644,
                    "score": 4.17
                },
                "shipping_cost": null,
                "shipping_dimensions": {
                    "height": 3.93,
                    "length": 6.33,
                    "unit": "inch",
                    "width": 8.85
                },
                "shipping_weight": {
                    "unit": "pound",
                    "value": 1.4
                },
                "size": null,
                "sold_in_stores": true,
                "specifications": [
                    {
                        "name": "Weight",
                        "value": "9.17 Ounces"
                    },
                    {
                        "name": "Water Resistance",
                        "value": "No Water Resistance Rating"
                    },
                    {
                        "name": "Ear Cushion Material",
                        "value": "ABS (Acrylonitrile Butadiene Styrene)"
                    }
                ],
                "title": "Beats Studio Pro Bluetooth Wireless Headphones",
                "url": "https://www.target.com/p/-/A-89459966",
                "video": {
                    "url": "https://target.scene7.com/is/content/Target/GUEST_0a46c285-b999-4749-ac90-31c2cccdf978"
                },
                "zipcode": "52404"
            },
            "created_at": "2026-09-30 12:54:53",
            "updated_at": "2026-09-30 12:55:19",
            "page": 1,
            "url": "https://www.target.com/p/-/A-89459966",
            "job_id": "7511045911003285505",
            "status_code": 200,
            "parser_type": "target_product"
        }
    ]
}
```

{% endcode %}

## Output data dictionary

#### HTML example

<figure><img src="https://3826932121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBQ7Zf9paoN3FTeGcyfY1%2Fuploads%2Fgit-blob-d905d7b307702bee46493578d1ab9a2b2478a87d%2Ftarget_2.png?alt=media" alt=""><figcaption></figcaption></figure>

#### JSON structure

The table below presents a detailed list of each product page element we parse, along with its description and data type. The table also includes some metadata.

<table><thead><tr><th width="243">Key</th><th width="419">Description</th><th width="103">Type</th></tr></thead><tbody><tr><td><code>url</code></td><td>The URL of the product page.</td><td>string</td></tr><tr><td><code>title</code></td><td>The title of the product.</td><td>string</td></tr><tr><td><code>brand</code></td><td>Object containing brand details.</td><td>object</td></tr><tr><td><code>brand.name</code></td><td>The name of the brand.</td><td>string</td></tr><tr><td><code>brand.href</code></td><td>The path to the brand's page on target.com.</td><td>string</td></tr><tr><td><code>category</code></td><td>Object containing category details.</td><td>object</td></tr><tr><td><code>category.name</code></td><td>The name of the product category.</td><td>string</td></tr><tr><td><code>category.path</code></td><td>The full category path, separated by <code>></code>.</td><td>string</td></tr><tr><td><code>description</code></td><td>A description of the product, if present.</td><td>string</td></tr><tr><td><code>ean</code></td><td>The product's EAN/UPC barcode number. <em>(Optional)</em></td><td>string</td></tr><tr><td><code>images</code></td><td>Object containing product images.</td><td>object</td></tr><tr><td><code>images.main</code></td><td>URL of the main product image.</td><td>string</td></tr><tr><td><code>images.alternate</code></td><td>List of URLs of the other product images.</td><td>array</td></tr><tr><td><code>in_stock</code></td><td>Indicates whether the product is in stock. <em>(Optional)</em></td><td>boolean</td></tr><tr><td><code>price</code></td><td>Object containing price details.</td><td>object</td></tr><tr><td><code>price.current</code></td><td>The current price of the product.</td><td>float</td></tr><tr><td><code>price.regular</code></td><td>The regular price, present when the product is discounted.</td><td>float</td></tr><tr><td><code>price.discounted</code></td><td>Indicates whether the current price is a discount.</td><td>boolean</td></tr><tr><td><code>rating</code></td><td>Object containing rating details. <em>(Optional)</em></td><td>object</td></tr><tr><td><code>rating.count</code></td><td>The number of ratings.</td><td>integer</td></tr><tr><td><code>rating.score</code></td><td>The average rating score.</td><td>float</td></tr><tr><td><code>video</code></td><td>Object containing the product video, if present.</td><td>object</td></tr><tr><td><code>video.url</code></td><td>URL of the product video.</td><td>string</td></tr><tr><td><code>content.product_id</code></td><td>The TCIN of the product on the page.</td><td>string</td></tr><tr><td><code>content.options</code></td><td>Product variations: TCIN plus one key per variation axis.</td><td>array</td></tr><tr><td><code>content.option_name</code></td><td>The axis values of the selected variation.</td><td>string</td></tr><tr><td><code>content.color</code></td><td>The color of the selected variation.</td><td>string</td></tr><tr><td><code>content.size</code></td><td>The size of the selected variation.</td><td>string</td></tr><tr><td><code>content.specifications</code></td><td>List of product specifications.</td><td>array</td></tr><tr><td><code>content.specifications.name</code></td><td>The name of the specification, e.g. <code>Material</code>.</td><td>string</td></tr><tr><td><code>content.specifications.value</code></td><td>The value of the specification, e.g. <code>100% Cotton</code>.</td><td>string</td></tr><tr><td><code>content.dimensions</code></td><td>Product dimensions as listed in the specifications.</td><td>string</td></tr><tr><td><code>content.shipping_cost</code></td><td>The shipping cost.</td><td>string</td></tr><tr><td><code>content.parent_id</code></td><td>The TCIN of the parent product.</td><td>string</td></tr><tr><td><code>content.item_weight</code></td><td>Object containing the product weight, if present.</td><td>object</td></tr><tr><td><code>content.item_weight.value</code></td><td>The weight value.</td><td>float</td></tr><tr><td><code>content.item_weight.unit</code></td><td>The unit of the weight, e.g. <code>pounds</code> or <code>ounces</code>.</td><td>string</td></tr><tr><td><code>content.shipping_dimensions</code></td><td>Object containing the package dimensions.</td><td>object</td></tr><tr><td><code>shipping_dimensions.height</code></td><td>The package height.</td><td>float</td></tr><tr><td><code>shipping_dimensions.width</code></td><td>The package width.</td><td>float</td></tr><tr><td><code>shipping_dimensions.length</code></td><td>The package length.</td><td>float</td></tr><tr><td><code>shipping_dimensions.unit</code></td><td>The unit of the dimensions, e.g. <code>inch</code>.</td><td>string</td></tr><tr><td><code>content.shipping_weight</code></td><td>Package weight.</td><td>object</td></tr><tr><td><code>content.lead_time</code></td><td>The delivery estimate.</td><td>string</td></tr><tr><td><code>content.add_to_cart</code></td><td>Whether the product can be added to the cart.</td><td>boolean</td></tr><tr><td><code>content.sold_in_stores</code></td><td>Whether the product is sold in stores.</td><td>boolean</td></tr><tr><td><code>content.zipcode</code></td><td>The ZIP code the page was rendered for.</td><td>string</td></tr><tr><td><code>content.image_count</code></td><td>The number of product images.</td><td>integer</td></tr><tr><td><code>parse_status_code</code></td><td>The status code of the parsing job. You can see the parser status codes described here.</td><td>integer</td></tr><tr><td><code>created_at</code></td><td>The timestamp when the scraping job was created.</td><td>timestamp</td></tr><tr><td><code>updated_at</code></td><td>The timestamp when the scraping job was finished.</td><td>timestamp</td></tr><tr><td><code>page</code></td><td>The page number in the pagination of results.</td><td>integer</td></tr><tr><td><code>status_code</code></td><td>The HTTP status code of the scraped page.</td><td>integer</td></tr><tr><td><code>parser_type</code></td><td>The type of parser used to extract the data.</td><td>string</td></tr><tr><td><code>job_id</code></td><td>The ID of the job associated with the scraping job.</td><td>string</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/products/web-scraper-api/targets/e-commerce/target/product.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
