---
title: "Google Search API reference | ScrapeCrate"
description: "Every endpoint of the Google Search API with its parameters, prices, cursor pagination and example JSON responses, in cURL, Python and TypeScript."
url: https://scrapecrate.com/docs/api/google
markdown: https://scrapecrate.com/docs/api/google.md
---

# Google Search API

Run a Google search and get the organic results with title, URL, snippet and sitelinks, the ads, "People also ask", related searches, and the featured snippet and knowledge panel when Google shows them, for any country, language, page and desktop or mobile. The same API also returns Google Trends (interest over time, by region, related queries).

Overview and use cases on the [Google Search API page](https://scrapecrate.com/google-search-api.md); response format, pagination and errors are the same for every API ([conventions](https://scrapecrate.com/docs/api.md)).

- Search Google /v1/google/search
- Google Trends interest over time /v1/google/trends/interest-over-time
- Google Trends interest by region /v1/google/trends/interest-by-region
- Google Trends related queries /v1/google/trends/related-queries

## Search Google

> **Temporarily unavailable.** This feature is switched off for now. Its calls answer 503 feature_disabled and cost no credits. Please check back later.

GET `/v1/google/search` 15 credits / call

One page of Google results: organic results (position, title, URL, displayed URL, domain, snippet, sitelinks), top and bottom ads, People also ask, related searches, the featured snippet and the knowledge panel when present, the total results and whether a next page exists. Optional blocks are empty or null when Google does not show them.

| Parameter | In | Type | Default | Description |
| --- | --- | --- | --- | --- |
| q * | query | string | — | Search query, with Google operators if you like (site:, quotes) |
| country | query | string | `us` | Two-letter code of the country to search from (Google gl) |
| language | query | string | `en` | Interface language (Google hl): en, it, pt-BR... |
| page | query | integer (1–10) | `1` | Results page, 10 organic results each |
| device | query | desktop \| mobile | `desktop` | Results as shown on a desktop or a mobile browser |

```bash
curl "https://api.scrapecrate.com/v1/google/search?q=best%20running%20shoes" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
res = client.google.search(q="best running shoes")
print(res.data)
print(res.credits_used, res.credits_remaining)
```

```typescript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const res = await client.google.search({ q: "best running shoes" });
console.log(res.data, res.creditsUsed, res.creditsRemaining);
```

```json
{
  "data": {
    "query": "best running shoes",
    "page": 1,
    "total_results": 195000000,
    "organic_results": [
      {
        "position": 1,
        "title": "The 15 Best Running Shoes of 2026, Tested",
        "url": "https://www.example.com/best-running-shoes",
        "displayed_url": "https://www.example.com › reviews › running",
        "domain": "example.com",
        "snippet": "We ran more than 500 miles in 40 pairs to find the best shoes for every runner and budget.",
        "sitelinks": [
          {
            "title": "Best trail running shoes",
            "url": "https://www.example.com/best-trail-running-shoes"
          }
        ]
      },
      {
        "position": 2,
        "title": "Running shoes for men and women",
        "url": "https://shop.example.org/running-shoes",
        "displayed_url": "https://shop.example.org › running-shoes",
        "domain": "shop.example.org",
        "snippet": "Free delivery and returns on every pair. Find the right shoe with our fit guide.",
        "sitelinks": []
      }
    ],
    "ads": [
      {
        "position": 1,
        "block": "top",
        "title": "Running Shoes Sale - Up to 40% Off",
        "url": "https://store.example.net/sale",
        "displayed_url": "https://store.example.net",
        "domain": "store.example.net",
        "description": "Top brands, free returns. Shop the new season now."
      }
    ],
    "people_also_ask": [
      {
        "question": "What is the number 1 running shoe?"
      },
      {
        "question": "How often should you replace running shoes?"
      }
    ],
    "related_searches": [
      "best running shoes for men",
      "best running shoes for beginners"
    ],
    "featured_snippet": null,
    "knowledge_panel": null,
    "has_next_page": true,
    "no_results": false
  },
  "meta": {
    "request_id": "req_8f2c1a9b0d3e4f5a6b7c",
    "credits_used": 15,
    "credits_remaining": 9999
  }
}
```

## Google Trends interest over time

GET `/v1/google/trends/interest-over-time` 3 credits / call

Search interest over time for up to 5 keywords compared, as Google Trends charts it: one point per hour, day, week or month depending on the range, each keyword's value from 0 to 100 relative to the highest point of the chart. The last point can be `partial` (still being counted). `no_data` is true when Google has too little data.

| Parameter | In | Type | Default | Description |
| --- | --- | --- | --- | --- |
| keywords * | query | string | — | Up to 5 keywords to compare, separated by commas |
| geo | query | string | — | Country (US) or region (US-CA); worldwide when left out |
| time_range | query | past_hour \| past_4_hours \| past_day \| past_7_days \| past_30_days \| past_90_days \| past_12_months \| past_5_years \| all | — | Time range (default past_12_months; all = since 2004) |
| from_date | query | date | — | Custom range start (YYYY-MM-DD, from 2004-01-01; with to_date, not with time_range) |
| to_date | query | date | — | Custom range end (YYYY-MM-DD; with from_date) |
| category | query | integer (0–100000) | `0` | Google Trends category id (0 = all categories) |
| property | query | web \| images \| news \| youtube \| shopping | `web` | Which Google search: web, image, news, YouTube or Shopping |
| language | query | string | `en` | Language of Google's labels (formatted_date) |

```bash
curl "https://api.scrapecrate.com/v1/google/trends/interest-over-time?keywords=chatgpt%2Cgemini" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
res = client.google.trends_interest_over_time(keywords="chatgpt,gemini")
print(res.data)
print(res.credits_used, res.credits_remaining)
```

```typescript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const res = await client.google.trendsInterestOverTime({ keywords: "chatgpt,gemini" });
console.log(res.data, res.creditsUsed, res.creditsRemaining);
```

```json
{
  "data": {
    "keywords": [
      "chatgpt",
      "gemini"
    ],
    "geo": "US",
    "time_range": "past_90_days",
    "from_date": null,
    "to_date": null,
    "category": 0,
    "property": "web",
    "timeline": [
      {
        "date": "2026-11-22T00:00:00Z",
        "timestamp": 1795305600,
        "formatted_date": "Nov 22, 2026",
        "partial": false,
        "values": [
          {
            "keyword": "chatgpt",
            "value": 71,
            "has_data": true
          },
          {
            "keyword": "gemini",
            "value": 29,
            "has_data": true
          }
        ]
      },
      {
        "date": "2026-11-23T00:00:00Z",
        "timestamp": 1795392000,
        "formatted_date": "Nov 23, 2026",
        "partial": true,
        "values": [
          {
            "keyword": "chatgpt",
            "value": 67,
            "has_data": true
          },
          {
            "keyword": "gemini",
            "value": 30,
            "has_data": true
          }
        ]
      }
    ],
    "averages": [
      {
        "keyword": "chatgpt",
        "value": 69,
        "has_data": true
      },
      {
        "keyword": "gemini",
        "value": 28,
        "has_data": true
      }
    ],
    "no_data": false
  },
  "meta": {
    "request_id": "req_8f2c1a9b0d3e4f5a6b7c",
    "credits_used": 3,
    "credits_remaining": 9999
  }
}
```

## Google Trends interest by region

GET `/v1/google/trends/interest-by-region` 3 credits / call

Where the keywords are searched most: one row per country (worldwide), region (in a country), metro area or city, each keyword's value from 0 to 100 relative to the region with the most interest. Regions without data are left out.

| Parameter | In | Type | Default | Description |
| --- | --- | --- | --- | --- |
| keywords * | query | string | — | Up to 5 keywords to compare, separated by commas |
| geo | query | string | — | Country (US) or region (US-CA); worldwide when left out |
| resolution | query | country \| region \| metro \| city | — | Level of the rows; by default countries worldwide and regions in a country (metro = US DMA areas) |
| time_range | query | past_hour \| past_4_hours \| past_day \| past_7_days \| past_30_days \| past_90_days \| past_12_months \| past_5_years \| all | — | Time range (default past_12_months; all = since 2004) |
| from_date | query | date | — | Custom range start (YYYY-MM-DD, from 2004-01-01; with to_date, not with time_range) |
| to_date | query | date | — | Custom range end (YYYY-MM-DD; with from_date) |
| category | query | integer (0–100000) | `0` | Google Trends category id (0 = all categories) |
| property | query | web \| images \| news \| youtube \| shopping | `web` | Which Google search: web, image, news, YouTube or Shopping |
| language | query | string | `en` | Language of the region names |

```bash
curl "https://api.scrapecrate.com/v1/google/trends/interest-by-region?keywords=pizza" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
res = client.google.trends_interest_by_region(keywords="pizza")
print(res.data)
print(res.credits_used, res.credits_remaining)
```

```typescript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const res = await client.google.trendsInterestByRegion({ keywords: "pizza" });
console.log(res.data, res.creditsUsed, res.creditsRemaining);
```

```json
{
  "data": {
    "keywords": [
      "pizza"
    ],
    "geo": "US",
    "time_range": "past_12_months",
    "from_date": null,
    "to_date": null,
    "category": 0,
    "property": "web",
    "resolution": "region",
    "regions": [
      {
        "geo_code": "US-NY",
        "name": "New York",
        "coordinates": null,
        "values": [
          {
            "keyword": "pizza",
            "value": 100,
            "has_data": true
          }
        ]
      },
      {
        "geo_code": "US-NJ",
        "name": "New Jersey",
        "coordinates": null,
        "values": [
          {
            "keyword": "pizza",
            "value": 96,
            "has_data": true
          }
        ]
      }
    ],
    "no_data": false
  },
  "meta": {
    "request_id": "req_8f2c1a9b0d3e4f5a6b7c",
    "credits_used": 3,
    "credits_remaining": 9999
  }
}
```

## Google Trends related queries

GET `/v1/google/trends/related-queries` 3 credits / call

The searches people also make, for each keyword: `top` (most searched, 0 to 100) and `rising` (fastest growing, % increase over the previous period; `breakout` above +5000%). Lists are empty when Google has too little data.

| Parameter | In | Type | Default | Description |
| --- | --- | --- | --- | --- |
| keywords * | query | string | — | Up to 5 keywords to compare, separated by commas |
| geo | query | string | — | Country (US) or region (US-CA); worldwide when left out |
| time_range | query | past_hour \| past_4_hours \| past_day \| past_7_days \| past_30_days \| past_90_days \| past_12_months \| past_5_years \| all | — | Time range (default past_12_months; all = since 2004) |
| from_date | query | date | — | Custom range start (YYYY-MM-DD, from 2004-01-01; with to_date, not with time_range) |
| to_date | query | date | — | Custom range end (YYYY-MM-DD; with from_date) |
| category | query | integer (0–100000) | `0` | Google Trends category id (0 = all categories) |
| property | query | web \| images \| news \| youtube \| shopping | `web` | Which Google search: web, image, news, YouTube or Shopping |
| language | query | string | `en` | Language of Google's labels (formatted_date) |

```bash
curl "https://api.scrapecrate.com/v1/google/trends/related-queries?keywords=chatgpt%2Cgemini" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
res = client.google.trends_related_queries(keywords="chatgpt,gemini")
print(res.data)
print(res.credits_used, res.credits_remaining)
```

```typescript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const res = await client.google.trendsRelatedQueries({ keywords: "chatgpt,gemini" });
console.log(res.data, res.creditsUsed, res.creditsRemaining);
```

```json
{
  "data": {
    "keywords": [
      "bitcoin"
    ],
    "geo": null,
    "time_range": "past_12_months",
    "from_date": null,
    "to_date": null,
    "category": 0,
    "property": "web",
    "related_queries": [
      {
        "keyword": "bitcoin",
        "top": [
          {
            "query": "bitcoin price",
            "value": 100,
            "formatted_value": "100",
            "breakout": false
          },
          {
            "query": "bitcoin usd",
            "value": 37,
            "formatted_value": "37",
            "breakout": false
          }
        ],
        "rising": [
          {
            "query": "bitcoin etf news",
            "value": 250,
            "formatted_value": "+250%",
            "breakout": false
          },
          {
            "query": "bitcoin halving date",
            "value": 6950,
            "formatted_value": "Breakout",
            "breakout": true
          }
        ]
      }
    ],
    "no_data": false
  },
  "meta": {
    "request_id": "req_8f2c1a9b0d3e4f5a6b7c",
    "credits_used": 3,
    "credits_remaining": 9999
  }
}
```
