# Marketplace Beckett — 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 data from marketplace.beckett.com.

**Category:** Marketplaces | **Website:** [marketplace.beckett.com/](https://marketplace.beckett.com/) | **Docs:** [parse.bot/marketplace/dc6684af-98a8-46d3-9998-56723aa0117c/marketplace-beckett-com-api](https://parse.bot/marketplace/dc6684af-98a8-46d3-9998-56723aa0117c/marketplace-beckett-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-marketplace-beckett-com-api-dc6684af/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_listing_details

Get all sellers and their prices for a specific card item on the Beckett Marketplace. The item_id comes from the search_listings results. Returns individual dealer listings with price, condition, and shipping info.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `item_id` | string | Yes | Beckett item ID from search_listings results (e.g. '3974596'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-marketplace-beckett-com-api-dc6684af/get_listing_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"item_id":"<string>"}'
```

### search_listings

Search the Beckett Marketplace for trading card listings by keyword. Returns paginated results with price ranges, conditions, and dealer information. Each result represents a unique card item which may have multiple sellers. Use the item_id from results to fetch all sellers via get_listing_details. Results are paginated at 50 per page; pass page to navigate.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | string | No | Page number for pagination (1-based). |
| `sort` | string | No | Sort order for results. Omitted uses default relevance order. |
| `sport` | string | No | Sport category filter. Omitted returns all sports. |
| `term` | string | Yes | Search term for card listings (player name, card title, set name, etc.). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-marketplace-beckett-com-api-dc6684af/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<string>","sort":"<string>","sport":"<string>","term":"<string>"}'
```
