# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/sportscardspro/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/sportscardspro/get-card \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/sportscardspro/get-price-history \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/sportscardspro/search-cards \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","set":"<string>","sport":"<string>","year":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.