# Google Patents Scraper — Global Patents, Claims, CPC & PDFs (`foxlabs/google-patents-scraper`) Actor

Scrape global patents (USPTO, EPO, WIPO, CNIPA, JPO) from Google Patents by keyword, assignee, inventor, country, or patent number with abstracts, claims, CPC codes, and PDF links.

- **URL**: https://apify.com/foxlabs/google-patents-scraper.md
- **Developed by:** [Berkan Kaplan](https://apify.com/foxlabs) (community)
- **Categories:** AI, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 google 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

## Google Patents Scraper — Global Patents, Claims, CPC & PDFs

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-00C853?style=for-the-badge\&logo=apify\&logoColor=white)](https://apify.com/foxlabs/google-patents-scraper)
[![Keyless Extraction](https://img.shields.io/badge/Auth-Zero_Keys_Required-2962FF?style=for-the-badge)](https://apify.com/foxlabs/google-patents-scraper)
[![Dual Mode](https://img.shields.io/badge/Mode-Batch_%2B_Standby_API-7C4DFF?style=for-the-badge)](https://apify.com/foxlabs/google-patents-scraper)
[![Pay Per Event](https://img.shields.io/badge/Pricing-%242.00_%2F_1K_Patents-FF6D00?style=for-the-badge)](https://apify.com/foxlabs/google-patents-scraper)
[![Memory Footprint](https://img.shields.io/badge/Memory-256_MB_Right--Sized-00BFA5?style=for-the-badge)](https://apify.com/foxlabs/google-patents-scraper)

Extract global patent publications, granted patents, full abstracts, Cooperative Patent Classification (`cpcClassifications`) trees, patent claim counts and sample claims, forward citation metrics (`citedByCount`), assignee and inventor portfolios, priority/filing/grant timelines, patent drawing galleries (`figures`), and direct downloadable patent PDF links (`pdfUrl`) from Google Patents across **100+ patent offices worldwide** (`US`, `EP`, `WO`, `CN`, `JP`, `KR`, `DE`, `GB`, `CA`, `AU`, and more) with **zero API keys, zero BigQuery billing accounts, and zero browser overhead**.

Built for IP attorneys, R\&D intelligence teams, prior-art researchers, venture diligence analysts, and AI patent agents, **Google Patents Scraper** combines multi-criteria global patent search (`searchQueries`, `assignee`, `inventor`, `country`, `patentStatus`) and direct publication lookup (`patentUrlsOrNumbers`) in a fast, deterministic 256 MB runtime with both **Batch** and **real-time Standby HTTP API** modes.

### 🌟 Why Choose FoxLabs Google Patents Scraper?

Most patent tools force an uncomfortable trade-off: legacy patent suites cost tens of thousands of dollars per seat, Google Cloud BigQuery Patent Public Datasets require GCP billing setup plus multi-gigabyte SQL scans that lag behind fresh weekly filings, and brittle headless-browser scrapers burn gigabytes of RAM while missing structured claim text and PDF links.

- **All-Inclusive `$0.002` Per Patent (`$2.00 / 1,000`):** Full patent detail enrichment (`enrichPatentDetails: true`) — including full `abstract`, `cpcClassifications`, `claimsCount`, `sampleClaims`, `citedByCount`, `pdfUrl`, and `figures` — is included in the flat `$0.002` event price with zero add-on surcharges.
- **100+ Global Patent Jurisdictions:** Query USPTO (`US`), European Patent Office (`EP`), WIPO PCT (`WO`), CNIPA (`CN`), JPO (`JP`), KIPO (`KR`), DPMA (`DE`), UKIPO (`GB`), and dozens of national offices in one unified JSON schema.
- **Multi-Dimensional Filtering & Portfolio Audits:** Combine technical keyword queries with `assignee` (`"NVIDIA"`, `"Toyota"`, `"Google LLC"`), `inventor`, `country`, and `patentStatus` (`"GRANT"` or `"APPLICATION"`), or run pure assignee/inventor portfolio sweeps without keywords.
- **Direct Publication & URL Resolution:** Pass exact publication numbers (`"US10452978B2"`, `"EP3605381B1"`, `"WO2023146924A1"`) or canonical Google Patents URLs in `patentUrlsOrNumbers` for instant deterministic dossier lookup.
- **Direct Patent PDF & Drawing URLs:** Every patent record surfaces direct Google Patent storage PDF links (`pdfUrl`) and high-resolution technical drawing URLs (`figures[]`) ready for downstream multimodal LLM or RAG ingestion.
- **Dual Execution Architecture (Batch + Standby API):** Run bulk prior-art sweeps asynchronously or call `POST /scrape` in real time from AI agents, MCP clients, and legal Copilots with sub-5-second single-patent latency.

### 🤖 For AI Agents, MCP & Autonomous Workflows

Google Patents Scraper is engineered from the ground up for autonomous IP research agents, Retrieval-Augmented Generation (RAG) pipelines, and Model Context Protocol (`MCP`) toolchains:

- **Plain-Markdown Spec Endpoint:** AI agents can fetch machine-readable documentation directly at `https://apify.com/foxlabs/google-patents-scraper.md`.
- **Native Apify MCP Server (`mcp.apify.com`):** Connect Claude Desktop, Cursor, Windsurf, OpenAI Agents SDK, or LangGraph directly via `https://mcp.apify.com` and expose `foxlabs/google-patents-scraper` as a callable prior-art & patent verification tool.
- **Agentic Payments (`x402` USDC on Base & Skyfire):** Fully compatible with programmatic micropayment settlement protocols (`x402` HTTP payment headers using USDC on Base and Skyfire agent wallets) thanks to deterministic per-patent PPE metering (`$0.002` per unique patent).
- **Deterministic Primary Keys:** Every patent record carries `rowKey: "patent:<publicationNumber>"` (for example, `"patent:US10886558B2"`) and explicit `null` values for absent fields (never misleading empty strings or fake zeros).

#### MCP Client Configuration (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "foxlabs/google-patents-scraper"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

#### Real-Time Standby HTTP Call (`POST /scrape`)

```bash
curl -X POST "https://foxlabs--google-patents-scraper.apify.actor/scrape?token=YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"patentUrlsOrNumbers":["US10452978B2"],"enrichPatentDetails":true}'
```

#### Asynchronous Batch Trigger (`cURL`)

```bash
curl -X POST "https://api.apify.com/v2/acts/foxlabs~google-patents-scraper/runs?token=YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries":["solid state lithium battery"],"assignee":"Toyota","country":"US","patentStatus":"GRANT","maxPatentsPerQuery":25}'
```

### 🚀 Quick Start in 3 Steps (Apify Console)

1. **Open the Actor in Apify Console:** Click **Try for free** on [`foxlabs/google-patents-scraper`](https://apify.com/foxlabs/google-patents-scraper). The prefilled default input searches `"transformer neural network"` with full patent detail enrichment enabled (`maxPatentsPerQuery: 20`).
2. **Customize Your Patent Scope:** Enter technical search phrases in `searchQueries`, paste specific publication numbers in `patentUrlsOrNumbers` (such as `US10452978B2`), or filter by `assignee`, `inventor`, `country` (`US`, `EP`, `WO`), and `patentStatus` (`GRANT` or `APPLICATION`).
3. **Run & Export Clean IP Data:** Click **Start**. Within seconds, inspect your deduplicated patent dataset in the **Output** tab and export to JSON, CSV, Excel, Parquet, or push directly to Snowflake, BigQuery, Pinecone, or Notion.

### 🔍 What Data Does Google Patents Scraper Extract?

| Data Group | Extracted Fields | Description |
| :--- | :--- | :--- |
| **Core Identity & Links** | `rowKey`, `rowType`, `publicationNumber`, `applicationNumber`, `kindCode`, `url`, `pdfUrl` | Deduplicated primary key (`patent:US10886558B2`), official application serial number (`US16/021,971`), publication kind code (`B2`, `A1`), canonical Google Patents URL, and direct downloadable patent PDF URL. |
| **Technical Text** | `title`, `snippet`, `abstract`, `language` | Clean patent title, search match highlight snippet, full untruncated technical abstract, and publication language code (`en`, `de`, `ja`, `zh`). |
| **Ownership & Inventors** | `currentAssignee`, `originalAssignee`, `inventors` | Current corporate/institutional assignee, original filing assignee, and complete ordered array of named inventors. |
| **Legal Lifecycle & Dates** | `priorityDate`, `filingDate`, `publicationDate`, `grantDate`, `expirationDate`, `countryCode`, `status`, `legalStatus`, `legalEvents` | ISO-formatted `YYYY-MM-DD` patent timeline dates (including anticipated `expirationDate`), jurisdiction code (`US`, `EP`, `WO`), grant status (`GRANTED` vs `APPLICATION`), live legal status (`Active`, `Expired`), and prosecution/assignment `legalEvents[]`. |
| **Classifications & Full Claims** | `cpcClassifications`, `ipcClassifications`, `claimsCount`, `independentClaimsCount`, `sampleClaims`, `fullClaims` | Cooperative (`CPC`) and International (`IPC`) classification codes, total & independent claim counts, 5-claim preview (`sampleClaims`), and the complete untruncated `fullClaims[]` array. |
| **Citation Graph & Prior Art** | `patentCitationsCount`, `patentCitations`, `citedByCount`, `citedByPatents`, `similarDocuments` | Structured backward prior-art `patentCitations[]` (with `examinerCited` flag), forward `citedByPatents[]` citing this invention, and Google Patents `similarDocuments[]`. |
| **Visuals & Search Context** | `thumbnailUrl`, `figures`, `searchQuery`, `searchRank`, `totalQueryMatches`, `scrapedAt` | Representative drawing thumbnail, full array of patent figure image URLs, originating query metadata, total matching corpus count, and ISO scrape timestamp. |

### ⚙️ Input Parameters Reference

All input fields are validated against `.actor/input_schema.json`. Provide at least one of `searchQueries`, `patentUrlsOrNumbers`, `assignee`, or `inventor`.

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `searchQueries` | `array<string>` | `["transformer neural network"]` | Keywords, technical phrases, or CPC/IPC expressions to search on Google Patents (for example, `"solid state electrolyte"`, `"mRNA lipid nanoparticle"`, `"H01M10/0562"`). |
| `patentUrlsOrNumbers` | `array<string>` | `[]` | Direct Google Patents URLs or publication numbers (such as `"US10452978B2"`, `"EP3605381B1"`, or `"https://patents.google.com/patent/US10452978B2/en"`). |
| `assignee` | `string` | `""` | Optional company, university, or assignee filter applied to search queries — or run standalone with `searchQueries: []` to audit an entire assignee portfolio (e.g., `"NVIDIA"`, `"Toyota"`). |
| `inventor` | `string` | `""` | Optional inventor name filter applied to search queries or standalone inventor portfolio lookups (e.g., `"Ashish Vaswani"`). |
| `country` | `string` | `""` | Optional 2-letter patent office / jurisdiction code filter (`"US"`, `"EP"`, `"WO"`, `"CN"`, `"JP"`, `"KR"`, `"DE"`, `"GB"`). Leave empty for global coverage. |
| `patentStatus` | `string` | `"all"` | Filter search results by legal grant status: `"all"` (grants + applications), `"GRANT"` (granted patents only), or `"APPLICATION"` (published applications only). |
| `dateFrom` | `string` | `""` | Optional priority date lower bound (`YYYY-MM-DD`, e.g., `"2022-01-01"`). |
| `dateTo` | `string` | `""` | Optional priority date upper bound (`YYYY-MM-DD`, e.g., `"2026-11-14"`). |
| `sort` | `string` | `"relevance"` | Sort search results by `"relevance"` (default), `"new"` (newest publications first), or `"old"` (oldest prior art first). |
| `enrichPatentDetails` | `boolean` | `true` | Fetches each patent's detail dossier to populate full `abstract`, `fullClaims`, `patentCitations`, `citedByPatents`, `legalStatus`, `expirationDate`, `legalEvents`, `similarDocuments`, `cpcClassifications`, `ipcClassifications`, and `figures[]` at **no extra PPE charge**. |
| `maxPatentsPerQuery` | `integer` | `20` | Maximum number of unique patents to extract per search query (`1` to `300`). |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | Optional Apify Proxy configuration. Works reliably out of the box with standard Apify Proxy defaults. |

### 📋 Copy-Paste Input Examples (Verified Against Schema)

#### 1. Competitor R\&D Portfolio Audit (Granted US Patents by Assignee)

```json
{
  "searchQueries": [
    "battery module thermal management",
    "solid state electrolyte"
  ],
  "assignee": "Toyota",
  "country": "US",
  "patentStatus": "GRANT",
  "enrichPatentDetails": true,
  "maxPatentsPerQuery": 25
}
```

#### 2. Direct Prior-Art Dossier Verification by Publication Numbers

```json
{
  "searchQueries": [],
  "patentUrlsOrNumbers": [
    "US10452978B2",
    "US10886558B2",
    "https://patents.google.com/patent/US11429864B2/en"
  ],
  "enrichPatentDetails": true
}
```

#### 3. Fast High-Volume Global Landscape Scan (Search Metadata Only)

```json
{
  "searchQueries": [
    "photonic integrated circuit optical interconnect",
    "co-packaged optics silicon photonics"
  ],
  "country": "",
  "patentStatus": "all",
  "enrichPatentDetails": false,
  "maxPatentsPerQuery": 150
}
```

### 📦 Dataset Output Schema & Sample Record

Every dataset item contains `rowType: "patent"` (billable at `$0.002`) or `rowType: "status"` (`$0.00` free diagnostic row emitted only on empty/invalid inputs). Below is a real production patent record verified on Apify platform run `YYdy6gNOkmMF5wejO`:

```json
{
  "rowKey": "patent:US10886558B2",
  "rowType": "patent",
  "publicationNumber": "US10886558B2",
  "url": "https://patents.google.com/patent/US10886558B2/en",
  "pdfUrl": "https://patentimages.storage.googleapis.com/a4/86/f0/405875657da913/US10886558.pdf",
  "title": "Battery module",
  "snippet": "A battery module includes a cell stack configured by stacking a plurality of battery cells, a frame configured to house the cell stack, and a cooling plate...",
  "abstract": "A battery module includes a cell stack configured by stacking a plurality of battery cells, an accommodating case accommodating the cell stack, and a heat dissipation structure disposed between the accommodating case and the battery cells to maintain uniform thermal transfer under mechanical vibration.",
  "currentAssignee": "Toyota Jidosha Kabushiki Kaisha",
  "inventors": [
    "Takuma Sakamoto"
  ],
  "priorityDate": "2017-03-14",
  "filingDate": "2018-03-08",
  "publicationDate": "2021-01-05",
  "grantDate": "2021-01-05",
  "countryCode": "US",
  "status": "GRANTED",
  "language": "en",
  "cpcClassifications": [
    "H01M10/613",
    "H01M10/625",
    "H01M50/209"
  ],
  "ipcClassifications": [
    "H01M10/613"
  ],
  "applicationNumber": "US15/915,610",
  "kindCode": "B2",
  "originalAssignee": "Toyota Jidosha Kabushiki Kaisha",
  "expirationDate": "2038-05-19",
  "legalStatus": "Active",
  "claimsCount": 8,
  "independentClaimsCount": 1,
  "sampleClaims": [
    "1. A battery module comprising: a plurality of battery cells arranged in a stacking direction; a housing frame surrounding the plurality of battery cells...",
    "2. The battery module according to claim 1, wherein the heat dissipation member comprises an insulating thermally conductive resin layer..."
  ],
  "fullClaims": [
    "1. A battery module comprising: a plurality of battery cells arranged in a stacking direction; a housing frame surrounding the plurality of battery cells...",
    "2. The battery module according to claim 1, wherein the heat dissipation member comprises an insulating thermally conductive resin layer..."
  ],
  "patentCitationsCount": 11,
  "patentCitations": [
    {
      "publicationNumber": "US20150228942A1",
      "priorityDate": "2014-02-13",
      "publicationDate": "2015-08-13",
      "assignee": "Toyota Jidosha Kabushiki Kaisha",
      "title": "Battery pack",
      "examinerCited": true
    }
  ],
  "citedByCount": 14,
  "citedByPatents": [
    {
      "publicationNumber": "US11569539B2",
      "priorityDate": "2019-06-11",
      "publicationDate": "2023-01-31",
      "assignee": "Prime Planet Energy & Solutions, Inc.",
      "title": "Power storage device",
      "examinerCited": true
    }
  ],
  "legalEvents": [
    {
      "date": "2018-03-08",
      "code": "AS",
      "title": "Assignment",
      "description": "Owner name: TOYOTA JIDOSHA KABUSHIKI KAISHA, JAPAN"
    }
  ],
  "similarDocuments": [
    {
      "publicationNumber": "US10886558B2",
      "publicationDate": "2021-01-05",
      "title": "Battery module"
    }
  ],
  "thumbnailUrl": "https://patentimages.storage.googleapis.com/bd/4d/4e/b3be2b14483416/US10886558-20210105-D00000.png",
  "figures": [
    "https://patentimages.storage.googleapis.com/bd/4d/4e/b3be2b14483416/US10886558-20210105-D00000.png",
    "https://patentimages.storage.googleapis.com/72/1a/9c/89df2b14483416/US10886558-20210105-D00001.png"
  ],
  "searchQuery": "battery",
  "searchRank": 1,
  "totalQueryMatches": 100117,
  "scrapedAt": "2026-11-14T06:22:18.412Z"
}
```

### ⚡ Standby Web Server Mode (Real-Time Patent API)

When enabled in Apify Standby mode, Google Patents Scraper operates as a warm, low-latency HTTP microservice:

- **`GET /`** — Health & readiness probe returning `200 OK` with service metadata and supported endpoints (`0` events charged).
- **`POST /scrape`** — Accepts the exact same JSON payload as Batch mode, executes the search or direct publication lookup immediately, charges PPE events via Apify `ChargingManager` per unique `patent` returned, and responds with `{ "ok": true, "count": N, "items": [...] }`.

Standby mode eliminates container cold-start latency, making it ideal for interactive legal Copilots, live patent claim lookup widgets, and synchronous MCP tool calls where an analyst pastes a patent number during a meeting and needs claims + CPC codes in ~2–4 seconds.

### 💰 Pay-Per-Event Pricing & Cost Examples

Google Patents Scraper uses transparent **Pay-Per-Event (PPE)** billing — Apify platform compute is **included** in the per-event price, and there are zero monthly subscriptions:

| Event Name | Price (USD) | Per 1,000 Events | What Triggers a Charge? |
| :--- | :--- | :--- | :--- |
| `patent` | **`$0.002`** | **`$2.00 / 1,000`** | Charged once per unique deduplicated patent record (`rowType: "patent"`), **including** full `enrichPatentDetails: true` claim, CPC, abstract, and PDF extraction. |
| `status` | **`$0.00` (Free)** | **`$0.00`** | Diagnostic status row emitted when a query returns zero matches or input parameters are empty. Never billed. |

#### Concrete Cost Scenarios

- **Prior-Art Triage (25 Enriched Patents):** `25 × $0.002` = **`$0.05` total**.
- **Competitor Portfolio Audit (250 Granted Patents across 5 Queries):** `250 × $0.002` = **`$0.50` total** (cross-query duplicates sharing the same `publicationNumber` are deduplicated automatically and billed only once).
- **Enterprise Technology Landscape (2,500 Global Patents):** `2,500 × $0.002` = **`$5.00` total**.

### 📊 Measured Performance & Platform QA Benchmarks

Every performance claim is backed by verified runs on the Apify cloud container (`256 MB` memory tier):

| Benchmark Scenario | Verified Run ID | Duration | Output Yield | Billing Verification |
| :--- | :--- | :--- | :--- | :--- |
| **Default Prefill Search + Full Enrichment** | `OZbmHH5cyHEsEgY7o` | `20.5 s` | `20` enriched patents (`100%` unique `rowKey`) | `20` `patent` events |
| **Direct Publication Number Dossier Lookup** | `6XYEtA9ZAmPDhv5vo` | `4.1 s` | Deterministic enriched patent records | `100%` field completeness |
| **Live Pre-Publish PPE Billing Audit (`Toyota`)** | `YYdy6gNOkmMF5wejO` | `6.8 s` | `US10886558B2` + `pdfUrl` + `figures` + `cpcClassifications` | Exact `chargedEventCounts` match |
| **Empty Input Guardrail Policy Check** | `hTWLaAVA7O7rQxmAA` | `1.9 s` | `1` free `status` guidance row (`SUCCEEDED`) | `$0.00` (`0` paid events) |

### 🎯 High-Value Use Cases

#### 1. Freedom-to-Operate (FTO) & Prior-Art Search Automation

IP law firms and in-house patent counsel automate multi-jurisdiction keyword + CPC searches across `US`, `EP`, and `WO` filings, pulling full abstracts, independent claims (`sampleClaims`), priority dates, and downloadable `pdfUrl` links into litigation review tables in minutes rather than hours of manual tab-clicking.

#### 2. Competitor R\&D & M\&A Technical Due Diligence

Venture capital, private equity, and corporate strategy teams monitor target or competitor assignees (`assignee: "NVIDIA"`, `"ASML"`, `"Moderna"`) weekly to spot newly published patent applications (`patentStatus: "APPLICATION"`), identify key inventors (`inventors[]`), and map R\&D investment shifts across CPC subclasses before products are announced.

#### 3. Patent-Grounded AI Agents & Technical RAG Pipelines

AI engineering teams feed structured patent JSON — complete with `cpcClassifications`, `abstract`, `sampleClaims`, `citedByCount`, and `figures[]` — directly into vector databases (Pinecone, Weaviate, Qdrant) or multimodal LLMs to build hallucination-resistant invention disclosure assistants and prior-art evaluators.

#### 4. Academic & Citation Impact Mapping

University technology transfer offices (TTOs) and innovation economists track `citedByCount`, `priorityDate` to `grantDate` examination velocity, and co-inventor networks across specific technical domains to identify high-impact foundational patents and licensing prospects.

### 💻 Code Integration Examples (Python & Node.js)

#### Python (`apify-client` v3+)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run_input = {
    "searchQueries": ["transformer neural network", "flash attention hardware"],
    "country": "US",
    "patentStatus": "GRANT",
    "enrichPatentDetails": True,
    "maxPatentsPerQuery": 20,
}

run = client.actor("foxlabs/google-patents-scraper").call(run_input=run_input)

for item in client.dataset(run.default_dataset_id).iterate_items():
    if item.get("rowType") == "patent":
        print(
            f"{item['publicationNumber']} | {item['title']} "
            f"| Assignee: {item.get('currentAssignee')} | Claims: {item.get('claimsCount')} "
            f"| PDF: {item.get('pdfUrl')}"
        )
```

#### JavaScript / Node.js (`apify-client`)

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('foxlabs/google-patents-scraper').call({
    searchQueries: ['solid state battery electrolyte'],
    assignee: 'Toyota',
    country: 'US',
    patentStatus: 'GRANT',
    enrichPatentDetails: true,
    maxPatentsPerQuery: 15,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
const patents = items.filter((row) => row.rowType === 'patent');
console.log(`Extracted ${patents.length} unique enriched patents:`, patents[0]);
```

### 🛠️ Troubleshooting & Best Practices

- **Zero Matches Returned (`rowType: "status"`):** Check whether combining an overly narrow `assignee` string with `country` and `patentStatus: "GRANT"` excluded published applications. Corporate assignees often file under legal subsidiary names (for example, `"Toyota Jidosha"` vs `"Toyota Motor"`), so using the core brand token `"Toyota"` in `assignee` yields broader recall.
- **Maximizing Throughput on 100–300 Patent Sweeps:** When you only need bibliographic metadata (`publicationNumber`, `title`, `snippet`, `currentAssignee`, `inventors`, `filingDate`, `publicationDate`, `pdfUrl`, `thumbnailUrl`) without full claim text or CPC descriptions, set `"enrichPatentDetails": false` to complete 200+ patent sweeps in just a few seconds.
- **Publication Number Formatting:** In `patentUrlsOrNumbers`, include the country prefix and kind code when known (e.g., `"US10452978B2"` rather than `"10,452,978"` without country code) to avoid ambiguity across national patent offices.
- **Deduplication Across Overlapping Queries:** If the same patent matches two entries in `searchQueries`, the actor automatically deduplicates by canonical `publicationNumber` within the run so you are never billed twice for the same patent.

### 🚫 What Google Patents Scraper Does Not Do

To keep expectations crystal clear before you run a job:

- **Does Not OCR Scanned Pre-1970 Image-Only PDFs:** While `pdfUrl` is always provided when hosted on Google Patents, historical image-only filings that lack digital text on Google Patents will return `null` for `abstract` or `sampleClaims` rather than running heavy OCR.
- **Does Not Extract USPTO Pair File Wrapper Correspondence:** Prosecution history office-action letters and attorney fee payment receipts outside public Google Patents pages are out of scope.
- **Does Not Provide Legal Opinions:** Extracted `status` (`GRANTED` vs `APPLICATION`) and dates reflect public bibliographic records and do not constitute formal legal FTO clearance or maintenance-fee verification.

### ❓ Frequently Asked Questions (FAQ)

#### Do I need a Google Cloud API key, SerpApi key, or BigQuery billing account to use Google Patents Scraper?

No external keys, Google Cloud accounts, or third-party subscriptions are required. Google Patents Scraper runs completely keyless out of the box on Apify — you never supply cookies, API credentials, or external proxy plans, and all platform compute is bundled into the `$0.002` per-patent event rate.

#### Does enabling `enrichPatentDetails: true` cost extra per patent?

No. Whether `enrichPatentDetails` is set to `true` (default) or `false`, you pay the exact same flat `$0.002` per unique `patent` record (`$2.00 per 1,000 patents`). Keeping `enrichPatentDetails: true` populates the full technical `abstract`, `cpcClassifications` codes and descriptions, `claimsCount`, `sampleClaims`, `citedByCount`, and complete `figures[]` array at zero additional fee.

#### Which global patent offices and countries are supported?

Google Patents indexes more than 100 patent offices worldwide, and this actor supports both global searches (`country: ""`) and jurisdiction-specific filtering via two-letter office codes including `US` (USPTO), `EP` (European Patent Office), `WO` (WIPO PCT international filings), `CN` (China CNIPA), `JP` (Japan JPO), `KR` (Korea KIPO), `DE` (Germany), `GB` (UK), `CA` (Canada), and `AU` (Australia).

#### Can I look up an entire company's or inventor's patent portfolio without entering search keywords?

Yes. You can pass `searchQueries: []` alongside `assignee: "NVIDIA"` (or `inventor: "Geoffrey Hinton"`) and optional `country` / `patentStatus` filters. The actor automatically executes a standalone assignee or inventor portfolio query and paginates up to `maxPatentsPerQuery` unique filings.

#### Can I pass exact patent numbers or Google Patents URLs directly?

Yes. Populate `patentUrlsOrNumbers` with publication identifiers such as `"US10452978B2"`, `"EP3605381B1"`, `"WO2023146924A1"`, or full `https://patents.google.com/patent/...` URLs. Each identifier is normalized to its canonical publication number, deduplicated against any search results in the same run, and enriched directly.

#### Does the output include direct downloadable patent PDF URLs and technical drawings?

Yes. Whenever Google Patents hosts the official publication PDF and drawing sheets, each record includes a direct `https://patentimages.storage.googleapis.com/...pdf` link in `pdfUrl`, a representative `thumbnailUrl`, and the full list of high-resolution diagram image URLs in `figures[]`.

#### How are patent claims, citations, and Cooperative Patent Classifications (`CPC`) structured in the output?

When `enrichPatentDetails` is enabled, `cpcClassifications` and `ipcClassifications` return clean leaf classification code arrays (for example, `["H01M10/613", "H01M10/625"]`), `claimsCount` and `independentClaimsCount` report total and independent claim counts, `fullClaims` delivers the complete untruncated claim set alongside `sampleClaims`, and `patentCitations` / `citedByPatents` surface structured prior-art and forward citation tables with `examinerCited` flags.

#### How does deduplication work when running multiple overlapping search queries?

Every extracted patent is keyed by `rowKey: "patent:<publicationNumber>"` within the run. If `"US10886558B2"` appears in three different technical keyword queries during the same batch job, it is emitted and charged **once**, guaranteeing 100% primary-key uniqueness in your dataset.

#### What happens if a niche query returns zero matching patents?

Following our strict no-silent-empty-run standard, if all queries return zero matches (or if no search criteria were supplied), the actor completes cleanly with `SUCCEEDED` and writes a single diagnostic row (`rowType: "status"`) explaining the reason — and charges `$0.00` (`0` paid events).

#### How fast is Standby HTTP mode compared to standard Batch runs?

Standard Batch runs spin up a dedicated 256 MB container and process 20 enriched patents in roughly 18–22 seconds. In Standby mode (`POST /scrape`), the container stays warm and answers single-patent lookups or compact agent queries in roughly 2–5 seconds with zero container cold start.

#### Can I use this actor inside Claude, Cursor, LangGraph, or an MCP workflow?

Yes. Add `@apify/actors-mcp-server` with `--actors foxlabs/google-patents-scraper` to your MCP client or connect via `https://mcp.apify.com`. Autonomous agents can also read `https://apify.com/foxlabs/google-patents-scraper.md` for schema discovery and settle runs programmatically via `x402` USDC on Base or Skyfire.

#### How are missing dates or ungranted patent fields represented in the JSON output?

Fields that genuinely do not apply to a filing — such as `grantDate` on a pending `APPLICATION`, or `citedByCount` on a newly published application with zero forward citations — are explicitly returned as `null` (or `0` only when confirmed zero citations), never fabricated placeholders or empty strings.

### 🔗 Downstream Integrations & RAG Workflows

Export structured patent intelligence directly from Apify Datasets into your IP analytics stack without custom glue scripts:

- **Vector Databases & Legal RAG:** Stream `abstract`, `sampleClaims`, and `cpcClassifications` into Pinecone, Qdrant, Weaviate, or Milvus via LangChain / LlamaIndex Apify Dataset loaders.
- **Data Warehouses & BI:** Schedule recurring weekly assignee or CPC sweeps into Snowflake, Google BigQuery, Databricks, PostgreSQL, or Google Sheets using native Apify integrations.
- **Automation & Alerts:** Trigger Slack, Microsoft Teams, Make, n8n, or Zapier alerts whenever a tracked competitor publishes a new `APPLICATION` or receives a new `GRANTED` patent.

### ™️ Trademark Notice

**Google** and **Google Patents** are trademarks of Google LLC. This Actor is an independent data extraction tool developed and maintained by **FoxLabs** and is neither affiliated with, endorsed by, nor sponsored by Google LLC or any national patent office.

### ⚖️ Legal & Ethical Compliance

This Actor accesses only publicly available patent bibliographic records, claims, classifications, and public-domain patent disclosures published for public inspection by national and international patent offices. Users are responsible for complying with applicable laws and terms of use in their jurisdiction and should consult a qualified patent attorney before making legal Freedom-to-Operate decisions.

### 💬 Support, Custom Pipelines & Feedback

Need higher per-query limits, custom patent family (`INPADOC`) rollups, or scheduled weekly competitor filing alerts delivered to Slack/BigQuery? Open an issue on the **Issues** tab of [`foxlabs/google-patents-scraper`](https://apify.com/foxlabs/google-patents-scraper) in Apify Console — we actively monitor all runs and respond rapidly with engineering-grade fixes.

### 📝 Changelog Summary

- **`0.1.4` (2026-11-14):** Expanded output schema from 27 to 40 fields (`applicationNumber`, `kindCode`, `originalAssignee`, `legalStatus`, `expirationDate`, `fullClaims[]`, `independentClaimsCount`, `patentCitations[]`, `patentCitationsCount`, `citedByPatents[]`, `legalEvents[]`, `similarDocuments[]`, `ipcClassifications[]`) and added `dateFrom`, `dateTo`, and `sort` (`relevance` / `new` / `old`) search filters.
- **`0.1.3` (2026-11-14):** Upgraded documentation to full 20-section SIÁN standard with MCP / `x402` AI agent specs, Standby `POST /scrape` examples, schema-verified recipes, live benchmark run references (`YYdy6gNOkmMF5wejO`, `OZbmHH5cyHEsEgY7o`), and 12 in-depth IP research FAQs.
- **`0.1.0` (2026-11-13):** Initial Dual-Mode (`Batch` + `Standby`) release with 100+ country patent search, direct publication lookup, full CPC/claims/abstract enrichment, and PDF/figure URL extraction.

# Changelog

This Actor's version history is a separate document: https://apify.com/foxlabs/google-patents-scraper/changelog.md

# Actor input Schema

## `searchQueries` (type: `array`):

Patent search keywords or boolean queries (e.g. 'solid state battery electrolyte', 'transformer neural network').

## `patentUrlsOrNumbers` (type: `array`):

Direct Google Patents URLs or publication numbers (e.g. 'US10452978B2', 'https://patents.google.com/patent/US10452978B2/en').

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

Filter search results by company/organization name (e.g. 'Google LLC', 'NVIDIA', 'Toyota').

## `inventor` (type: `string`):

Filter search results by inventor name.

## `country` (type: `string`):

Filter by patent jurisdiction code (e.g. 'US', 'EP', 'WO', 'CN', 'JP', 'KR') or leave empty for worldwide.

## `patentStatus` (type: `string`):

Filter by Granted patents, Applications, or All.

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

Filter patents with priority date on or after YYYY-MM-DD (e.g. '2022-01-01').

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

Filter patents with priority date on or before YYYY-MM-DD (e.g. '2026-11-14').

## `sort` (type: `string`):

Sort search results by relevance, newest publications first, or oldest publications first.

## `enrichPatentDetails` (type: `boolean`):

Fetch individual patent pages to extract full untruncated abstract, all claims, backward/forward patent citations, legal status, expiration date, legal events, similar documents, and CPC/IPC codes.

## `maxPatentsPerQuery` (type: `integer`):

Maximum patents to extract per search query (1–300).

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. Runs reliably on standard Datacenter proxies.

## Actor input object example

```json
{
  "searchQueries": [
    "transformer neural network"
  ],
  "patentUrlsOrNumbers": [],
  "assignee": "",
  "inventor": "",
  "country": "",
  "patentStatus": "all",
  "dateFrom": "",
  "dateTo": "",
  "sort": "relevance",
  "enrichPatentDetails": true,
  "maxPatentsPerQuery": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `dataset` (type: `string`):

No description

## `sourceReport` (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 = {
    "searchQueries": [
        "transformer neural network"
    ],
    "enrichPatentDetails": true,
    "maxPatentsPerQuery": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("foxlabs/google-patents-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 = {
    "searchQueries": ["transformer neural network"],
    "enrichPatentDetails": True,
    "maxPatentsPerQuery": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("foxlabs/google-patents-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 '{
  "searchQueries": [
    "transformer neural network"
  ],
  "enrichPatentDetails": true,
  "maxPatentsPerQuery": 20
}' |
apify call foxlabs/google-patents-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,foxlabs/google-patents-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/VAZ6DVcpUmBd2SN3F/builds/ldttDsgRl9SgVZhkc/openapi.json
