> ## 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 Sellers [Core/Advanced]

> Web Scraping API Amazon Sellers 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_sellers` template is built to obtain Amazon Sellers pages.

<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 the Amazon Pricing template:

| Parameter | Type | Required | Description |
| - | - | - | - |
| `target` | string | ✅ | Target type must be set to `amazon_sellers`. |
| `query` | string | ✅ | A 14-character Amazon Seller ID 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) |
| `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) |
| `device_type` | string | | Specify device type and browser. [**Read more.**](https://help.decodo.com/docs/web-scraping-api-device-types-deprecated) |
| `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_sellers",
        "query": "A1R0Z7FJGTKESH",
        "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_sellers",
        "query": "A1R0Z7FJGTKESH",
        "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_sellers",
        "query": "A1R0Z7FJGTKESH",
        "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 Seller page. |
| `query` | A 14-character Amazon Seller ID code used in the request. |
| `page_type` | The type of Amazon page. |
| `description` | A description of the seller. |
| `seller_name` | The seller's name. |
| `business_name` | The business's name. |
| `business_address` | The business address. |
| `rating` | The seller's rating. |

#### Response Example

<CodeGroup>
  ```python JSON expandable theme={null}
  {
      "results": {
          "url": "https://www.amazon.com/sp?seller=A1R0Z7FJGTKESH&language=en_US",
          "query": "A1R0Z7FJGTKESH",
          "page_type": "Seller",
          "description": "A1R0Z7FJGTKESH is committed to providing each customer with the highest standard of customer service.",
          "seller_name": "A1R0Z7FJGTKESH",
          "business_name": "A1R0Z7FJGTKESH",
          "business_address": "Söderbyvägen 13 ARLANDASTAD Sweden 19560 SE",
          "parse_status_code": 12000
      },
      "errors": [],
      "status_code": 12000,
      "task_id": "7396916579893523457"
  }
  ```
</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>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.