# Tmsearch — 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.

> Search USPTO trademarks by wordmark or serial number, and retrieve detailed case information (status, owners, classes, and prosecution history) for a specific serial number.

**Category:** Government & Public Data | **Website:** [tmsearch.uspto.gov/](https://tmsearch.uspto.gov/) | **Docs:** [parse.bot/marketplace/f301f6e2-774e-48f7-93c2-9eb5ff29611f/tmsearch-uspto-gov-api](https://parse.bot/marketplace/f301f6e2-774e-48f7-93c2-9eb5ff29611f/tmsearch-uspto-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-tmsearch-uspto-gov-api-f301f6e2/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_trademark_details

Retrieve comprehensive trademark case data by USPTO serial number. Returns owner details (name, entity type, address, citizenship), correspondent info, international class data with first-use dates, full prosecution history timeline, registration maintenance dates, and current TM5 status. A separate round-trip per serial number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `serial_number` | string | Yes | USPTO serial number (e.g., '97161824') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tmsearch-uspto-gov-api-f301f6e2/get_trademark_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"serial_number":"<string>"}'
```

### search_trademarks

Full-text search over USPTO trademark filings by wordmark name or serial number. Returns paginated results ordered by relevance. Serial numbers (all-digit queries) match exactly; text queries match against the wordmark and pseudo-mark fields with phrase boosting. Each result is a TrademarkSummary with filing metadata, owner, and class info. Offset-based manual pagination via offset and limit params.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum results to return per page |
| `offset` | integer | No | Pagination offset for results |
| `query` | string | Yes | Search term - trademark name/wordmark or serial number (e.g., 'apple' or '78406612') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tmsearch-uspto-gov-api-f301f6e2/search_trademarks \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>","query":"<string>"}'
```
