Google Images
POST /api/v1/google/images
Search Google Images by keyword or image URL and extract image results, thumbnails, sources, and dimensions.
Overview
Search Google Images by keyword or image URL and extract image results, thumbnails, sources, and dimensions.
POST /api/v1/google/images
Method: POST Path: /api/v1/google/images Category: Search Engine
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| country | string | Optional | Country code to localise results, e.g. us, gb, de. |
| image_url | string | Optional | Direct image URL for Google Lens visual search. |
| language | string | Optional | Interface language code, e.g. en, de, fr. |
| num_results | integer | Optional | Maximum number of image results to return (1-100). |
| page | integer | Optional | Page number of results. |
| query | string | Optional | Search query for Google Images, e.g. "apple iphone 15". |
| url | string | Optional | Full Google Images search URL. |
Request Example
Google Images Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/google/images" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"country": "us", "image_url": "example", "language": "en", "num_results": "20", "page": "1", "query": "example", "url": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "total_time_taken": 0.0, "ads": [ { "title": "string", "link": "https://example.com/..." } ], "images_results": [ { "title": "string", "image": "string", "source": "string", "original": "string", "link": "https://example.com/...", "original_height": 0, "original_width": 0, "original_size": "string", "know_more_link": "https://example.com/...", "rank": 0 } ], "pagination": { "current": "string", "next": "string", "page_no": {} }, "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Google Images", "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 |
|---|---|---|---|
| total_time_taken | number | Yes | Total scrape time in seconds. |
| ads | array<object> | Yes | Sponsored image or shopping ads, if any. |
| ads[].title | string | Yes | Ad text. |
| ads[].link | string | Yes | Ad URL. |
| images_results | array<object> | Yes | Image results in order, up to the requested limit. |
| images_results[].title | string | Yes | Image title. |
| images_results[].image | string | Yes | Thumbnail URL. |
| images_results[].source | string | Yes | Site the image comes from (e.g. 'www.imdb.com'). |
| images_results[].original | string | Yes | Full-size image URL. |
| images_results[].link | string | Yes | Page containing the image. |
| images_results[].original_height | integer | Yes | Full-size image height in pixels (0 when unknown). |
| images_results[].original_width | integer | Yes | Full-size image width in pixels (0 when unknown). |
| images_results[].original_size | string | Yes | File size as shown by Google (e.g. '134KB'). Empty string when unknown. |
| images_results[].know_more_link | string | Yes | Google 'About this image' URL. |
| images_results[].rank | integer | Yes | Position in the results (1 = first). |
| pagination | object | No | Pagination links. Present only when Google returns a next page. |
| 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/images?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
country,image_url,language,num_results,page,query,url us,example,en,20,1,example,example
Pricing & Rate Limits
Endpoint Pricing
$0.005 / 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. |