# Online Metro Cc — 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 browse products from Russian METRO Cash & Carry online store with detailed attributes, pricing, and availability information. Explore product categories and look up specific items to compare features and find what you need.

**Category:** E-commerce | **Website:** [online.metro-cc.ru/](https://online.metro-cc.ru/) | **Docs:** [parse.bot/marketplace/c0aed29f-2799-421a-bc27-e66083ce3f2b/online-metro-cc-ru-api](https://parse.bot/marketplace/c0aed29f-2799-421a-bc27-e66083ce3f2b/online-metro-cc-ru-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-online-metro-cc-ru-api-c0aed29f/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Retrieve the full hierarchical category tree from the METRO Cash & Carry catalog. Returns all top-level categories with up to 3 levels of nested children. Each category includes id, name, URL slug, and parent_id. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-online-metro-cc-ru-api-c0aed29f/get_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_details

Fetch full details for a single product by its URL slug. Returns product attributes including SKU, name, brand, country of origin, product type, unit of measure, and current price. The slug can be extracted from product URLs returned by search_products (the path segment after /products/).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Product slug from URL path (e.g. 'moloko-prostokvashino-bezlaktoznoye-ultrapasterizovannoye-1-5-970ml-84771') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-online-metro-cc-ru-api-c0aed29f/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### search_products

Full-text search over METRO Cash & Carry product catalog by keyword. Returns matching products with price, brand, country of origin, product type, and availability. Paginates internally up to 5 pages to fill the requested limit. Only returns products whose names contain the query string.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of products to return |
| `query` | string | Yes | Search keyword in Russian (e.g. 'молоко', 'кофе', 'сыр') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-online-metro-cc-ru-api-c0aed29f/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>"}'
```
