# Google Patents Scraper (`api-empire/google-patents-scraper`) Actor

🔎 Google Patents Scraper (google-patents-scraper) extracts structured patent data from Google Patents—titles, abstracts, inventors, assignees, CPC, claims, citations, priority dates & PDF links. ⚙️ Ideal for IP research, competitive intel & R\&D. Export to CSV/JSON for analysis. 🚀

- **URL**: https://apify.com/api-empire/google-patents-scraper.md
- **Developed by:** [API Empire](https://apify.com/api-empire) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.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/platform/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

## Google Patents Scraper (Apify Actor)

Scrapes **patents.google.com** via the same `xhr/query` and `xhr/result` flows as the standalone script: search pagination, optional enrichment (description, claims, citations, family, CPC/IPC).

### Behaviour

- **Default:** requests go **direct** to Google Patents (no proxy).
- **On block:** **Datacenter** (Apify `SHADER`) → **Residential** (`RESIDENTIAL`), up to **3** tries on residential.
- **Sticky:** after a successful **datacenter** response, later requests use datacenter; after a successful **residential** response, later requests use residential only.

### Input

| Field | Description |
|--------|-------------|
| `urls` | Optional patent URLs (`…/patent/US…`) and/or search URLs with `?q=…` |
| `searchQuery`, `patentNumbers`, filters | Same semantics as Google Patents search |
| `maxResults` | Cap results (`0` = unlimited) |
| `include*` | Toggle description, claims, citations, family, classifications |
| `proxyConfiguration` | Apify Proxy (used when falling back from direct) |

You need at least one of: **`searchQuery`**, **`patentNumbers`**, or **`urls`** that yields a query.

### Output

Dataset items match the original JSON shape: `patentNumber`, `title`, `abstract`, `inventors`, `assignee`, dates, `classifications`, `url`, `pdfUrl`, `scrapedAt`, `citations`, and optional `fullText`, `patentFamily`.

### Run locally

```bash
pip install -r requirements.txt
apify run
````

Or with Apify CLI and `INPUT.json` in the default storage folder.

### Legal

Public data only; users are responsible for compliance with Google Patents’ terms and applicable law.

### What are other Google scraping tools?

If you want to scrape specific Google data, you can use any of the dedicated scrapers below for faster and more targeted results.

| Scraper Name | Scraper Name |
|---|---|
| [Google Ads Scraper](https://apify.com/api-empire/google-ads-scraper) | [Google Maps Scraper](https://apify.com/api-empire/google-maps-scraper) |
| [Google Finance Scraper](https://apify.com/api-empire/google-finance-scraper) | [Google News Scraper](https://apify.com/api-empire/google-news-scraper) |
| [Google Flights Scraper](https://apify.com/api-empire/google-flights-scraper) | [Google Play Data Extractor](https://apify.com/api-empire/google-play-data-extractor) |
| [Google Hotels Scraper](https://apify.com/api-empire/google-hotels-scraper) | [Google Play Email Scraper](https://apify.com/api-empire/google-play-email-scraper) |
| [Google Images Scraper](https://apify.com/api-empire/google-images-scraper) | [Google Play Phone Number Scraper](https://apify.com/api-empire/google-play-phone-number-scraper) |
| [Google Maps Email Extractor](https://apify.com/api-empire/google-maps-email-extractor) | [Google Play Store App Search Scraper](https://apify.com/api-empire/google-play-store-app-search-scraper) |
| [Google Maps Email Scraper](https://apify.com/api-empire/google-maps-email-scraper) | [Google Play Store Review Scraper](https://apify.com/api-empire/google-play-store-review-scraper) |
| [Google Maps Extractor](https://apify.com/api-empire/google-maps-extractor) | [Google Search Autocomplete Scraper](https://apify.com/api-empire/google-search-autocomplete-scraper) |
| [Google Maps Phone Number Extractor](https://apify.com/api-empire/google-maps-phone-number-extractor) | [Google Search Results Scraper](https://apify.com/api-empire/google-search-results-scraper) |
| [Google Maps Phone Number Scraper](https://apify.com/api-empire/google-maps-phone-number-scraper) | [Google Search Results Serp Scraper](https://apify.com/api-empire/google-search-results-serp-scraper) |
| [Google Maps Reviews Scraper](https://apify.com/api-empire/google-maps-reviews-scraper) | [Google Trends Scraper](https://apify.com/api-empire/google-trends-scraper) |

# Actor input Schema

## `urls` (type: `array`):

✅ One entry per line: patent URLs, search URLs (q=), or plain keywords (e.g. machine learning). Plain lines are search phrases. All entries OR-merge with the Keywords field.

## `searchQuery` (type: `string`):

💡 Main keyword search. Works together with URLs: your text is OR-merged with any q= from search URLs and with publication numbers from patent URLs so you get a broad combined result.

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

📋 Specific patent IDs. Combined with keywords using OR so you still get broad results when both are set.

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

🏭 Focus on patents owned by a particular organization.

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

🧑‍🔬 Find patents listing a specific inventor.

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

🗺️ Pick a country or office — or **Any** to search everywhere.

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

⏳ Pick a **calendar date** or a **relative** range (e.g. *30 days*, *6 months*). Leave empty for no lower bound.

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

⏳ Same as above — absolute or relative. Leave empty for no upper bound.

## `patentType` (type: `string`):

📑 Limit to grants, applications, or designs — or **Any** for all types.

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

🎚️ Cap how many patents to collect. Use **0** for no limit (be mindful of run time).

## `includeFullText` (type: `boolean`):

📜 Adds the full written description (large text).

## `includeClaims` (type: `boolean`):

📋 Adds the patent claims text.

## `includeCitations` (type: `boolean`):

↩️ Adds backward and forward citation lists where available.

## `includePatentFamily` (type: `boolean`):

🌍 Adds related publications in the same family.

## `includeClassifications` (type: `boolean`):

🧮 Adds classification codes for analytics and filtering.

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

🛟 Optional Apify Proxy settings. Leave default off if you don’t need it.

## Actor input object example

```json
{
  "urls": [
    "https://patents.google.com/patent/US12438891B1",
    "machine learning"
  ],
  "searchQuery": "",
  "patentNumbers": [],
  "assignee": "",
  "inventor": "",
  "country": "ANY",
  "dateFrom": "",
  "dateTo": "",
  "patentType": "ANY",
  "maxResults": 10,
  "includeFullText": false,
  "includeClaims": true,
  "includeCitations": true,
  "includePatentFamily": true,
  "includeClassifications": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "urls": [
        "https://patents.google.com/patent/US12438891B1",
        "machine learning"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("api-empire/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 = {
    "urls": [
        "https://patents.google.com/patent/US12438891B1",
        "machine learning",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("api-empire/google-patents-scraper").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 '{
  "urls": [
    "https://patents.google.com/patent/US12438891B1",
    "machine learning"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call api-empire/google-patents-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=api-empire/google-patents-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Patents Scraper",
        "description": "🔎 Google Patents Scraper (google-patents-scraper) extracts structured patent data from Google Patents—titles, abstracts, inventors, assignees, CPC, claims, citations, priority dates & PDF links. ⚙️ Ideal for IP research, competitive intel & R&D. Export to CSV/JSON for analysis. 🚀",
        "version": "1.0",
        "x-build-id": "jFoJ3JOeMDk6mtekV"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/api-empire~google-patents-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-api-empire-google-patents-scraper",
                "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/api-empire~google-patents-scraper/runs": {
            "post": {
                "operationId": "runs-sync-api-empire-google-patents-scraper",
                "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/api-empire~google-patents-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-api-empire-google-patents-scraper",
                "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": {
                    "urls": {
                        "title": "🔗 Patent & search links",
                        "type": "array",
                        "description": "✅ One entry per line: patent URLs, search URLs (q=), or plain keywords (e.g. machine learning). Plain lines are search phrases. All entries OR-merge with the Keywords field.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchQuery": {
                        "title": "🔤 Keywords",
                        "type": "string",
                        "description": "💡 Main keyword search. Works together with URLs: your text is OR-merged with any q= from search URLs and with publication numbers from patent URLs so you get a broad combined result.",
                        "default": ""
                    },
                    "patentNumbers": {
                        "title": "🔢 Publication numbers",
                        "type": "array",
                        "description": "📋 Specific patent IDs. Combined with keywords using OR so you still get broad results when both are set.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "assignee": {
                        "title": "🏢 Assignee",
                        "type": "string",
                        "description": "🏭 Focus on patents owned by a particular organization.",
                        "default": ""
                    },
                    "inventor": {
                        "title": "👤 Inventor",
                        "type": "string",
                        "description": "🧑‍🔬 Find patents listing a specific inventor.",
                        "default": ""
                    },
                    "country": {
                        "title": "🌍 Patent office / region",
                        "enum": [
                            "ANY",
                            "US",
                            "EP",
                            "WO",
                            "CN",
                            "JP",
                            "KR",
                            "DE",
                            "GB",
                            "FR",
                            "CA",
                            "AU",
                            "IN",
                            "BR",
                            "TW",
                            "RU",
                            "IT",
                            "ES",
                            "NL",
                            "SE",
                            "CH",
                            "AT",
                            "HK",
                            "SG",
                            "MX",
                            "NO",
                            "DK",
                            "FI",
                            "PL",
                            "IL",
                            "NZ",
                            "ZA",
                            "SA",
                            "AR",
                            "TH",
                            "MY",
                            "PH",
                            "ID",
                            "VN"
                        ],
                        "type": "string",
                        "description": "🗺️ Pick a country or office — or **Any** to search everywhere.",
                        "default": "ANY"
                    },
                    "dateFrom": {
                        "title": "📅 Published after",
                        "pattern": "^$|^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
                        "type": "string",
                        "description": "⏳ Pick a **calendar date** or a **relative** range (e.g. *30 days*, *6 months*). Leave empty for no lower bound.",
                        "default": ""
                    },
                    "dateTo": {
                        "title": "📅 Published before",
                        "pattern": "^$|^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
                        "type": "string",
                        "description": "⏳ Same as above — absolute or relative. Leave empty for no upper bound.",
                        "default": ""
                    },
                    "patentType": {
                        "title": "📄 Document kind",
                        "enum": [
                            "ANY",
                            "PATENT",
                            "APPLICATION",
                            "DESIGN"
                        ],
                        "type": "string",
                        "description": "📑 Limit to grants, applications, or designs — or **Any** for all types.",
                        "default": "ANY"
                    },
                    "maxResults": {
                        "title": "🔢 Max results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "🎚️ Cap how many patents to collect. Use **0** for no limit (be mindful of run time).",
                        "default": 10
                    },
                    "includeFullText": {
                        "title": "📖 Full description",
                        "type": "boolean",
                        "description": "📜 Adds the full written description (large text).",
                        "default": false
                    },
                    "includeClaims": {
                        "title": "⚖️ Claims",
                        "type": "boolean",
                        "description": "📋 Adds the patent claims text.",
                        "default": true
                    },
                    "includeCitations": {
                        "title": "🔗 Citations",
                        "type": "boolean",
                        "description": "↩️ Adds backward and forward citation lists where available.",
                        "default": true
                    },
                    "includePatentFamily": {
                        "title": "👨‍👩‍👧 Patent family",
                        "type": "boolean",
                        "description": "🌍 Adds related publications in the same family.",
                        "default": true
                    },
                    "includeClassifications": {
                        "title": "🏷️ CPC / IPC codes",
                        "type": "boolean",
                        "description": "🧮 Adds classification codes for analytics and filtering.",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "🔐 Proxy",
                        "type": "object",
                        "description": "🛟 Optional Apify Proxy settings. Leave default off if you don’t need it."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
