# Tiendamia — 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 for products across multiple countries and vendors on Tiendamia, then access detailed product information, best sellers, outlet deals, and weekly promotions. Get real-time pricing and availability data to find the best deals across different markets.

**Category:** E-commerce | **Website:** [tiendamia.com/](https://tiendamia.com/) | **Docs:** [parse.bot/marketplace/73e4c8d2-87c6-4027-a12c-7353b7590601/tiendamia-com-api](https://parse.bot/marketplace/73e4c8d2-87c6-4027-a12c-7353b7590601/tiendamia-com-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-tiendamia-com-api-73e4c8d2/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_best_sellers

Retrieve best-selling products from Tiendamia for a given country. Returns product cards with name, brand, pricing, discount, and image.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country` | string | No | Country code. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tiendamia-com-api-73e4c8d2/get_best_sellers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country":"<string>"}'
```

### get_countries

Retrieve the list of supported Tiendamia countries with their codes and domains. This is a static list.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tiendamia-com-api-73e4c8d2/get_countries \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_outlet_deals

Retrieve products from the Outlet section of Tiendamia for a given country. Returns product cards with name, brand, pricing, discount, and image.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country` | string | No | Country code. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tiendamia-com-api-73e4c8d2/get_outlet_deals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country":"<string>"}'
```

### get_product_details

Retrieve full product details by Amazon ASIN. Returns name, brand, pricing, description, image, categories, and available variants. The ASIN is typically obtained from search_products results (products with an 'asin' field).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `asin` | string | Yes | Amazon ASIN or product identifier (e.g. 'B08D1116YN'). |
| `country` | string | No | Country code. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tiendamia-com-api-73e4c8d2/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asin":"<string>","country":"<string>"}'
```

### get_weekly_deals

Retrieve weekly promotional deals from Tiendamia for a given country. Returns product cards with name, brand, pricing, discount, and image.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country` | string | No | Country code. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tiendamia-com-api-73e4c8d2/get_weekly_deals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country":"<string>"}'
```

### search_products

Full-text search over Tiendamia product listings for a given vendor and country. Returns paginated product cards with name, brand, pricing, discount, and image. Pagination via integer page counter. Each product includes a SKU and, for Amazon items, an ASIN suitable for get_product_details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country` | string | No | Country code. |
| `page` | integer | No | Page number for pagination. |
| `query` | string | Yes | Search keyword (e.g. 'laptop', 'samsung'). |
| `vendor` | string | No | Vendor ID. |

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