# USPTO & Global Patents Scraper — Claims, Citations & Family (`autotroph/uspto-patent-intelligence-normalizer`) Actor

Scrape USPTO, EP, WO, JP & CN patents with independent/dependent claims trees, canceled-claim expansion, CPC/IPC codes, examiner vs. applicant citations, forward citations, deduplicated assignees & worldwide families. Built for IP search & Apify MCP.

- **URL**: https://apify.com/autotroph/uspto-patent-intelligence-normalizer.md
- **Developed by:** [Shuma Fujino](https://apify.com/autotroph) (community)
- **Categories:** AI, Developer tools, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 normalized patent records

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

## USPTO & Global Patent Intelligence Normalizer (US, EP, WO, JP, CN)

Extract clean, deduplicated, **schema-verified USPTO & Global IP5 patent intelligence** directly from **official, zero-proxy, zero-WAF REST APIs** (**EMBL-EBI SureChEMBL** + **US NIH / NCBI PubChem Patent PUG-View**) — built for IP analytics, prior-art / freedom-to-operate (FTO) pipelines, R\&D competitive intelligence, and **AI Agents via Apify MCP**.

### Why This Actor Beats Naive Patent Scrapers & Single-API Scripts

| Capability | Naive Patent Scrapers / Single-API Scripts | USPTO & Global Patent Intelligence Normalizer |
|---|---|---|
| **Zero-Proxy, Zero-WAF Reliability** | Scrapes HTML search pages that trigger HTTP 403/503 rate limits and require costly residential proxies | Powered exclusively by **official zero-proxy JSON/XML REST APIs** (EMBL-EBI SureChEMBL + US NIH/NCBI PubChem PUG-View) with polite pacing |
| **Dual-Source Fusion** | Single-source SureChEMBL returns empty `classifications: []` & `citations: []`; PubChem lacks full-text XML claims & USPTO Art Units | Automatically fuses **SureChEMBL full-text XML** (claims, art units, priority claims, parties) with **NIH PubChem PUG-View** (CPC/IPC, examiner citations, forward citations, worldwide family) |
| **Multi-Format Party Deduplication** | Raw DOCDB / EPO / USPTO XML duplicates every assignee & inventor 3× (e.g., `TOYOTA MOTOR CO LTD` + `TOYOTA JIDOSHA KABUSHIKI KAISHA`) | Groups by XML `sequence`, prefers patent-office original formatting (`Takuma Sakamoto`), and deduplicates legal-suffix variants cleanly |
| **Full XML Claims Tree & Canceled Ranges** | Counts `<claim id="CLM-01-39">1.-39. (canceled)</claim>` as 1 active claim and leaks raw `<claim-text>` tags | Expands canceled ranges (`1–39` = 39 canceled), strips all nested XML tags, resolves `<claim-ref>` & linguistic dependencies, separates **independent vs dependent claims**, and computes **Claim 1 word count** |
| **Examiner vs Applicant Citations & Family** | Mixes backward/forward citations and drops USPTO/EPO examiner flags | Structured citation graph separating **Examiner-cited (`SEA`)** vs **Applicant-cited (`APP`)** prior art, `X`/`Y`/`A` relevance codes, **Forward Citations (`Cited By`)**, and **Worldwide Patent Family** |
| **Deterministic Integrity Verification** | Silent broken dates (`YYYYMMDD`), inverted chronologies, and tag leaks | Built-in per-patent assertions (`integrity_valid`, `integrity_errors`) verifying ISO-8601 dates, `priority <= filing <= publication`, claims arithmetic, deduplication, and zero XML leaks |
| **AI Agent / MCP Ready** | Raw patent XML documents are 500 KB–5 MB each and overflow LLM context windows | Compact, strongly typed JSON ready for Claude, Cursor, LangGraph, and Apify MCP |

### Verified Output Schema Example (`US-10886558-B2`)

```json
{
  "ucid": "US-10886558-B2",
  "publication_number": "US10886558B2",
  "country_code": "US",
  "kind_code": "B2",
  "document_type": "GRANT",
  "is_granted": true,
  "title": "Battery module",
  "title_language": "EN",
  "application_number": "US16/250,057",
  "uspto_art_unit": "1725",
  "uspto_series_code": "16",
  "publication_date": "2021-01-05",
  "filing_date": "2019-01-17",
  "earliest_priority_date": "2018-01-19",
  "grant_date": "2021-01-05",
  "estimated_expiration_date": "2039-01-17",
  "primary_assignee": "TOYOTA JIDOSHA KABUSHIKI KAISHA",
  "assignees": ["TOYOTA JIDOSHA KABUSHIKI KAISHA"],
  "inventors": ["Takuma Sakamoto", "Satomi Yamamoto", "Koichi Tanimoto", "Shinya Omura"],
  "inventor_count": 4,
  "primary_cpc": "H01M10/04",
  "cpc_section": "H",
  "active_claims_count": 7,
  "canceled_claims_count": 0,
  "independent_claims_count": 1,
  "dependent_claims_count": 6,
  "first_independent_claim_number": 1,
  "backward_citation_count": 9,
  "examiner_backward_citation_count": 5,
  "forward_citation_count": 12,
  "patent_family_count": 6,
  "sources_used": ["surechembl", "pubchem_pug_view"],
  "uspto_url": "https://ppubs.uspto.gov/pubwebapp/external.html?q=(10886558).pn.",
  "google_patents_url": "https://patents.google.com/patent/US10886558B2/en",
  "pdf_url": "https://www.surechembl.org/api/patent/pdf/US-10886558-B2",
  "integrity_valid": true,
  "integrity_errors": []
}
```

### Input Configuration

- **`mode`**: `"search"` (live keyword/assignee/CPC/date search across 18M+ IP5 patents) or `"patent_numbers"` (direct lookup of specific patent numbers).
- **`query`**: Free-text or phrase query (e.g., `"solid state battery"`, `"neural network"`, `"CRISPR"`).
- **`searchScope`**: `"title"` (highest precision), `"all"`, `"abstract"`, or `"claims"`.
- **`patentNumbers`**: List of patent IDs in any format (`US10886558B2`, `US-10886558-B2`, `10886558`, `EP4836300A1`).
- **`countries`**: 2-letter patent office codes (e.g., `["US"]`, or `["US", "EP", "WO", "JP", "CN"]`).
- **`assignee`**: Optional organization/assignee filter (e.g., `"NVIDIA"`, `"Toyota"`, `"Apple"`).
- **`classificationPrefix`**: Optional CPC/IPC prefix filter (e.g., `"H01M"`, `"G06N"`, `"A61K"`).
- **`dateFrom` / `dateTo`**: Optional publication date range (`YYYY-MM-DD`).
- **`documentTypes`**: Optional filter for `"GRANT"` and/or `"APPLICATION"`.
- **`enrichCitationsAndClassifications`**: Toggle NIH/NCBI PubChem PUG-View cross-enrichment (default `true`).
- **`maxItems`**: Maximum normalized patents to emit (default `20`, max `1,000`).

### Transparent Pay-Per-Event (PPE) Pricing

- **`apify-actor-start`**: `$0.005` per run start
- **`patent-normalized`**: `$0.004` per verified patent record (`$4.00 / 1,000 patents` with full XML claims tree, deduplicated parties, CPC/IPC codes, examiner citation graph, and worldwide family)
- **Zero proxy surcharge**: Uses official public government & EMBL-EBI REST APIs only.

### Local Standalone Test (No Apify Credentials Needed)

```bash
python -m src.main --local-test --mode patent_numbers --patent-numbers US-10886558-B2,US-10000000-B2 --max-items 2
```

# Actor input Schema

## `mode` (type: `string`):

Choose 'search' to query patents by keyword/assignee/CPC/date, or 'patent_numbers' to normalize a specific list of USPTO/global patent numbers.

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

Search keywords or phrase (e.g., 'solid state battery', 'neural network', 'CRISPR', 'autonomous vehicle lidar').

## `searchScope` (type: `string`):

Where to match the search query: 'title' (highest precision), 'abstract', 'claims', or 'all' (full-text across title, abstract, and claims).

## `patentNumbers` (type: `array`):

List of patent numbers for 'patent_numbers' mode (accepts 'US10886558B2', 'US-10886558-B2', 'US8697359B1', 'EP4836300A1', etc.).

## `countries` (type: `array`):

2-letter patent office country codes to search (e.g., \['US'], or \['US', 'EP', 'WO', 'JP', 'CN']). Empty searches all IP5 offices.

## `assignee` (type: `string`):

Optional organization/assignee name filter (e.g., 'NVIDIA', 'Toyota', 'Apple', 'Samsung').

## `classificationPrefix` (type: `string`):

Optional CPC or IPC prefix filter (e.g., 'H01M' for batteries, 'G06N' for AI/ML, 'A61K' for pharma, 'H01L' for semiconductors).

## `dateFrom` (type: `string`):

Optional inclusive publication start date (e.g., '2020-01-01').

## `dateTo` (type: `string`):

Optional inclusive publication end date (e.g., '2026-12-31').

## `documentTypes` (type: `array`):

Optional filter: include 'GRANT' (issued patents: B1/B2/C1/E/S1) and/or 'APPLICATION' (published applications: A1/A2/A9). Leave empty for both.

## `enrichCitationsAndClassifications` (type: `boolean`):

Cross-enrich each patent with official US NIH/NCBI PubChem Patent PUG-View REST JSON for IPC/CPC codes, examiner vs applicant citations, forward citations, and worldwide patent family.

## `includeClaimsText` (type: `boolean`):

Include full cleaned text of active independent claims and compact claim dependency tree.

## `maxItems` (type: `integer`):

Maximum number of verified patent records to emit (1 to 1,000).

## `strictValidation` (type: `boolean`):

When true, patent records failing deterministic schema/chronological integrity checks are logged as warnings instead of pushed/billed.

## Actor input object example

```json
{
  "mode": "search",
  "query": "solid state battery",
  "searchScope": "title",
  "patentNumbers": [
    "US-10886558-B2",
    "US-10000000-B2",
    "US-8697359-B1"
  ],
  "countries": [
    "US"
  ],
  "assignee": "",
  "classificationPrefix": "",
  "dateFrom": "",
  "dateTo": "",
  "documentTypes": [],
  "enrichCitationsAndClassifications": true,
  "includeClaimsText": true,
  "maxItems": 20,
  "strictValidation": false
}
```

# Actor output Schema

## `patents` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("autotroph/uspto-patent-intelligence-normalizer").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("autotroph/uspto-patent-intelligence-normalizer").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 '{}' |
apify call autotroph/uspto-patent-intelligence-normalizer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,autotroph/uspto-patent-intelligence-normalizer"
        }
    }
}
```

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/jfo7Ao0YYNSthep8E/builds/SyiWt6ZYvoJTGf0gt/openapi.json
