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

# Amazon product

> Read an Amazon product page as JSON with the amazon-product parser. $1 per 1,000 calls. Send the page to scrape. Examples in cURL, TypeScript and Python.

Reads an Amazon product page, like amazon.com/dp/`<ASIN>`, and returns one product as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. Get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.amazon.com/dp/B0CX23V2ZK","formats":[{"type":"json","parser":"amazon-product"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://www.amazon.com/dp/B0CX23V2ZK",
    formats: [{ type: "json", parser: "amazon-product" }],
  }),
});
console.log(await response.json());
```

```python Python theme={null}
import os

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://www.amazon.com/dp/B0CX23V2ZK",
        "formats": [{"type": "json", "parser": "amazon-product"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `id`, `url`, `title`, `brand`, `description`, `price`, `originalPrice`, `rating`, `reviewCount`, `availability`, `images`, `categories` and `seller`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "id": "B0CX23V2ZK",
      "url": "https://www.amazon.com/dp/B0CX23V2ZK",
      "title": "Apple 2024 MacBook Air 13-inch Laptop with M3 chip: Built for Apple Intelligence, 13.6-inch Liquid Retina Display, 8GB…",
      "brand": "Apple",
      "description": null,
      "price": null,
      "originalPrice": null,
      "rating": 4.8,
      "reviewCount": 1081,
      "availability": "Currently unavailable.",
      "images": [
        "https://m.media-amazon.com/images/I/71-D1xCuVwL._AC_SL1500_.jpg",
        "https://m.media-amazon.com/images/I/61LbQpnFNvL._AC_SL1500_.jpg",
        "https://m.media-amazon.com/images/I/61S2t5yhVSL._AC_SL1500_.jpg"
      ],
      "categories": [],
      "seller": null,
      "bullets": [
        "LEAN. MEAN. M3 MACHINE - With a powerful 8-core CPU and 10-core GPU, the blazing-fast MacBook Air with M3 chip is a…",
        "BUILT FOR APPLE INTELLIGENCE-Apple Intelligence is the personal intelligence system that helps you write, express…",
        "PORTABLE DESIGN - Lightweight and under half an inch thin, so you can take MacBook Air anywhere you go."
      ],
      "variants": [],
      "sellerShipsFrom": null,
      "bestSellersRank": [],
      "specs": [
        {
          "name": "Brand",
          "value": "Apple"
        }
      ],
      "topReviews": []
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `country` | ISO 3166-1 alpha-2 country code, e.g. us. Any case is accepted. |

## Price

\$1 per 1,000 calls. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be an Amazon product page, like amazon.com/dp/`<ASIN>`. Any other URL fails with `invalidRequest`.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Amazon search](https://docs.stophy.dev/scrape/prebuilt-parsers/shopping/amazon-search.md)
* [Amazon reviews](https://docs.stophy.dev/scrape/prebuilt-parsers/shopping/amazon-reviews.md)
* [Amazon bestsellers](https://docs.stophy.dev/scrape/prebuilt-parsers/shopping/amazon-bestsellers.md)


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