# Playerok — 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 in-game items, accounts, and gaming services on Playerok's gaming marketplace. Access detailed product listings, game categories, and featured items. Filter by game or category to retrieve available offerings.

**Category:** Marketplaces | **Website:** [playerok.com/](https://playerok.com/) | **Docs:** [parse.bot/marketplace/8249b39b-9327-4c88-b9d5-d88f8de6bafc/playerok-com-api](https://parse.bot/marketplace/8249b39b-9327-4c88-b9d5-d88f8de6bafc/playerok-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-playerok-com-api-8249b39b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_item

Get detailed information about a single product/item by its slug, including full description, attributes, images, seller info, game and category details, and obtaining type.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Product slug identifier (e.g., '<product-slug>') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-playerok-com-api-8249b39b/get_item \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### get_top_items

Get featured/top products from the marketplace homepage. These are promoted items across all games.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of top items to return (max 50) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-playerok-com-api-8249b39b/get_top_items \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>"}'
```

### list_categories

List all marketplace categories (e.g., Донат, Аккаунты, Предметы, Ключи, etc.).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of categories to return (max 50) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-playerok-com-api-8249b39b/list_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>"}'
```

### list_items

List products/items with filtering by game, category, sorting, and cursor-based pagination. Supports filtering by game_id/game_category_id directly, or by game_slug/category_slug (auto-resolved).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_slug` | string | No | Category slug to filter by (e.g., 'coins'). Used with game_slug for auto-resolution. |
| `cursor` | string | No | Pagination cursor from page_info.end_cursor of previous response |
| `game_category_id` | string | No | Game category UUID to filter by (e.g., '1ecc48ce-52cb-6260-00d0-cfdb37fa1032' for Crystals). Use search_games to find category IDs. |
| `game_id` | string | No | Game UUID to filter by (e.g., '1ecc48ce-4f17-6e23-6b8a-fa42990d44fb' for Genshin Impact). Use search_games to find IDs. |
| `game_slug` | string | No | Game slug to filter by (e.g., 'genshin-impact'). Will be auto-resolved to game_id. Prefer game_id for efficiency. |
| `limit` | integer | No | Number of items per page (max 50) |
| `sort_direction` | string | No | Sort direction: ASC or DESC |
| `sort_field` | string | No | Sort field (e.g., 'price', 'createdAt') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-playerok-com-api-8249b39b/list_items \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_slug":"<string>","cursor":"<string>","game_category_id":"<string>","game_id":"<string>","game_slug":"<string>","limit":"<integer>","sort_direction":"<string>","sort_field":"<string>"}'
```

### search_games

Search for games by name or list games by type. Returns game IDs, slugs, and their categories which can be used to filter items in list_items.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `game_type` | string | No | Filter by game type: GAME, MOBILE_GAME, or APPLICATION |
| `limit` | integer | No | Number of games to return (max 50) |
| `query` | string | No | Search query to filter games by name (e.g., 'Genshin') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-playerok-com-api-8249b39b/search_games \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"game_type":"<string>","limit":"<integer>","query":"<string>"}'
```
