# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/amazon-united-arab-emirates/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/amazon-united-arab-emirates/get-best-sellers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/amazon-united-arab-emirates/get-product-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/amazon-united-arab-emirates/get-todays-deals \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/amazon-united-arab-emirates/search-by-barcode \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/amazon-united-arab-emirates/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"grocery":"<boolean>","max_price":"<string>","min_price":"<string>","page":"<integer>","query":"<string>","sort":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.