# Amazon (Mexico) — 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.

> Search and discover products on Amazon Mexico with real-time pricing, detailed product information, offers, and bestseller lists. Compare prices instantly, get search suggestions, and find current deals to help you make informed shopping decisions.

**Category:** E-commerce | **Website:** [amazon.com.mx/](https://amazon.com.mx/) | **Docs:** [parse.bot/marketplace/1d881601-b84f-4e00-bf25-b83a7c353a06/amazon-com-mx-api](https://parse.bot/marketplace/1d881601-b84f-4e00-bf25-b83a7c353a06/amazon-com-mx-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-com-mx-api-1d881601/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_bestsellers

Retrieve the Amazon.com.mx bestsellers list for a given category. Returns up to 30 ranked items with ASIN, title, price, and rating.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_slug` | string | No | Category slug for bestsellers |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-amazon-com-mx-api-1d881601/get_bestsellers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_slug":"<string>"}'
```

### get_deals

Retrieve active promotions and deals from the Amazon.com.mx deals page. Returns currently featured deal items with their ASIN, title, discounted price, deal type, and discount badge.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-amazon-com-mx-api-1d881601/get_deals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_details

Retrieve comprehensive product details for a given ASIN on Amazon.com.mx, including title, price, rating, features, description, images, and availability.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `asin` | string | Yes | Amazon Standard Identification Number (alphanumeric product ID, e.g. 'B09WNK39JN') |

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

### get_product_offers

Retrieve all available seller offers for a product ASIN. NOTE: Currently blocked by AWS WAF protection.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `asin` | string | Yes | Amazon Standard Identification Number |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-amazon-com-mx-api-1d881601/get_product_offers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asin":"<string>"}'
```

### search_products

Search for products on Amazon.com.mx by keyword. Returns a paginated list of products with their title, ASIN, price, rating, and image URL. Paginates via integer page number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Search keyword (e.g. 'laptop', 'audifonos') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-amazon-com-mx-api-1d881601/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```

### search_suggestions

Fetch search autocomplete suggestions for a given partial query on Amazon.com.mx. Returns up to 10 suggestion strings.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query prefix to get suggestions for (e.g. 'laptop') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-amazon-com-mx-api-1d881601/search_suggestions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
