# google.search

A Google Search results page: organic results with position, title, address and snippet, plus related questions, related searches, top stories, local places, the knowledge panel, the AI Overview, recipes, sports games and the corrected query where shown.

Google search, one of the Google Search scrapers.

| | |
| --- | --- |
| Id | `google.search` |
| Version | 2 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/google.search/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | What to search for, as typed into Google Search. Limit: at least 1 characters, at most 400 characters. |
| `country` | string | no | Two-letter country code the results are ranked for (Google's `gl`), e.g. `us`, `gb`, `de`. Default: `"us"`. |
| `language` | string | no | Language of the results page (Google's `hl`), e.g. `en`, `de`, `pt-BR`. Default: `"en"`. |
| `page` | integer | no | The results page, from 1. About ten organic results a page. Limit: 1 to 30. Default: `1`. |
| `num` | integer | no | Return at most this many organic results of the page. Limit: 1 to 10. Default: `10`. |

- One run reads one results page. `page` asks for a later one (1 to 30); `num` trims the organic results returned, and the page's other blocks are returned whole.
- Every record has a `type`. `organic` records come first, in the page's order, with `position` counted across pages. The other types follow, each numbered from 1: `related_question`, `related_search`, `top_story`, `local_place`, `knowledge_panel`, `ai_overview`, `recipe` (the recipes block: site, rating, time and ingredients), `sports_game` (each game of the sports block, with the two teams, their scores where played, the status and the day) and `spelling` (the query Google searched in place of the one asked, with the one asked in `attributes.searched_instead_of`, or the one it suggests under "Did you mean:"). A field that does not belong to a record's type is `null`.
- `url` is the page a result leads to, read from the result's own link. If an address could not be read the record has `url` `null` and the run ends `partial` with `link_unresolved`.
- `country` and `language` steer which results are preferred; the request itself is made from the United States.
- The AI Overview is returned when the results page carries it, with the pages it cites in `sources`. On many pages it is loaded after the page and is then not returned. Advertisements are not returned.
- Most runs take about half a minute. The first run after a quiet spell can take over a minute: call with `?wait=300`, or poll the run — see [the reasons of this family](https://docs.enrichednow.com/results-and-statuses.md#google-search).
- A search nothing matches ends `ok` with zero records. When Google refuses the page the run ends `failed` with `captcha`, and costs nothing.

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `type` | "organic" \| "related_question" \| "related_search" \| "top_story" \| "local_place" \| "knowledge_panel" \| "ai_overview" \| "recipe" \| "sports_game" \| "spelling" | The kind of item: `organic` (a web result), `related_question` ("People also ask"), `related_search`, `top_story`, `local_place` (the map pack), `knowledge_panel`, `ai_overview`, `recipe` (the "Recipes" block), `sports_game` (a game of the sports block: a team's or a match's results and fixtures) or `spelling` (the query Google searched in place of the one asked, or suggests). Advertisements are not returned. Default: `"organic"`. |
| `query` | string | The query that was asked. |
| `position` | integer | The rank among the items of the same type, from 1. For organic results it is counted across pages. Limit: at least 1. |
| `page` | integer | The results page the item was on. Limit: at least 1. |
| `title` | string | The item's title as the page shows it: a result's or a story's headline, the question, the suggested search, the place's or the panel's name; `AI Overview` for the AI answer; the recipe's name; the two teams of a game, `<first> vs <second>` in the page's order; for `spelling`, the query Google searched instead, or the one it suggests. |
| `url` | string or null | The page the item leads to: an organic result, a top story, a recipe, the knowledge panel's description source. For an organic result it is null only when the address could not be read, and the run is then `partial`; for the other types it is null when the page gives none or it was not read in the run's time. |
| `displayed_url` | string or null | Organic results: the address as Google shows it above the title, e.g. `https://example.com › docs`. |
| `snippet` | string or null | The text of the item: under an organic result's title (without the date), the knowledge panel's description, or the whole text of the AI answer; for `spelling`, the line's own words: `These are results for` (Google searched the corrected query) or `Did you mean:` (it searched the query as asked and suggests the corrected one). |
| `date` | string or null | The date or age Google shows with a result or a story, or the day of a game, as it is written there, e.g. `Mar 17, 2026`, `2 hours ago`, `Sun, Nov 15`. |
| `source` | string or null | Top stories: the publisher. Recipes: the site, e.g. `Allrecipes`. Knowledge panel: where the description comes from, e.g. `Wikipedia`. |
| `rating` | number or null | Local places and recipes: the average rating, 1 to 5. |
| `review_count` | integer or null | Local places: the number of reviews. |
| `category` | string or null | Local places: the kind of place, e.g. `Dentist`. Knowledge panel: the line under the name, e.g. `American singer-songwriter`. |
| `address` | string or null | Local places: the address line as the page shows it: a street address, or a district or town. |
| `attributes` | object of string values or null | Knowledge panel: its facts, label to value as shown, e.g. `{"Born": "December 13, 1989"}`. Recipe: `reviews` (the count as shown, e.g. `15K`), `total_time`, `ingredients`. Sports game: `team_1`, `team_1_score`, `team_2`, `team_2_score`, `status` (e.g. `Final`, `FT`, `Starts at 11:00 PM`), and `competition` or `stage` where shown. Spelling: `searched_instead_of`, the query as asked. |
| `sources` | array of object or null | AI answer: the pages it cites. |
| `sources[].title` | string | The cited page's title or publisher, as the answer shows it. |
| `sources[].url` | string or null | The cited page's address; null when it could not be read in the run's time. |
| `fetched_at` | string (date-time) | When the page was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/google.search/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"best espresso machine"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "google.search",
  "scraper_version": 2,
  "status": "ok",
  "reason": null,
  "input": {
    "query": "best espresso machine"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "type": "organic",
      "query": "best espresso machine",
      "position": 1,
      "page": 1,
      "title": "The Best Espresso Machines for Every Budget, Tested and ...",
      "url": "https://www.aol.com/articles/best-espresso-machines-every-budget-191700000.html",
      "displayed_url": "https://www.aol.com › articles › best-espresso-machines...",
      "snippet": "Best Overall: Breville Barista Express Impress Espresso Machine ; Best Entry-Level: Breville Barista Express Espresso Machine ; Most Versatile: De ... Read more",
      "date": "Oct 26, 2026",
      "source": null,
      "rating": null,
      "review_count": null,
      "category": null,
      "address": null,
      "attributes": null,
      "sources": null,
      "fetched_at": "2026-11-19T16:33:36.140541Z"
    }
  ],
  "next_cursor": null
}
```

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Google Search scrapers](https://docs.enrichednow.com/results-and-statuses.md#google-search) are in their own section there.
