# Nascar — 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 nascar.com.

**Category:** Sports | **Website:** [www.nascar.com/drivers/nascar-cup-series/](https://www.nascar.com/drivers/nascar-cup-series/) | **Docs:** [parse.bot/marketplace/637f4159-abf0-4641-bb17-2482d689cace/nascar-com-api](https://parse.bot/marketplace/637f4159-abf0-4641-bb17-2482d689cace/nascar-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-nascar-com-api-637f4159/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_driver

Returns full driver details including biography, current season statistics, race-by-race results for the current season, and year-by-year career statistics across all NASCAR series. The slug comes from list_drivers results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Driver URL slug from list_drivers (e.g. 'alex-bowman', 'kyle-larson'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nascar-com-api-637f4159/get_driver \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### list_drivers

Returns all active NASCAR Cup Series drivers with profile information. Each driver includes name, car number, team, hometown, and a slug usable with the get operation for full details.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nascar-com-api-637f4159/list_drivers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
