> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stophy.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Patents

> Read a Google Patents search page with q as JSON with the google-patents parser. $1 per 1,000 calls. Send the page to scrape.

Reads a Google Patents search page with q, inventor or assignee, and returns its data as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. This parser works without an API key when you send no options, up to 10 calls a minute and 50 calls a day per IP address. See [Rate limits](https://docs.stophy.dev/production/rate-limits.md). To lift the limits, get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://patents.google.com/?q=solid+state+battery&assignee=Toyota","formats":[{"type":"json","parser":"google-patents"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://patents.google.com/?q=solid+state+battery&assignee=Toyota",
    formats: [{ type: "json", parser: "google-patents" }],
  }),
});
console.log(await response.json());
```

```python Python theme={null}
import os

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://patents.google.com/?q=solid+state+battery&assignee=Toyota",
        "formats": [{"type": "json", "parser": "google-patents"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `patentId`, `title`, `snippet`, `assignee`, `inventor` and `priorityDate`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "results": [
        {
          "patentId": "US11018374B2",
          "title": "All-solid-state battery",
          "snippet": "5. The all-solid-state battery according to claim 1 , wherein, when the total volume of the anode layer is determined…",
          "assignee": "Toyota Jidosha Kabushiki Kaisha",
          "inventor": "Satoshi Mizutani",
          "priorityDate": "2018-04-03",
          "filingDate": "2019-03-14",
          "grantDate": "2021-05-25",
          "publicationDate": "2021-05-25",
          "language": "en",
          "patentUrl": "https://patents.google.com/patent/US11018374B2/en",
          "pdfUrl": "https://patentimages.storage.googleapis.com/a9/f6/23/69fb5afe31ad17/US11018374.pdf",
          "thumbnailUrl": "https://patentimages.storage.googleapis.com/d1/48/46/5134db0b904d57/US11018374-20210525-D00000.png",
          "position": 1
        }
      ],
      "page": 1
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `office` | Google Patents' own Patent office, like US, EP, WO, CN or JP. |
| `dateType` | Which date before and after compare: Google Patents' own date choice. |
| `litigation` | Google Patents' own Litigation: has related litigation, or no known. |
| `page` | Page number, starting at 1. |

It also takes `inventor`, `language`, `after`, `before`, `status`, `type` and `sort`.

## Price

\$1 per 1,000 calls. Works without an API key, within the free limits. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be a Google Patents search page with q, inventor or assignee. Any other URL fails with `invalidRequest`.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Google Trends](https://docs.stophy.dev/scrape/prebuilt-parsers/web/google-trends.md)
* [Google Maps](https://docs.stophy.dev/scrape/prebuilt-parsers/places-and-travel/google-maps.md)
* [Google Maps place](https://docs.stophy.dev/scrape/prebuilt-parsers/places-and-travel/google-maps-place.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.