Google Search
POST /api/v1/google/search
Run a Google web search and get the organic results with titles, links and snippets.
Overview
Run a Google web search and get the organic results with titles, links and snippets.
POST /api/v1/google/search
Method: POST Path: /api/v1/google/search Category: Search Engine
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| country | string | Optional | Country code to localise results, e.g. us, gb, de. |
| language | string | Optional | Interface language code, e.g. en, de, fr. |
| num_results | integer | Optional | Number of organic results to return (1-50). |
| query | string | Required | Search query, e.g. "what is dns". |
Request Example
Google Search Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/google/search" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"country": "us", "language": "en", "num_results": "10", "query": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "search_information": { "time_taken": 0.0, "total_results": 0, "query_displayed": "string", "organic_results_state": "string", "original_query_yields_zero_results": false, "url": "https://example.com/..." }, "total_time_taken": 0.0, "ai_overview": { "text_blocks": [ { "type": "heading", "snippet": "string", "snippet_highlighted_words": [ "string" ], "list": [ { "snippet": "string" } ] } ], "references": [ { "title": "string", "link": "https://example.com/...", "source": "string" } ] }, "inline_images": [ { "source": "string", "thumbnail": "string", "title": "string", "link": "https://example.com/..." } ], "inline_videos": [ { "title": "string", "source": "string", "date": "2026-01-01T12:00:00Z", "thumbnail": "string", "platform": "string", "duration": "string", "position": 0 } ], "organic_results": [ { "title": "string", "link": "https://example.com/...", "displayed_link": "https://example.com/...", "favicon": "string", "source": "string", "snippet": "string", "highlighted_keywords": [ "string" ], "inline_snippet": "string", "rank": 0, "page_rank": 0, "redirect_link": "https://example.com/..." } ], "related_searches": [ { "query": "string", "link": "https://example.com/..." } ], "dmca_message": { "text": "string", "links": [ "string" ] }, "pagination": { "current": "string", "next": "string", "page_no": {} }, "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Google Search", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| search_information | object | Yes | Search metadata. |
| search_information.time_taken | number | Yes | Search time reported by Google, in seconds. |
| search_information.total_results | integer | Yes | Approximate total result count reported by Google. |
| search_information.query_displayed | string | Yes | Query that was searched. |
| search_information.organic_results_state | string | Yes | Spelling state, e.g. 'Results for exact spelling' or Google's 'Showing results for ...' notice. |
| search_information.original_query_yields_zero_results | boolean | Yes | True if Google reported no results for the query. |
| search_information.url | string | Yes | Google search URL for the query. |
| total_time_taken | number | Yes | Total scrape time in seconds. |
| ai_overview | object | No | Google AI Overview. Present only when Google shows one. |
| ai_overview.text_blocks | array<object> | Yes | Overview content in order. |
| ai_overview.text_blocks[].type | string | Yes | Block type. |
| ai_overview.text_blocks[].snippet | string | No | Text of a heading or paragraph block. |
| ai_overview.text_blocks[].snippet_highlighted_words | array<string> | No | Bold or emphasised words in a paragraph. |
| ai_overview.text_blocks[].list | array<object> | No | Items of a list block. |
| ai_overview.text_blocks[].list[].snippet | string | Yes | Item text. |
| ai_overview.references | array<object> | No | Sources cited by the overview. |
| ai_overview.references[].title | string | Yes | Source title. |
| ai_overview.references[].link | string | Yes | Source URL. |
| ai_overview.references[].source | string | Yes | Source site name. |
| inline_images | array<object> | No | Image pack shown in the results. Present only when Google shows one. |
| inline_images[].source | string | Yes | Site the image comes from. |
| inline_images[].thumbnail | string | Yes | Thumbnail URL (may be a data: URI). |
| inline_images[].title | string | Yes | Image title (alt text). |
| inline_images[].link | string | Yes | Page the image links to. |
| inline_videos | array<object> | No | Video results shown in the results. Present only when Google shows them. |
| inline_videos[].title | string | Yes | Video title. |
| inline_videos[].source | string | Yes | Video platform or publisher (e.g. 'YouTube'). |
| inline_videos[].date | string | Yes | Upload date as shown by Google. |
| inline_videos[].thumbnail | string | Yes | Thumbnail URL. |
| inline_videos[].platform | string | Yes | Video platform (same as source). |
| inline_videos[].duration | string | Yes | Video length as shown by Google (e.g. '10:24'). |
| inline_videos[].position | integer | Yes | Position in the video pack. |
| organic_results | array<object> | Yes | Organic results, up to num_results, across as many pages as needed. |
| organic_results[].title | string | Yes | Result title. |
| organic_results[].link | string | Yes | Destination URL. |
| organic_results[].displayed_link | string | Yes | URL or breadcrumb shown under the title. |
| organic_results[].favicon | string | Yes | Site favicon URL. Empty string when unknown. |
| organic_results[].source | string | Yes | Site name. |
| organic_results[].snippet | string | Yes | Result description. |
| organic_results[].highlighted_keywords | array<string> | Yes | Words Google highlighted in the snippet. |
| organic_results[].inline_snippet | string | null | Yes | Extra inline text such as a date or rating, when shown. |
| organic_results[].rank | integer | Yes | Overall position across all pages (1 = first). |
| organic_results[].page_rank | integer | Yes | Position on its results page. |
| organic_results[].redirect_link | string | Yes | Raw Google link for the result. |
| related_searches | array<object> | No | Related searches. Present only when Google shows them. |
| related_searches[].query | string | Yes | Suggested query. |
| related_searches[].link | string | Yes | Google search URL for the suggestion. |
| dmca_message | object | Yes | DMCA removal notice shown by Google, if any. |
| dmca_message.text | string | Yes | Notice text. Empty string when there is none. |
| dmca_message.links | array<string> | Yes | Links in the notice. |
| pagination | object | Yes | Pagination links. |
| pagination.current | string | Yes | Current page number. |
| pagination.next | string | Yes | URL of the next results page. |
| pagination.page_no | object | Yes | Map of page number to page URL (e.g. {"2": "https://www.google.com/search?..."}). |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/google/search?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
query,country,language,num_results example,us,en,10
Pricing & Rate Limits
Endpoint Pricing
$0.0022 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |