# Google Patents Search

Search for patents on Google Patents. Supports filtering by date, country, language, patent status, and more.

- **Documentation:** [https://scrappa.co/docs/google-patents-api/google_patents_search](https://scrappa.co/docs/google-patents-api/google_patents_search)
- **API group:** Google Patents API
- **Endpoint:** `GET https://scrappa.co/api/google-patents/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | Yes | The search query string. Example: `machine learning`, `(Coffee) OR (Tea)` |
| `page` | integer | No | Page number for pagination. Default: 1 |
| `num` | integer | No | Number of results per page. Range: 1-100. Default: 10 |
| `sort` | string | No | Sort order for results. Values: `new`, `old`. Default: `new` |
| `before` | string | No | Filter patents before this date. Format: filing:YYYYMMDD or publication:YYYYMMDD. Example: `filing:20231231` |
| `after` | string | No | Filter patents after this date. Format: filing:YYYYMMDD or publication:YYYYMMDD. Example: `publication:20230101` |
| `country` | string | No | Country code filter. Example: `US`, `WO,JP,EP` |
| `language` | string | No | Language filter. Example: `ENGLISH`, `GERMAN` |
| `status` | string | No | Patent status filter. Values: `GRANT`, `APPLICATION` |
| `type` | string | No | Patent type filter. Values: `PATENT`, `DESIGN` |
| `inventor` | string | No | Inventor name filter. Example: `John Smith,Jane Doe` |
| `assignee` | string | No | Assignee/company name filter. Example: `Tesla Inc,Apple Inc` |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/google-patents/search?q=machine+learning"
```

## Example response

```json
{
    "success": true,
    "data": {
        "total_results": 125048,
        "total_pages": 100,
        "current_page": 1,
        "patents": [
            {
                "patent_id": "patent/US9789384B1/en",
                "rank": 0,
                "title": "Self-balancing board having a suspension interface...",
                "snippet": "A self-balancing board including...",
                "publication_number": "US9789384B1",
                "language": "en",
                "dates": {
                    "priority": "2015-11-03",
                    "filing": "2017-07-05",
                    "grant": "2017-10-10",
                    "publication": "2017-10-10"
                },
                "inventor": "Shane Chen",
                "assignee": "Inventist, Inc.",
                "thumbnail": "https://patentimages.storage.googleapis.com/...",
                "pdf": "https://patentimages.storage.googleapis.com/...",
                "family_status": [
                    {
                        "country": "US",
                        "status": "ACTIVE"
                    },
                    {
                        "country": "EP",
                        "status": "NOT_ACTIVE"
                    }
                ]
            }
        ]
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 401 | Unauthorized | API key is missing or invalid |
| 422 | Validation Error | One or more parameters failed validation |
| 500 | Internal Server Error | Service temporarily unavailable or failed to fetch data from Google Patents |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
