# Creature Racing API

The Creature Racing API is a public, read-only REST API for our catalog of electric motorcycles (e-motos), electric dirt bikes and parts. Use it to search vehicles and parts, read prices and stock, check which parts fit a vehicle and estimate shipping. AI agents can also use our [MCP server](https://creatureracing.com/mcp).

## Quickstart

Base URL: `https://api.creatureracing.com/`

Search vehicles:

```bash
curl -X POST https://api.creatureracing.com/vehicles/search \
  -H 'Content-Type: application/json' \
  -d '{"filters":{"q":"talaria"},"pagination":{"page":1,"limit":5}}'
```

Read one product, with prices, options and stock, by its URL slug:

```bash
curl https://api.creatureracing.com/products/2025-surron-light-bee-x
```

See the site-wide sale running now, if any:

```bash
curl https://api.creatureracing.com/sales/active-site-wide
```

## Authentication

None. Every endpoint is public and needs no API key, account or sign-in. Prices are in US dollars, and shipping estimates cover US ZIP codes.

## Endpoints

| Method | Path | What it returns |
| --- | --- | --- |
| GET | `/products/{idOrSlug}` | Get Public Product by ID or slug |
| GET | `/product-slugs` | List the slugs of every publicly visible product |
| GET | `/products/{productId}/fitted-parts` | List the publicly visible parts that fit a vehicle product |
| POST | `/product-cards` | Build presentable product cards (price, image, stock per option, product page link) for chosen products and option values |
| POST | `/vehicles/search` | Vehicle search with filters |
| POST | `/vehicles/search/facets` | Distinct years, makes and models of vehicles whose product is live |
| GET | `/vehicles/lookup` | Find a vehicle by year and make and model URL slugs |
| POST | `/parts/search` | Part search with filters and YMM compatibility |
| GET | `/part-categories` | Get Part Category Tree |
| GET | `/brands` | List Brands (paginated) |
| GET | `/products/{productId}/fitting-vehicles` | List the vehicles a publicly visible part product fits |
| GET | `/parts/{partId}/fitment-vehicles` | Search year, make and model vehicles and say whether a part fits each |
| GET | `/sales/active-site-wide` | Get the site-wide sale running right now, with banner slides |
| POST | `/shipping/estimate` | Price standard delivery for a set of lines to a US ZIP code, as checkout will |

## OpenAPI specification

- [OpenAPI 3.1 specification](https://api.creatureracing.com/openapi.json): every endpoint with its parameters and response schema, for code generators and function calling
- [API reference](https://api.creatureracing.com/docs/catalog): the same specification as a browsable page

## Errors

Errors are JSON with the HTTP status, an error type and a message:

```json
{ "type": "NotFoundError", "status": 404, "message": "Product not found: no-such-product" }
```

## Buying

The API only reads. To buy, send the shopper to the product page, `https://creatureracing.com/shop/products/<slug>`. Agents that speak the Universal Commerce Protocol can build a cart and checkout from the [UCP profile](https://creatureracing.com/.well-known/ucp).

## More for AI agents

- [MCP server](https://creatureracing.com/mcp): `https://api.creatureracing.com/mcp/storefront`, the same catalog as tools for Claude and other AI assistants
- [llms.txt](https://creatureracing.com/llms.txt): a map of this site for language models
- [Shopping agent skill](https://creatureracing.com/.well-known/agent-skills/creature-racing-shopping/SKILL.md): step-by-step instructions for agents
- [API catalog](https://creatureracing.com/.well-known/api-catalog): RFC 9727 links to the API, its specification and the MCP server

## Support

Questions about the API: email support@creatureracing.com or call (916) 922-3333.
