# Pyaterochka — 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 Pyaterochka's complete product catalog with real-time pricing, nutritional details, and special offers across all store locations. Find categories, compare products, and access the latest deals from Russia's popular grocery chain.

**Category:** Food & Dining | **Website:** [5ka.ru/](https://5ka.ru/) | **Docs:** [parse.bot/marketplace/9f6f11ee-e606-409e-aa4e-bea501567fd5/5ka-ru-api](https://parse.bot/marketplace/9f6f11ee-e606-409e-aa4e-bea501567fd5/5ka-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-5ka-ru-api-9f6f11ee/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Fetch all top-level product categories.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-5ka-ru-api-9f6f11ee/get_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_detail

Fetch full detail for a single product, including nutritional values (proteins, fats, carbohydrates, calories).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Unique product ID (PLU). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-5ka-ru-api-9f6f11ee/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>"}'
```

### get_products

Fetch a paginated list of products with optional filters.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_code` | string | No | Filter by category ID/code. |
| `limit` | integer | No | Number of items per page. |
| `order_by` | string | No | Field to sort by (e.g., 'price', '-price'). |
| `page` | integer | No | Page number. |
| `query` | string | No | Search keyword. |
| `store_id` | string | No | Filter by store ID (SAP code). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-5ka-ru-api-9f6f11ee/get_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_code":"<string>","limit":"<integer>","order_by":"<string>","page":"<integer>","query":"<string>","store_id":"<string>"}'
```

### get_special_offers

Fetch products currently on sale or promotion.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of items per page. |
| `page` | integer | No | Page number. |
| `store_id` | string | No | Store ID (SAP code). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-5ka-ru-api-9f6f11ee/get_special_offers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>","store_id":"<string>"}'
```

### get_stores

Fetch store locations and details.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-5ka-ru-api-9f6f11ee/get_stores \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
