# Google Patents Scraper - patent search results (`marekhartmann/google-patents-scraper`) Actor

Search Google Patents and get publication number, title, assignee, inventor, filing and publication dates with the result count the source itself reports - so a paging bug cannot silently return page one forever.

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

## Pricing

from $3.00 / 1,000 results

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

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

Vyhľadá patenty na Google Patents a vráti číslo publikácie, názov, prihlasovateľa,
vynálezcu, dátumy (priorita, podanie, udelenie, publikácia), jazyk, počet obrázkov
a odkaz na PDF.

Bez API kľúča a bez prihlásenia.

### Čím sa líši: prázdny výsledok nie je faktúra

| čo sa stalo | ako to skončí |
|-------------|---------------|
| Google vráti `total_num_results: 0` | beh **uspeje**, dataset prázdny, v `RUN_REPORT` dôvod. Pri účtovaní za výsledok **neplatíš nič** |
| odpoveď nemá počet výsledkov vôbec | beh **zlyhá** — najprv sa spýta kontrolná otázka na známy dotaz, aby sa vedelo, či je problém v zadaní alebo v Google |
| počet je nenulový, ale patenty sa nedajú prečítať | beh **zlyhá** — zmenená štruktúra sa nevydáva za „nič sa nenašlo" |

Odmerané 21. 8. 2026: `battery` → 112 795 výsledkov, 10 na stranu; nezmyselný
dotaz → odpoveď dlhá 146 znakov s `total_num_results: 0`.

Jeden dotaz, ktorý nič nenájde, **nezhodí celý beh**.

### Vstup

| pole | čo to je |
|------|----------|
| `queries` | kľúčové slová alebo výrazy Google Patents (`assignee:Tesla`, `inventor:...`) |
| `maxResultsPerQuery` | strop na jeden dotaz (predvolene 100) |
| `proxyConfiguration` | Apify proxy |

### Vývoj

```
npm install
npm test                  # 13 testov, bez siete
node scripts/smoke.mjs    # ostrý test proti živému Google Patents
```

Postavené na `Marek-Actor-Kit` — jadro v `src/core` sa needituje tu, ale v kite.

### Need a scraper for something else?

I build custom Apify Actors and browser automation the same way this one is built:
a verified result or an explicit failure, never an empty dataset sold as a success.

- My other Actors: https://apify.com/marekhartmann
- Code and test suites: https://github.com/marekhartmann-creator

Tell me the site and what you need out of it.

# Actor input Schema

## `queries` (type: `array`):

Keywords, patent numbers or Google Patents expressions, for example "assignee:Tesla", "solid state battery" or "inventor:Musk". If a query returns nothing, the run does NOT fail and you are not charged for it.

## `maxResultsPerQuery` (type: `integer`):

Hard cap on how many results are collected per query. The run stops at this number even if more pages exist, so a broad query cannot run away with your credits.

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

Apify Proxy configuration. Leave the default unless the source starts rate-limiting your datacenter IP; residential is rarely needed here.

## Actor input object example

```json
{
  "queries": [
    "battery"
  ],
  "maxResultsPerQuery": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `items` (type: `string`):

One row per patent: publication number, title, assignee, inventor, filing date, publication date and link.

## `runReport` (type: `string`):

Per-query outcome including total\_num\_results as reported by Google Patents, and the pagination cursor actually used.

# 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 = {
    "queries": [
        "battery"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("marekhartmann/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 = { "queries": ["battery"] }

# Run the Actor and wait for it to finish
run = client.actor("marekhartmann/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 '{
  "queries": [
    "battery"
  ]
}' |
apify call marekhartmann/google-patents-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,marekhartmann/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/58und3ajMbjK8DV89/builds/8chmdaOSzZAVlxURv/openapi.json
