# Ggchest — 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.

> Browse and search game account offers, in-game currency, and item listings across the GGChest gaming marketplace to find deals on your favorite games. Instantly access current marketplace offers and filter by specific games to compare prices and availability.

**Category:** Marketplaces | **Website:** [ggchest.com/](https://ggchest.com/) | **Docs:** [parse.bot/marketplace/1bafef25-73bb-48e1-bc42-1b2d53be7d86/ggchest-com-api](https://parse.bot/marketplace/1bafef25-73bb-48e1-bc42-1b2d53be7d86/ggchest-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-ggchest-com-api-1bafef25/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_offers

Retrieve paginated marketplace offers for a specific game category. Returns offer listings with price, seller info, delivery details, and game metadata. Results are auto-iterated with 24 items per page. Use the slug from search_games to target a specific game and offer type.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `currency` | string | No | Target currency for prices. Accepts standard currency codes such as USD, EUR, GBP. |
| `page` | integer | No | Page number for pagination, starting at 1. |
| `slug` | string | No | URL slug identifying the game and offer type (e.g. 'forza-horizon-6-accounts', 'forza-horizon-5-items'). Obtain available slugs from search_games endpoint pages field. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ggchest-com-api-1bafef25/get_offers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"currency":"<string>","page":"<integer>","slug":"<string>"}'
```

### search_games

Search for available games on the GGChest marketplace. Returns game names, IDs, icons, and available offer page slugs (accounts, items, currency). Use the returned slugs as input to get_offers.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | No | Search query to filter games by name. Case-insensitive partial match. Omitting returns all available games. |

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