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

> Access live CS2 skin prices, weapon catalogs, and case details. Search across weapons, skins, and collections to find specific items and their current market values.

**Category:** Marketplaces | **Website:** [csgostash.com/](https://csgostash.com/) | **Docs:** [parse.bot/marketplace/86a0a07f-c769-491c-a7a4-51bfff596e7e/csgostash-com-api](https://parse.bot/marketplace/86a0a07f-c769-491c-a7a4-51bfff596e7e/csgostash-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-csgostash-com-api-86a0a07f/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_case_detail

List all skins contained in a specific case. Returns the case name and an array of skins with their IDs, slugs, URLs, and rarities. The skins span the full rarity distribution from Mil-Spec through Covert.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Case ID obtained from list_cases results. |
| `slug` | string | Yes | Case slug obtained from list_cases results (e.g. Fever-Case). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csgostash-com-api-86a0a07f/get_case_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"<string>","slug":"<string>"}'
```

### get_home

Fetch featured items and new releases from the home page. Returns a mix of cases and skins currently featured on the site. The selection rotates and reflects what the site promotes at any given time.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csgostash-com-api-86a0a07f/get_home \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_skin_detail

Get detailed information and current market prices for a specific skin. Returns pricing across all wear conditions (Factory New through Battle-Scarred, both normal and StatTrak), rarity, collection, and image. Prices reflect live Steam Community Market data.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Skin ID obtained from get_skins_by_weapon results. |
| `slug` | string | Yes | Skin slug obtained from get_skins_by_weapon results (e.g. AK-47-Vulcan). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csgostash-com-api-86a0a07f/get_skin_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"<string>","slug":"<string>"}'
```

### get_skins_by_weapon

List all skins for a specific weapon. Returns skin names, IDs, slugs, price ranges, images, and rarity information. Each skin can be drilled into with get_skin_detail using the returned id and slug.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `weapon` | string | Yes | Weapon name matching one from list_weapons endpoint. Uses hyphenated format for multi-word names. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csgostash-com-api-86a0a07f/get_skins_by_weapon \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"weapon":"<string>"}'
```

### list_cases

List all CS2 cases available on the site. Returns case names, IDs, slugs, URLs, and images. Each case can be drilled into with get_case_detail using the returned id and slug.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csgostash-com-api-86a0a07f/list_cases \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### list_collections

List skin collections available on the site. Extracts collections from the site navigation menu. Returns collection names, URLs, and images where available. Not all collections have images.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csgostash-com-api-86a0a07f/list_collections \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### list_weapons

Get a list of common weapons available for skin lookups. Returns a static list of weapon names that can be used with the get_skins_by_weapon endpoint.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csgostash-com-api-86a0a07f/list_weapons \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
