# Sportscardspro — 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 sportscardspro.com.

**Category:** Marketplaces | **Website:** [www.sportscardspro.com/](https://www.sportscardspro.com/) | **Docs:** [parse.bot/marketplace/6808cd1c-6144-442b-b0db-17727c37d562/sportscardspro-com-api](https://parse.bot/marketplace/6808cd1c-6144-442b-b0db-17727c37d562/sportscardspro-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-sportscardspro-com-api-6808cd1c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_card

Get full card details including all grade/condition pricing (Ungraded, Grade 1-9, Grade 9.5, TAG 10, ACE 10, SGC 10, CGC 10, PSA 10, BGS 10, BGS 10 Black, CGC 10 Pristine), recent ungraded sales history, and monthly price trend data across key grades. Requires card_id from search_cards results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `card_id` | string | Yes | Card identifier from search_cards results (e.g. 'baseball-cards-2011-topps-update/mike-trout-us175'). Format: {set-slug}/{card-slug}. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sportscardspro-com-api-6808cd1c/get_card \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"card_id":"<string>"}'
```

### get_price_history

Get sales history for a specific card at a specific grade. Returns up to 30 recent completed sales with date, listing title, sale price, and marketplace. Requires card_id from search_cards and a grade value.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `card_id` | string | Yes | Card identifier from search_cards results (e.g. 'baseball-cards-2011-topps-update/mike-trout-us175'). Format: {set-slug}/{card-slug}. |
| `grade` | string | No | The grade/condition to get sales history for. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sportscardspro-com-api-6808cd1c/get_price_history \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"card_id":"<string>","grade":"<string>"}'
```

### search_cards

Search for sports cards by player name, card number, or set. Returns up to 100 results per page with card name, set, year, sport, card number, image URL, and summary prices (ungraded, grade 9, PSA 10). Supports filtering by sport and pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. Each page returns up to 100 results. |
| `query` | string | Yes | Search query - player name, card number, or set name (e.g. 'Mike Trout', 'Topps Chrome #P-5'). |
| `set` | string | No | Filter by card set name (e.g. 'Topps Update'). Incorporated into search query to narrow results. |
| `sport` | string | No | Filter results by sport. Omitted returns all sports. |
| `year` | string | No | Filter by card year (e.g. '2011'). Incorporated into search query to narrow results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sportscardspro-com-api-6808cd1c/search_cards \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","set":"<string>","sport":"<string>","year":"<string>"}'
```
