# Sportscarddatabase — 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 sportscarddatabase.com.

**Category:** Sports | **Website:** [http://www.sportscarddatabase.com/default.aspx](http://www.sportscarddatabase.com/default.aspx) | **Docs:** [parse.bot/marketplace/eb8e39fe-9860-4ba1-8b2a-6ccaf95e7287/sportscarddatabase-com-api](https://parse.bot/marketplace/eb8e39fe-9860-4ba1-8b2a-6ccaf95e7287/sportscarddatabase-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-sportscarddatabase-com-api-eb8e39fe/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_card

Get full details for a specific card by its ID. Returns player information, set details, card number, attributes (rookie, short print, etc.), and image URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `card_id` | string | Yes | Numeric card ID from search_cards or get_set results (e.g. '86206'). |

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

### get_set

Get the full checklist for a specific card set. Returns set metadata and all cards in the set with their card IDs, numbers, player names, and attributes.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `set_id` | string | Yes | Set ID from list_sets results (e.g. '151792'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sportscarddatabase-com-api-eb8e39fe/get_set \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"set_id":"<string>"}'
```

### list_sets

List card sets for a sport, optionally filtered by year. Returns set IDs, names, years, and card counts. When year is omitted, returns all sets for the sport (can be very large, 20000+ for baseball).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sport` | string | No | Sport to list sets for. Defaults to baseball when omitted. |
| `year` | string | No | Filter sets by year (e.g. '2020'). Omit to return all years. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sportscarddatabase-com-api-eb8e39fe/list_sets \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sport":"<string>","year":"<string>"}'
```

### search_cards

Search for sports cards by player name, year, and/or set name. Returns paginated results with card IDs, descriptions, attributes, and image URLs. Results are ordered chronologically. Each page returns up to 50 cards.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based). |
| `player` | string | No | Player name to search for (e.g. 'Jeter', 'Michael Jordan'). At least one of player, year, or set must be provided. |
| `set` | string | No | Card set name to search for (e.g. 'Topps', 'Bowman'). |
| `sport` | string | No | Sport to search within. Defaults to baseball when omitted. |
| `year` | string | No | Card year to filter by (e.g. '1993', '2020'). |

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