# Amazon (United Arab Emirates) — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Find products and compare prices on Amazon.ae by searching across categories, viewing detailed product information, and discovering today's best deals and top-selling items. Browse electronics, books, fashion, or any product category to stay updated on the latest offers available on the platform.

**Category:** E-commerce | **Website:** [amazon.ae/](https://amazon.ae/) | **Docs:** [parse.bot/marketplace/1886a340-ad44-4755-8a90-9ae3e6282e44/amazon-ae-api](https://parse.bot/marketplace/1886a340-ad44-4755-8a90-9ae3e6282e44/amazon-ae-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-amazon-ae-api-1886a340/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_best_sellers

Retrieve the top 30 best-selling products for a given category on Amazon.ae. Returns a ranked list with product title, ASIN, and price.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Category slug used in the best sellers URL path (e.g. 'electronics', 'books', 'fashion'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-amazon-ae-api-1886a340/get_best_sellers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>"}'
```

### get_product_details

Fetch full product details for a single Amazon.ae listing by ASIN or product URL. Returns title, price, brand, model, weight, barcode (EAN/UPC when available), and a key-value map of all technical specifications extracted from the product page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `asin` | string | No | Amazon Standard Identification Number, 10 alphanumeric characters (e.g. 'B0BTYCRJSS'). Either asin or url must be provided. |
| `url` | string | No | Full Amazon.ae product URL containing a /dp/ or /gp/product/ path. ASIN is extracted automatically. Either asin or url must be provided. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-amazon-ae-api-1886a340/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asin":"<string>","url":"<string>"}'
```

### get_todays_deals

Retrieve currently active deals from the Amazon.ae Today's Deals page. Returns a list of products on promotion with their current prices. No input parameters required; content changes daily.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-amazon-ae-api-1886a340/get_todays_deals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_by_barcode

Search Amazon.ae products by EAN/UPC barcode. Uses the barcode as a keyword search to find matching products, then fetches full details (brand, model, weight, specs) from product detail pages. Optionally scoped to the grocery department. Barcode searches typically return 1-5 results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `barcode` | string | Yes | EAN/UPC barcode (8-14 digits, e.g. '8000500217078'). |
| `grocery` | boolean | No | When true, restricts search results to the Amazon.ae grocery department. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-amazon-ae-api-1886a340/search_by_barcode \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"barcode":"<string>","grocery":"<boolean>"}'
```

### search_products

Full-text search over Amazon.ae product listings. Returns paginated results (~48 products per page) with title, price, rating, and image. Supports price-range filtering, sort-order control, and grocery department scoping. Pagination via integer page counter.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `grocery` | boolean | No | When true, restricts search results to the Amazon.ae grocery department. |
| `max_price` | string | No | Maximum price filter in AED (e.g. '2000'). |
| `min_price` | string | No | Minimum price filter in AED (e.g. '200'). |
| `page` | integer | No | Page number for pagination (1-based). |
| `query` | string | Yes | Search keyword (e.g. 'laptop', 'wireless earbuds'). |
| `sort` | string | No | Sort order for results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-amazon-ae-api-1886a340/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"grocery":"<boolean>","max_price":"<string>","min_price":"<string>","page":"<integer>","query":"<string>","sort":"<string>"}'
```
