# Cpsc — 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 cpsc.gov.

**Category:** Government & Public Data | **Website:** [www.cpsc.gov/Recalls](https://www.cpsc.gov/Recalls) | **Docs:** [parse.bot/marketplace/e043e004-0ef9-4419-9970-401e21ddba6c/cpsc-gov-api](https://parse.bot/marketplace/e043e004-0ef9-4419-9970-401e21ddba6c/cpsc-gov-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-cpsc-gov-api-e043e004/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### search_recalls

Search CPSC product recalls within a date range. Results are sorted newest-first. The upstream API returns all matching recalls for the date window; skip and limit control which slice of results is returned. When query is provided, results are filtered to recalls whose title contains the query string.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date_from` | string | No | Start date for recall date range filter in YYYY-MM-DD format. Defaults to 30 days before today when omitted. |
| `date_to` | string | No | End date for recall date range filter in YYYY-MM-DD format. Defaults to today when omitted. |
| `limit` | integer | No | Maximum number of results to return per request (1-100). |
| `query` | string | No | Filter recalls by title keyword. Only recalls whose title contains this string are returned. |
| `skip` | integer | No | Number of results to skip for pagination. Use with limit to page through results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cpsc-gov-api-e043e004/search_recalls \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date_from":"<string>","date_to":"<string>","limit":"<integer>","query":"<string>","skip":"<integer>"}'
```
