# USPTO Trademark Gazette Change Watch (`nexgenwatch/uspto-trademark-watch`) Actor

- **URL**: https://apify.com/nexgenwatch/uspto-trademark-watch.md
- **Developed by:** [NexGen Watch](https://apify.com/nexgenwatch) (community)
- **Categories:** Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $53.60 / 1,000 confirmed gazette event deltas

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## USPTO Trademark Gazette Change Watch

Receive seed-zero weekly records when matching marks or owners appear in the public **USPTO Trademark Official Gazette (TMOG)** as publications-for-opposition, registrations, renewals, cancellations or corrections.

Configure serial/registration numbers, mark or owner terms, Nice classes and event types. The first complete run seeds a private baseline **without alerts**; later Tuesday issues produce only **new matching Gazette events** as deltas, each with an official PDF/page receipt. USPTO describes the TMOG as its Tuesday publication containing trademark bibliographic information plus lists of cancelled and renewed registrations.

### What you get

- `trademark_delta` — a confirmed new Gazette event on a watched mark (the signal). `delta_type` is the event type or `CORRECTED_ENTRY`; carries `before`/`after`, `changed_fields`, and an office-scoped `composite_id` (`USPTO:SN…` / `USPTO:RN…`).
- `gazette_record` — a snapshot-mode record (when `watchMode=false`).
- `source_receipt` — always emitted, never billed: terminal state, canary result, issues processed, pages parsed, byte/request counters, backlog.

### Use cases

Trademark counsel watch publication/registration records (30-day opposition window); brand teams monitor terms/classes; IP data teams ingest dated Gazette records; agencies route matching filings for review.

### Honest limits

Not TSDR live status, legal docketing, comprehensive clearance, ownership verification or legal advice. The Gazette is **weekly and event-oriented — absence proves nothing**. Design-only marks may have null mark text. Public issue PDFs are large (hundreds of MB) and catch-up is capped at 3 issues/run. TSDR/ODP APIs are excluded because they now require an account/API key. Blocks, malformed issues and objections fail loud (BLOCKED), never a clean empty.

### Compliance

Public / logged-out official USPTO PDFs only. No login, API key, CAPTCHA or paywall defeating; no licensed source or third-party mirror; robots honored; complies on objection. Identity is office + serial/registration number; official status codes only — legal outcomes are never inferred.

# Actor input Schema

## `watchMode` (type: `boolean`):

Seed-zero watch when true (emit only confirmed later Gazette events); current-issue snapshot records when false.
## `baselineKey` (type: `string`):

1-120 chars matching ^[A-Za-z0-9._:-]+$. Null derives a SHA-256 filter fingerprint.
## `serialNumbers` (type: `array`):

0-500 trademark serial numbers, each exactly 8 digits after punctuation removal.
## `registrationNumbers` (type: `array`):

0-500 registration numbers, each 1-8 digits after comma removal.
## `markTextKeywords` (type: `array`):

0-25 keywords, each 2-80 Unicode chars. Case-insensitive token/phrase match against the printed mark text.
## `ownerKeywords` (type: `array`):

0-25 owner-name substrings, each 2-120 chars, case-insensitive.
## `internationalClasses` (type: `array`):

0-45 Nice classes, each an integer 1-45.
## `eventTypes` (type: `array`):

Nonempty subset of Gazette event types to keep.
## `startIssueDate` (type: `string`):

YYYY-MM-DD Tuesday, not future. Null means the latest issue at seed.
## `maxCatchupIssues` (type: `integer`):

1-3 issues processed per run; older backlog remains for the next run.
## `includeGoodsServices` (type: `boolean`):

Extract printed identification text (capped 20,000 chars/record).
## `includeOwnerAddress` (type: `boolean`):

Include the owner address printed in the Gazette (no enrichment).
## `maxItems` (type: `integer`):

1-25,000 matching records/deltas emitted this run. Overflow reported as PARTIAL_MAX_ITEMS.
## `maxPagesScanned` (type: `integer`):

Optional hard cap on Gazette PDF pages scanned per issue. Bounds runtime on the very large official PDFs; a capped scan is reported PARTIAL.
## `useApifyProxy` (type: `boolean`):

Route requests through Apify Proxy. Off by default: the official PDFs are public and download faster directly. A proxy never turns a block into success.

## Actor input object example

```json
{
  "watchMode": true,
  "eventTypes": [
    "PUBLICATION_FOR_OPPOSITION",
    "REGISTRATION",
    "RENEWAL",
    "CANCELLATION",
    "CORRECTION"
  ],
  "maxCatchupIssues": 1,
  "includeGoodsServices": true,
  "includeOwnerAddress": false,
  "maxItems": 50,
  "maxPagesScanned": 25,
  "useApifyProxy": false
}
````

# 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 = {
    "watchMode": true,
    "maxCatchupIssues": 1,
    "maxItems": 50,
    "maxPagesScanned": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("nexgenwatch/uspto-trademark-watch").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 = {
    "watchMode": True,
    "maxCatchupIssues": 1,
    "maxItems": 50,
    "maxPagesScanned": 25,
}

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

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

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

```

## CLI example

```bash
echo '{
  "watchMode": true,
  "maxCatchupIssues": 1,
  "maxItems": 50,
  "maxPagesScanned": 25
}' |
apify call nexgenwatch/uspto-trademark-watch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=nexgenwatch/uspto-trademark-watch",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "USPTO Trademark Gazette Change Watch",
        "version": "0.1",
        "x-build-id": "2GTYDmCV2vurBHFbH"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/nexgenwatch~uspto-trademark-watch/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-nexgenwatch-uspto-trademark-watch",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/nexgenwatch~uspto-trademark-watch/runs": {
            "post": {
                "operationId": "runs-sync-nexgenwatch-uspto-trademark-watch",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/nexgenwatch~uspto-trademark-watch/run-sync": {
            "post": {
                "operationId": "run-sync-nexgenwatch-uspto-trademark-watch",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "watchMode": {
                        "title": "Watch mode",
                        "type": "boolean",
                        "description": "Seed-zero watch when true (emit only confirmed later Gazette events); current-issue snapshot records when false.",
                        "default": true
                    },
                    "baselineKey": {
                        "title": "Baseline key",
                        "type": "string",
                        "description": "1-120 chars matching ^[A-Za-z0-9._:-]+$. Null derives a SHA-256 filter fingerprint."
                    },
                    "serialNumbers": {
                        "title": "Serial numbers",
                        "type": "array",
                        "description": "0-500 trademark serial numbers, each exactly 8 digits after punctuation removal.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "registrationNumbers": {
                        "title": "Registration numbers",
                        "type": "array",
                        "description": "0-500 registration numbers, each 1-8 digits after comma removal.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "markTextKeywords": {
                        "title": "Mark text keywords",
                        "type": "array",
                        "description": "0-25 keywords, each 2-80 Unicode chars. Case-insensitive token/phrase match against the printed mark text.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "ownerKeywords": {
                        "title": "Owner keywords",
                        "type": "array",
                        "description": "0-25 owner-name substrings, each 2-120 chars, case-insensitive.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "internationalClasses": {
                        "title": "International classes",
                        "type": "array",
                        "description": "0-45 Nice classes, each an integer 1-45.",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "eventTypes": {
                        "title": "Event types",
                        "type": "array",
                        "description": "Nonempty subset of Gazette event types to keep.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "PUBLICATION_FOR_OPPOSITION",
                                "REGISTRATION",
                                "RENEWAL",
                                "CANCELLATION",
                                "CORRECTION",
                                "OTHER_GAZETTE_ENTRY"
                            ]
                        },
                        "default": [
                            "PUBLICATION_FOR_OPPOSITION",
                            "REGISTRATION",
                            "RENEWAL",
                            "CANCELLATION",
                            "CORRECTION"
                        ]
                    },
                    "startIssueDate": {
                        "title": "Start issue date",
                        "type": "string",
                        "description": "YYYY-MM-DD Tuesday, not future. Null means the latest issue at seed."
                    },
                    "maxCatchupIssues": {
                        "title": "Max catch-up issues",
                        "minimum": 1,
                        "maximum": 3,
                        "type": "integer",
                        "description": "1-3 issues processed per run; older backlog remains for the next run.",
                        "default": 2
                    },
                    "includeGoodsServices": {
                        "title": "Include goods and services",
                        "type": "boolean",
                        "description": "Extract printed identification text (capped 20,000 chars/record).",
                        "default": true
                    },
                    "includeOwnerAddress": {
                        "title": "Include owner address",
                        "type": "boolean",
                        "description": "Include the owner address printed in the Gazette (no enrichment).",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 25000,
                        "type": "integer",
                        "description": "1-25,000 matching records/deltas emitted this run. Overflow reported as PARTIAL_MAX_ITEMS.",
                        "default": 5000
                    },
                    "maxPagesScanned": {
                        "title": "Max pages scanned (advanced)",
                        "minimum": 1,
                        "maximum": 40000,
                        "type": "integer",
                        "description": "Optional hard cap on Gazette PDF pages scanned per issue. Bounds runtime on the very large official PDFs; a capped scan is reported PARTIAL."
                    },
                    "useApifyProxy": {
                        "title": "Use Apify Proxy",
                        "type": "boolean",
                        "description": "Route requests through Apify Proxy. Off by default: the official PDFs are public and download faster directly. A proxy never turns a block into success.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
