# USPTO Trademark Search Scraper \[Just 💰$1.53] (`blackfalcondata/uspto-trademark-scraper`) Actor

Scrape tmsearch.uspto.gov — US trademark records by mark, owner, serial or registration number, with status and filing dates. Owner name and country, attorney email and prosecution history from TSDR. Full result sets past the 10,000-record limit as structured JSON.

- **URL**: https://apify.com/blackfalcondata/uspto-trademark-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Developer tools, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.53 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does USPTO Trademark Search Scraper do?

USPTO Trademark Search Scraper extracts structured record data from [tmsearch.uspto.gov](https://tmsearch.uspto.gov) — including contact details, full descriptions, and location data. It supports keyword search and controllable result limits, so you can run the same query consistently over time. The actor also offers detail enrichment (full descriptions and contact information) where the source provides them.

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi) and use the included $5 monthly platform credit to test this actor.

### Key features

- **📝 Mark details:** `markText`, `markType`, `drawingType` and `standardCharacters` describe the mark on each record.
- **⚖️ Legal status:** `status`, `statusCode`, `statusCategory` and `statusDate` show where each record stands in the register.
- **📅 Filing and registration dates:** `filingDate`, `registrationDate`, `abandonedDate` and `cancelledDate` as separate date fields on each record.
- **👤 Owner and applicant:** `ownerName`, `ownerEntityType`, `ownerCountry` and `ownerCity` name who owns each record.
- **🔢 Classes:** `internationalClasses`, `usClasses`, `designCodes` and `designCodeDescriptions` on each record, so you can filter by class.
- **📋 Goods and services:** `goodsAndServices` and `goodsAndServicesText` list what each record covers.
- **🔍 Keyword search:** search tmsearch.uspto.gov by keyword with the `query` input.
- **🔗 Paste-mode:** paste tmsearch.uspto.gov URLs into `startUrls` to scrape exactly the pages you picked in the browser.
- **📋 Detail enrichment:** toggle two-stage scraping: first collect listings, then enrich each with full description + detail-page-only fields. Off by default to keep runs fast; flip on when you need the deep payload.
- **♻️ Incremental mode:** recurring runs emit only directory entries that are new or updated — keep your supplier-outreach lists fresh without re-fetching the full directory. Saves 80–95% on weekly syncs.
- **🔔 Notifications:** Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-listing alerts without pipeline glue.

### What data can you extract from tmsearch.uspto.gov?

Each result includes Core record fields (`type`, `serialNumber`, `registrationNumber`, `wordmark`, `markText`, `markTextPseudo`, `markType`, and `drawingCode`, and more), detail fields when enrichment is enabled (`markDescription`, `designCodeDescriptions`, and `detailFetched`), and contact information (`attorneyEmail` and `correspondentEmail`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to get richer fields such as full descriptions and contact information where the source provides them.

### Input

The main inputs are a search keyword and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — What to search for — a mark name, an owner, a serial/registration number, or wording from the goods & services, depending on Search Field below. Use a JSON array for several searches, e.g. \["coffee","tesla"].
- **`searchType`** — Which part of the trademark record the search term is matched against. (default: `"mark"`)
- **`maxResults`** — Maximum total results (0 = unlimited). (default: `100`)
- **`liveOnly`** — Return only live records (pending applications and active registrations), skipping abandoned, cancelled and expired ones. (default: `false`)
- **`includeDetails`** — Also fetch the full case record per mark: attorney and correspondent contact details, docket number, international registration and the complete prosecution history. (default: `true`)
- **`compact`** — Core fields only (for AI-agent/MCP workflows). (default: `false`)
- **`excludeEmptyFields`** — Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards. (default: `false`)
- **`incrementalMode`** — Compare against previous run state and return only new or changed records. stateKey is optional — defaults to a value derived from your search inputs (queries, search field, live-only) so different searches never share state. (default: `false`)
- **`stateKey`** — Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.
- **`skipReposts`** — When incremental, skip records whose content matches a record that disappeared in a prior run (cross-run duplicate detection). (default: `false`)
- **`emitUnchanged`** — When incremental mode is on, also emit records whose content has not changed since the last run. (default: `false`)
- **`emitExpired`** — When incremental mode is on, also emit records that were seen before but are no longer found by the search. (default: `false`)
- ...and 15 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "coffee",
  "maxResults": 50
}
```

**Incremental tracking** — Only emit records that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "coffee",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "coffee-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "coffee",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured record records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example record record

```json
{
  "type": "trademark",
  "serialNumber": "85081040",
  "wordmark": "8835 COFFEE. COFFEE. COFFEE. COFFEE. COFFEE. COFFEE. COFFEE. COFFEE.",
  "markText": "8835 COFFEE. COFFEE. COFFEE. COFFEE. COFFEE. COFFEE. COFFEE. COFFEE.",
  "markType": [
    "SERVICE MARK"
  ],
  "drawingCode": 3,
  "drawingType": "(3) DESIGN PLUS WORDS, LETTERS, AND/OR NUMBERS",
  "standardCharacters": false,
  "status": "ABANDONED - NO STATEMENT OF USE FILED",
  "statusCode": 606,
  "statusCategory": "DEAD/APPLICATION/Refused/Dismissed or Invalidated",
  "statusDefinition": "This trademark application was refused, dismissed, or invalidated by  the Office and this application is no longer active.",
  "statusDate": "2011-10-24",
  "live": false,
  "registered": false,
  "register": "PRINCIPAL",
  "registrationType": [
    "PRINCIPAL"
  ],
  "filingDate": "2010-07-09",
  "publishedForOppositionDate": "2011-01-25",
  "abandonedDate": "2011-10-24",
  "internationalClasses": [
    43
  ],
  "usClasses": [
    "100",
    "101"
  ],
  "goodsAndServices": [
    {
      "class": 43,
      "description": "Cafes; Coffee shops; Coffee-house and snack-bar services.",
      "status": "ABANDONED"
    }
  ],
  "goodsAndServicesText": "(ABANDONED) IC 043: Cafes; Coffee shops; Coffee-house and snack-bar services.",
  "ownerName": "Chuang, Tong-Shu",
  "ownerNames": [
    "Chuang, Tong-Shu (INDIVIDUAL; TAIWAN)"
  ],
  "ownerFullText": [
    "(LAST LISTED OWNER) Chuang, Tong-Shu (INDIVIDUAL; TAIWAN); 14-1, Aly. 1, Ln. 120, Jiannan Rd., Nanzi Dist., Kaohsiung City, TAIWAN"
  ],
  "ownerType": "OWNER AT PUBLICATION",
  "ownerEntityType": "INDIVIDUAL",
  "ownerCountry": "TAIWAN",
  "ownerCity": "Kaohsiung City",
  "ownerAddress": "TAIWAN",
  "originalOwnerName": "Chuang, Tong-Shu",
  "owners": [
    {
      "name": "Chuang, Tong-Shu",
      "rawName": "Chuang, Tong-Shu (INDIVIDUAL; TAIWAN)",
      "entityType": "INDIVIDUAL",
      "country": "TAIWAN",
      "city": "Kaohsiung City",
      "address": "TAIWAN",
      "type": "LAST LISTED OWNER",
      "fullText": "(LAST LISTED OWNER) Chuang, Tong-Shu (INDIVIDUAL; TAIWAN); 14-1, Aly. 1, Ln. 120, Jiannan Rd., Nanzi Dist., Kaohsiung City, TAIWAN"
    }
  ],
  "attorneyName": "Alan D. Kamrath",
  "attorneyEmail": "alan@thelawfirm.cc",
  "correspondentName": "ALAN D. KAMRATH",
  "correspondentEmail": "alan@thelawfirm.cc",
  "correspondentAddress": "KAMRATH & ASSOCIATES, P.A., 4825 OLSON MEMORIAL HWY STE 245, GOLDEN VALLEY, MINNESOTA, 55422-5156, UNITED STATES",
  "docketNumber": "MAME100606",
  "disclaimer": "\"COFFEE\"",
  "markDescription": "The color(s) white, black, brown, light and dark orange is/are claimed as a feature of the mark. The mark consists of the numbers \"88\" placed over the numbers \"35\", with these four numbers in reverse...",
  "designCodes": [
    "260108",
    "260117",
    "260121"
  ],
  "designCodeDescriptions": [
    "26.01.08 - Circles having letters or numerals as a border; Circles having punctuation as a border; Letters, numerals or punctuation forming or bordering the perimeter of a circle",
    "26.01.17 - Circles, two concentric; Concentric circles, two; Two concentric circles",
    "26.01.21 - Circles that are totally or partially shaded."
  ],
  "filingBasisCurrent": [
    "1B"
  ],
  "filingBasisOriginal": [
    "1B"
  ],
  "assignmentRecorded": false,
  "prosecutionHistory": [
    {
      "date": "2011-10-25",
      "description": "ITU Unit Action"
    },
    {
      "date": "2011-10-24",
      "description": "ABANDONMENT NOTICE MAILED - NO USE STATEMENT FILED"
    },
    {
      "date": "2011-10-24",
      "description": "ABANDONMENT - NO USE STATEMENT FILED"
    },
    {
      "date": "2011-10-24",
      "description": "Notice of Abandonment"
    },
    {
      "date": "2011-03-22",
      "description": "NOA E-MAILED - SOU REQUIRED FROM APPLICANT"
    },
    "... 27 more items"
  ],
  "imageUrl": "https://tsdr.uspto.gov/img/85081040/large",
  "tsdrUrl": "https://tsdr.uspto.gov/#caseNumber=85081040&caseSearchType=US_APPLICATION&caseType=DEFAULT&searchType=statusSearch",
  "portalUrl": "https://tsdr.uspto.gov/#caseNumber=85081040&caseSearchType=US_APPLICATION&caseType=DEFAULT&searchType=statusSearch",
  "position": 1,
  "searchType": "mark",
  "searchQuery": "coffee",
  "source": "tmsearch.uspto.gov",
  "scrapedAt": "2026-10-15T06:31:38.843Z",
  "listingId": "d62042b16d5f0e44e6ebc6ed46d4d377f918eb8997f832d5b25bc512c7e0051c",
  "contentQuality": "full",
  "detailFetched": true,
  "contentHash": "ac38c12295655db536f407b3dea32ed06bfc615671a722a05ee6c1f3a507364f"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape tmsearch.uspto.gov

1. Go to [USPTO Trademark Search Scraper](https://apify.com/blackfalcondata/uspto-trademark-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need full descriptions, contact info.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract record data from tmsearch.uspto.gov for market research and competitive analysis.
- Monitor new and changed records on scheduled runs without processing the full dataset every time.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape tmsearch.uspto.gov?

USPTO Trademark Search Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.01 per run
- **Per result:** $0.00153 per record record

Example costs:

- 10 results: **$0.025**
- 25 results: **$0.048**
- 100 results: **$0.16**
- 200 results: **$0.32**
- 500 results: **$0.77**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of records that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 250 records per run, daily polling (30 runs/month). Costs scale linearly with the number of records.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.39 | $0.03 | $0.36 (93%) | $0.87 |
| 15% — moderate broad query | $0.39 | $0.07 | $0.33 (83%) | $2.02 |
| 30% — high-volume aggregator | $0.39 | $0.12 | $0.27 (68%) | $3.74 |

Full re-scrape monthly cost at the same cadence: $11.77. First month with incremental costs $1.24 / $2.35 / $4.01 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from tmsearch.uspto.gov?

The number of results depends on the search query and available records on tmsearch.uspto.gov. Use the `maxResults` parameter to control how many results are returned per run.

#### Does USPTO Trademark Search Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed records on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate USPTO Trademark Search Scraper with other apps?

Yes. USPTO Trademark Search Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use USPTO Trademark Search Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use USPTO Trademark Search Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape tmsearch.uspto.gov?

This actor extracts publicly available data from tmsearch.uspto.gov. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/uspto-trademark-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [1182.ee Scraper - Estonian Business Directory](https://apify.com/blackfalcondata/1182-ee-scraper?fpr=1h3gvi) — Scrape the 1182.ee Estonian business directory by keyword and get registry codes, phone numbers.
- [1188.lv Business Directory Scraper](https://apify.com/blackfalcondata/1188-lv-scraper?fpr=1h3gvi) — Scrape 1188.lv — Latvia's business directory. Search by keyword or city and get the phone number.
- [Ahrefs Blog Scraper - Posts, Authors & Full Text](https://apify.com/blackfalcondata/ahrefs-com-scraper?fpr=1h3gvi) — Scrape the ahrefs.com blog: search posts by keyword, filter by category, and export title, excerpt,.
- [Apontador Brazil Business Scraper](https://apify.com/blackfalcondata/apontador-com-br-scraper?fpr=1h3gvi) — Scrape Apontador — Brazil's local business directory. Search any city and category for business.
- [BBB Business Scraper \[Just 💰$0.54\]](https://apify.com/blackfalcondata/bbb-org-scraper?fpr=1h3gvi) — Scrape Better Business Bureau (bbb.org) business profiles in the USA and Canada: BBB rating,.
- [Bizi.si Slovenian Company Scraper](https://apify.com/blackfalcondata/bizi-si-scraper?fpr=1h3gvi) — Get Slovenian company records from the bizi.si registry: name, registration number, tax ID,.
- [Buscja Business Directory Scraper (Brazil)](https://apify.com/blackfalcondata/buscja-com-scraper?fpr=1h3gvi) — Scrape Brazilian business listings from buscja.com: name, address, phone, website, categories,.
- [ConsumerAffairs Reviews Scraper](https://apify.com/blackfalcondata/consumeraffairs-com-scraper?fpr=1h3gvi) — Scrape consumer reviews from consumeraffairs.com for any US company. Export each review with star.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on tmsearch.uspto.gov. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with USPTO Trademark Search's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by USPTO Trademark Search or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### Search keywords

uspto trademark search scraper, apify uspto trademark search, uspto trademark search data extraction, tmsearch.uspto.gov scraper, tmsearch.uspto.gov data, tmsearch.uspto.gov api.

# Changelog

This Actor's version history is a separate document: https://apify.com/blackfalcondata/uspto-trademark-scraper/changelog.md

# Actor input Schema

## `query` (type: `string`):

What to search for — a mark name, an owner, a serial/registration number, or wording from the goods & services, depending on Search Field below. Use a JSON array for several searches, e.g. \["coffee","tesla"].

## `searchType` (type: `string`):

Which part of the trademark record the search term is matched against.

## `maxResults` (type: `integer`):

Maximum total results (0 = unlimited).

## `liveOnly` (type: `boolean`):

Return only live records (pending applications and active registrations), skipping abandoned, cancelled and expired ones.

## `includeDetails` (type: `boolean`):

Also fetch the full case record per mark: attorney and correspondent contact details, docket number, international registration and the complete prosecution history.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `incrementalMode` (type: `boolean`):

Compare against previous run state and return only new or changed records. stateKey is optional — defaults to a value derived from your search inputs (queries, search field, live-only) so different searches never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip records whose content matches a record that disappeared in a prior run (cross-run duplicate detection).

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit records whose content has not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also emit records that were seen before but are no longer found by the search.

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED records. Has no effect outside incremental mode.

## `notificationLimit` (type: `integer`):

Maximum number of records included in each notification message (1–20).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## `descriptionFormat` (type: `string`):

Choose which representation of the listing description to include. `all` keeps every variant; the others keep only the selected one.

## `startUrls` (type: `array`):

One or more direct search or listing detail URLs to process. When set, other search filters are ignored.

## Actor input object example

```json
{
  "query": "coffee",
  "searchType": "mark",
  "maxResults": 100,
  "liveOnly": false,
  "includeDetails": true,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "skipReposts": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyChanges": false,
  "notificationLimit": 5,
  "descriptionFormat": "all"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "coffee",
    "searchType": "mark",
    "maxResults": 100,
    "excludeEmptyFields": false,
    "descriptionFormat": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/uspto-trademark-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "coffee",
    "searchType": "mark",
    "maxResults": 100,
    "excludeEmptyFields": False,
    "descriptionFormat": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/uspto-trademark-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "coffee",
  "searchType": "mark",
  "maxResults": 100,
  "excludeEmptyFields": false,
  "descriptionFormat": "all"
}' |
apify call blackfalcondata/uspto-trademark-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blackfalcondata/uspto-trademark-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/mxgewGubMe5NPzjQ6/builds/ghZGkdYjgdAH3XxMD/openapi.json
