> ## Documentation Index
> Fetch the complete documentation index at: https://help.decodo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Amazon Pricing

> Web Scraping API Amazon Pricing Template

<Danger>
  Core and Advanced plans are no longer available for purchase. Please consider migrating to the all-in-one Web Scraper API; check out the guide [here](https://help.decodo.com/docs/web-scraping-api-migration-guide).
</Danger>

The `amazon_pricing` template is built to obtain Amazon product offer listings.

<Note>
  ### Useful Links

  * This target is available with **Web API Advanced plans**.
  * [**Real-time**](https://help.decodo.com/docs/web-scraping-api-real-time-requests) and [**Asynchronous**](https://help.decodo.com/docs/web-scraping-api-asynchronous-requests) integration methods are available for this template.
  * [**Batch**](https://help.decodo.com/docs/web-scraping-api-asynchronous-requests#queue-multiple-tasks) requests are also supported.
</Note>

## Input Parameters

Request parameters available for Amazon Pricing target:

| Parameter     | Type    | Required | Description                                                                                                                                                                                                                                                                             |
| ------------- | ------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `target`      | string  | ✅        | Target type must be set to `amazon_pricing`.                                                                                                                                                                                                                                            |
| `query`       | string  | ✅        | A 10-character Amazon Product ASIN code.                                                                                                                                                                                                                                                |
| `headless`    | string  |          | `html` value enables JavaScript rendering. [**Read more.**](https://help.decodo.com/docs/web-scraping-api-javascript-rendering-deprecated)<br />`png` value enables screenshot response. [**Read more.**](https://help.decodo.com/docs/web-scraping-api-screenshot-response-deprecated) |
| `parse`       | boolean |          | Automatically parses results when set to `true`. <br />Default value is `false`.                                                                                                                                                                                                        |
| `geo`         | string  |          | Set the delivery location to use when submitting the query. [**Read more.**](https://help.decodo.com/docs/web-scraping-api-amazon-geo-parameter-deprecated)                                                                                                                             |
| `domain`      | string  |          | Specify top-level domain. [**Read more.**](https://help.decodo.com/docs/web-scraping-api-amazon-locale-deprecated)                                                                                                                                                                      |
| `locale`      | string  |          | Set the value to change your Amazon web page interface language. [**Read more.**](https://help.decodo.com/docs/web-scraping-api-amazon-locale-deprecated)                                                                                                                               |
| `currency`    | string  |          | Set the currency. [**Read more**](https://help.decodo.com/docs/web-scraping-api-amazon-currency-deprecated)                                                                                                                                                                             |
| `device_type` | string  |          | Specify device type and browser. [**Read more.**](https://help.decodo.com/docs/web-scraping-api-device-types-deprecated)                                                                                                                                                                |
| `page_from`   | string  |          | Customize the starting page number. Default value is `1`.                                                                                                                                                                                                                               |
| `xhr`         | boolean |          | Set to `true` to retrieve a list of XHR and fetch requests.[**Read more.**](https://help.decodo.com/docs/web-scraping-api-fetch-and-xhr-deprecated) <br />Default value is `false`.                                                                                                     |
| `markdown`    | boolean |          | Set to `true` to receive a Markdown response. [**Read more.**](https://help.decodo.com/docs/web-scraping-api-markdown-response-deprecated) <br />Default value is `false`.                                                                                                              |

### Request Examples

<CodeGroup>
  ```shellscript cURL theme={null}
  # update 'TOKEN VALUE' with your authorization token
  curl --request 'POST' \
          --url 'https://scraper-api.decodo.com/v2/scrape' \
          --header 'Accept: application/json' \
          --header 'Authorization: Basic TOKEN VALUE' \
          --header 'Content-Type: application/json' \
          --data '
      {
        "target": "amazon_pricing",
        "query": "B0BS1QCFHX",
        "page_from": "1",
        "parse": true
      }
  '
  ```

  ```javascript Node theme={null}

  const scrape = async() => {
    const response = await fetch("https://scraper-api.decodo.com/v2/scrape", {
      method: "POST",
      body: JSON.stringify({
        "target": "amazon_pricing",
        "query": "B0BS1QCFHX",
        "page_from": "1",
        "parse": true
      }),
      headers: {
        "Content-Type": "application/json",
        "Authorization": "Basic TOKEN VALUE" // update with your authorization token
      },
    }).catch(error => console.log(error));

    console.log(await response.json())
  }

  scrape()
  ```

  ```python Python theme={null}
  import requests
    
  url = "https://scraper-api.decodo.com/v2/scrape"
    
  payload = {
        "target": "amazon_pricing",
        "query": "B0BS1QCFHX",
        "page_from": "1",
        "parse": True
  }
    
  headers = {
      "accept": "application/json",
      "content-type": "application/json",
      "authorization": "Basic TOKEN VALUE" # update with your authorization token
  }
    
  response = requests.post(url, json=payload, headers=headers)
    
  print(response.text)
  ```
</CodeGroup>

## Output

Descriptions for fields in the parsed `JSON` `results` section are provided in the table below. Keep in mind that the number of fields can vary according to the provided search query.

| Results key    | Description                                                                                  |
| -------------- | -------------------------------------------------------------------------------------------- |
| `url`          | URL to the Amazon Product page.                                                              |
| `asin`         | Amazon's unique identifier for products, known as the Amazon Standard Identification Number. |
| `page`         | The page number.                                                                             |
| `title`        | The product's title.                                                                         |
| `pricing`      | An array of pricing information.                                                             |
| `asin_in_url`  | Amazon Standard Identification Number (ASIN) from the product URL.                           |
| `review_count` | The total number of reviews for the product.                                                 |

#### Response Example

<CodeGroup>
  ```json JSON expandable theme={null}
  {
      "results": {
          "url": "https://www.amazon.com/gp/product/ajax/aodAjaxMain/ref=dp_aod_unknown_mbc?asin=B0BS1QCFHX&pageno=1&language=en_US",
          "asin": "B0BS1QCFHX",
          "page": 1,
          "title": "Sony WH-CH720N Noise Canceling Wireless Headphones Bluetooth Over The Ear Headset with Microphone and Alexa Built-in, Black New",
          "pricing": [
              {
                  "price": 98,
                  "seller": "Adorama",
                  "currency": "USD",
                  "delivery": "Ships from Adorama",
                  "condition": "New",
                  "seller_id": "A17MC6HOH9AVE6",
                  "seller_link": "/gp/aag/main?ie=UTF8&seller=A17MC6HOH9AVE6&isAmazonFulfilled=0&asin=B0BS1QCFHX&ref_=olp_merch_name_0",
                  "rating_count": 581574,
                  "price_shipping": 0,
                  "delivery_options": [
                      {
                          "date": {
                              "by": "Tomorrow, November 20"
                          },
                          "type": "FREE delivery"
                      }
                  ],
                  "price_with_prime": 90
              },
              {
                  "price": 74.14,
                  "seller": "Amazon Resale",
                  "currency": "USD",
                  "delivery": "Ships from Amazon.com",
                  "condition": "Used - Good",
                  "seller_id": "",
                  "seller_link": "https://www.amazon.com/Warehouse-Deals/b?ie=UTF8&node=10158976011",
                  "rating_count": 0,
                  "price_shipping": 0,
                  "delivery_options": [
                      {
                          "date": {
                              "by": "Monday, November 24"
                          },
                          "type": "FREE delivery"
                      },
                      {
                          "date": {
                              "by": "Friday, November 21"
                          },
                          "type": "Prime members FREE delivery"
                      }
                  ]
              },
              {
                  "price": 75,
                  "seller": "Beach Camera Same Day Shipping",
                  "currency": "USD",
                  "delivery": "Ships from Beach Camera Same Day Shipping",
                  "condition": "Used - Like New",
                  "seller_id": "A13BNE3P7C8THK",
                  "seller_link": "/gp/aag/main?ie=UTF8&seller=A13BNE3P7C8THK&isAmazonFulfilled=0&asin=B0BS1QCFHX&ref_=olp_merch_name_2",
                  "rating_count": 356045,
                  "price_shipping": 0,
                  "delivery_options": [
                      {
                          "date": {
                              "by": "Friday, November 21"
                          },
                          "type": "FREE delivery"
                      }
                  ]
              },
              {
                  "price": 89.99,
                  "seller": "MeimeiGo",
                  "currency": "USD",
                  "delivery": "Ships from MeimeiGo",
                  "condition": "Used - Like New",
                  "seller_id": "A24H8QAZNNLWWM",
                  "seller_link": "/gp/aag/main?ie=UTF8&seller=A24H8QAZNNLWWM&isAmazonFulfilled=0&asin=B0BS1QCFHX&ref_=olp_merch_name_3",
                  "rating_count": 261,
                  "price_shipping": 0,
                  "delivery_options": [
                      {
                          "date": {
                              "by": "Wednesday, November 26"
                          },
                          "type": "FREE delivery"
                      },
                      {
                          "date": {
                              "by": "Tomorrow, November 20"
                          },
                          "type": "fastest delivery"
                      }
                  ]
              },
              {
                  "price": 95,
                  "seller": "JZXN Tech",
                  "currency": "USD",
                  "delivery": "Ships from JZXN Tech",
                  "condition": "Used - Like New",
                  "seller_id": "A3JWQJ9F8N82T1",
                  "seller_link": "/gp/aag/main?ie=UTF8&seller=A3JWQJ9F8N82T1&isAmazonFulfilled=0&asin=B0BS1QCFHX&ref_=olp_merch_name_4",
                  "rating_count": 53,
                  "price_shipping": 0,
                  "delivery_options": [
                      {
                          "date": {
                              "by": "November 24 - 26"
                          },
                          "type": "FREE delivery"
                      },
                      {
                          "date": {
                              "by": "Friday, November 21"
                          },
                          "type": "fastest delivery"
                      }
                  ]
              },
              {
                  "price": 95,
                  "seller": "NewConcept1",
                  "currency": "USD",
                  "delivery": "Ships from NewConcept1",
                  "condition": "Used - Like New",
                  "seller_id": "AGHAKUO0VEBNZ",
                  "seller_link": "/gp/aag/main?ie=UTF8&seller=AGHAKUO0VEBNZ&isAmazonFulfilled=0&asin=B0BS1QCFHX&ref_=olp_merch_name_5",
                  "rating_count": 8,
                  "price_shipping": 0,
                  "delivery_options": [
                      {
                          "date": {
                              "by": "Friday, November 28"
                          },
                          "type": "FREE delivery"
                      },
                      {
                          "date": {
                              "by": "Friday, November 21"
                          },
                          "type": "fastest delivery"
                      }
                  ]
              },
              {
                  "price": 95.23,
                  "seller": "NAMA Technology LLC",
                  "currency": "USD",
                  "delivery": "Ships from NAMA Technology LLC",
                  "condition": "Used - Like New",
                  "seller_id": "AQH6BLIXB790D",
                  "seller_link": "/gp/aag/main?ie=UTF8&seller=AQH6BLIXB790D&isAmazonFulfilled=0&asin=B0BS1QCFHX&ref_=olp_merch_name_6",
                  "rating_count": 41,
                  "price_shipping": 0,
                  "delivery_options": [
                      {
                          "date": {
                              "by": "November 24 - 26"
                          },
                          "type": "FREE delivery"
                      },
                      {
                          "date": {
                              "by": "November 20 - 24"
                          },
                          "type": "fastest delivery"
                      }
                  ]
              },
              {
                  "price": 95.23,
                  "seller": "True Mart LLC",
                  "currency": "USD",
                  "delivery": "Ships from True Mart LLC",
                  "condition": "Used - Like New",
                  "seller_id": "A38NQ511PUC45R",
                  "seller_link": "/gp/aag/main?ie=UTF8&seller=A38NQ511PUC45R&isAmazonFulfilled=0&asin=B0BS1QCFHX&ref_=olp_merch_name_7",
                  "rating_count": 322,
                  "price_shipping": 0,
                  "delivery_options": [
                      {
                          "date": {
                              "by": "November 25 - 28"
                          },
                          "type": "FREE delivery"
                      },
                      {
                          "date": {
                              "by": "November 21 - 25"
                          },
                          "type": "fastest delivery"
                      }
                  ]
              },
              {
                  "price": 95.23,
                  "seller": "Blue Sky Distribution",
                  "currency": "USD",
                  "delivery": "Ships from Blue Sky Distribution",
                  "condition": "Used - Like New",
                  "seller_id": "A3157HR2I6E5II",
                  "seller_link": "/gp/aag/main?ie=UTF8&seller=A3157HR2I6E5II&isAmazonFulfilled=0&asin=B0BS1QCFHX&ref_=olp_merch_name_8",
                  "rating_count": 81,
                  "price_shipping": 0,
                  "delivery_options": [
                      {
                          "date": {
                              "by": "November 25 - 28"
                          },
                          "type": "FREE delivery"
                      },
                      {
                          "date": {
                              "by": "November 24 - 25"
                          },
                          "type": "fastest delivery"
                      }
                  ]
              },
              {
                  "price": 95.23,
                  "seller": "SmartShopper LLC",
                  "currency": "USD",
                  "delivery": "Ships from SmartShopper LLC",
                  "condition": "Used - Like New",
                  "seller_id": "AJ98EZ5BUNORU",
                  "seller_link": "/gp/aag/main?ie=UTF8&seller=AJ98EZ5BUNORU&isAmazonFulfilled=0&asin=B0BS1QCFHX&ref_=olp_merch_name_9",
                  "rating_count": 113,
                  "price_shipping": 0,
                  "delivery_options": [
                      {
                          "date": {
                              "by": "November 25 - 28"
                          },
                          "type": "FREE delivery"
                      },
                      {
                          "date": {
                              "by": "November 21 - 25"
                          },
                          "type": "fastest delivery"
                      }
                  ]
              },
              {
                  "price": 0,
                  "seller": "Video & Audio Center - Same Day Shipping",
                  "currency": "USD",
                  "delivery": "Ships from Amazon.com",
                  "condition": "New",
                  "seller_id": "A13ACIRM091OJE",
                  "seller_link": "/gp/aag/main?ie=UTF8&seller=A13ACIRM091OJE&isAmazonFulfilled=1&asin=B0BS1QCFHX&ref_=olp_merch_name_10",
                  "rating_count": 67096,
                  "price_shipping": 0,
                  "delivery_options": [
                      {
                          "date": {
                              "by": "Tuesday, November 25"
                          },
                          "type": "FREE delivery"
                      },
                      {
                          "date": {
                              "by": "Saturday, November 22"
                          },
                          "type": "Prime members FREE delivery"
                      }
                  ]
              }
          ],
          "_warnings": [
              "Could not parse rating count.",
              "Could not parse pricing price."
          ],
          "asin_in_url": "B0BS1QCFHX",
          "review_count": 12983,
          "parse_status_code": 12000
      },
      "errors": [],
      "status_code": 12000,
      "task_id": "7396912499506832385"
  }
  ```
</CodeGroup>

***

<Columns cols={2}>
  <Card title="Support" href="https://direct.lc.chat/12092754" cta="Let's chat!">
    Need help or just want to say hello? Our support is available 24/7. \
    You can also reach us anytime via email at [support@decodo.com](mailto:support@decodo.com).
  </Card>

  <Card title="Feedback" href="mailto:feedback@decodo.com" cta="Share feedback">
    Can't find what you're looking for? Request an article! \
    Have feedback? Share your thoughts on how we can improve.
  </Card>
</Columns>
