Docs / API reference

GET/v1/data/google/serp

Google SERP

Return live Google organic results as structured JSON.

Execution model

Live request

Runtime depends on endpoint, target, pagination, rendering mode, and active plan limits.

Credit weight

Live catalog

Current weights are managed from the Data API Weights admin table and shown on pricing before use.

Google SERP Endpoint

Return ranked Google organic results.

Getting Started

Send your API key as a bearer token. Start with the smallest request below.

Return ranked organic results with the smallest request.

curl -X GET "https://api.datablue.dev/v1/data/google/serp?query=best%20crm%20software&country=in&language=en" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "success": true,
  "search_metadata": {
    "id": "serp_01jz7p7z5x8q3w2y9n6c0v4r1a",
    "status": "success",
    "time_taken": 8.142,
    "source": "datablue_google_serp"
  },
  "search_parameters": {
    "query": "best crm software",
    "country": "in",
    "language": "en",
    "page": 1,
    "pages": 1,
    "results": 10,
    "advanced": false,
    "mobile": false,
    "safe_search": false
  },
  "partial": false,
  "requested_pages": 1,
  "successful_pages": 1,
  "failed_pages": 0,
  "result_pages": [
    {
      "page": 1
    }
  ],
  "search_information": {
    "organic_results_count": 2,
    "total_results": "About 42,300,000 results"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Best CRM Software in India",
      "url": "https://example.com/best-crm-software-india",
      "displayed_url": "example.com",
      "snippet": "Compare CRM platforms for sales, support, automation, and reporting."
    }
  ],
  "ads": [],
  "people_also_ask": []
}

Pagination

Fetch Consecutive Pages

Start at page, fetch up to 10 pages, and request up to 100 results per page.

curl -X GET "https://api.datablue.dev/v1/data/google/serp?query=best%20crm%20software&page=1&pages=3&results=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "success": true,
  "search_metadata": {
    "id": "serp_01jz7p7z5x8q3w2y9n6c0v4r1a",
    "status": "success",
    "time_taken": 8.142,
    "source": "datablue_google_serp"
  },
  "search_parameters": {
    "query": "best crm software",
    "country": "in",
    "language": "en",
    "page": 1,
    "pages": 1,
    "results": 10,
    "advanced": false,
    "mobile": false,
    "safe_search": false
  },
  "partial": false,
  "requested_pages": 1,
  "successful_pages": 1,
  "failed_pages": 0,
  "result_pages": [
    {
      "page": 1
    }
  ],
  "search_information": {
    "organic_results_count": 2,
    "total_results": "About 42,300,000 results"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Best CRM Software in India",
      "url": "https://example.com/best-crm-software-india",
      "displayed_url": "example.com",
      "snippet": "Compare CRM platforms for sales, support, automation, and reporting."
    }
  ],
  "ads": [],
  "people_also_ask": []
}

Targeting

Country and Language

Set the Google country, language, domain, and optional canonical location.

curl -X GET "https://api.datablue.dev/v1/data/google/serp?query=coffee%20shops&country=in&language=en&domain=www.google.co.in&location=Chennai%2CTamil%20Nadu%2CIndia" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "success": true,
  "search_metadata": {
    "id": "serp_01jz7p7z5x8q3w2y9n6c0v4r1a",
    "status": "success",
    "time_taken": 8.142,
    "source": "datablue_google_serp"
  },
  "search_parameters": {
    "query": "best crm software",
    "country": "in",
    "language": "en",
    "page": 1,
    "pages": 1,
    "results": 10,
    "advanced": false,
    "mobile": false,
    "safe_search": false
  },
  "partial": false,
  "requested_pages": 1,
  "successful_pages": 1,
  "failed_pages": 0,
  "result_pages": [
    {
      "page": 1
    }
  ],
  "search_information": {
    "organic_results_count": 2,
    "total_results": "About 42,300,000 results"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Best CRM Software in India",
      "url": "https://example.com/best-crm-software-india",
      "displayed_url": "example.com",
      "snippet": "Compare CRM platforms for sales, support, automation, and reporting."
    }
  ],
  "ads": [],
  "people_also_ask": []
}

Encoded Location

Send uule when your application already has an encoded Google location.

curl -X GET "https://api.datablue.dev/v1/data/google/serp?query=coffee%20shops&uule=w%2BCAIQICImQ2hlbm5haSxUYW1pbCBOYWR1LEluZGlh" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "success": true,
  "search_metadata": {
    "id": "serp_01jz7p7z5x8q3w2y9n6c0v4r1a",
    "status": "success",
    "time_taken": 8.142,
    "source": "datablue_google_serp"
  },
  "search_parameters": {
    "query": "best crm software",
    "country": "in",
    "language": "en",
    "page": 1,
    "pages": 1,
    "results": 10,
    "advanced": false,
    "mobile": false,
    "safe_search": false
  },
  "partial": false,
  "requested_pages": 1,
  "successful_pages": 1,
  "failed_pages": 0,
  "result_pages": [
    {
      "page": 1
    }
  ],
  "search_information": {
    "organic_results_count": 2,
    "total_results": "About 42,300,000 results"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Best CRM Software in India",
      "url": "https://example.com/best-crm-software-india",
      "displayed_url": "example.com",
      "snippet": "Compare CRM platforms for sales, support, automation, and reporting."
    }
  ],
  "ads": [],
  "people_also_ask": []
}

Search Controls

Device and Filters

Choose mobile rendering, SafeSearch, and a relative time window.

curl -X GET "https://api.datablue.dev/v1/data/google/serp?query=AI%20regulation&mobile=true&safe_search=true&time_range=week" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "success": true,
  "search_metadata": {
    "id": "serp_01jz7p7z5x8q3w2y9n6c0v4r1a",
    "status": "success",
    "time_taken": 8.142,
    "source": "datablue_google_serp"
  },
  "search_parameters": {
    "query": "best crm software",
    "country": "in",
    "language": "en",
    "page": 1,
    "pages": 1,
    "results": 10,
    "advanced": false,
    "mobile": false,
    "safe_search": false
  },
  "partial": false,
  "requested_pages": 1,
  "successful_pages": 1,
  "failed_pages": 0,
  "result_pages": [
    {
      "page": 1
    }
  ],
  "search_information": {
    "organic_results_count": 2,
    "total_results": "About 42,300,000 results"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Best CRM Software in India",
      "url": "https://example.com/best-crm-software-india",
      "displayed_url": "example.com",
      "snippet": "Compare CRM platforms for sales, support, automation, and reporting."
    }
  ],
  "ads": [],
  "people_also_ask": []
}

Cache and Debug

Bypass cache for a fresh run; request diagnostics only while developing.

curl -X GET "https://api.datablue.dev/v1/data/google/serp?query=AI%20regulation&no_cache=true&debug=true" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "success": true,
  "search_metadata": {
    "id": "serp_01jz7p7z5x8q3w2y9n6c0v4r1a",
    "status": "success",
    "time_taken": 8.142,
    "source": "datablue_google_serp"
  },
  "search_parameters": {
    "query": "best crm software",
    "country": "in",
    "language": "en",
    "page": 1,
    "pages": 1,
    "results": 10,
    "advanced": false,
    "mobile": false,
    "safe_search": false
  },
  "partial": false,
  "requested_pages": 1,
  "successful_pages": 1,
  "failed_pages": 0,
  "result_pages": [
    {
      "page": 1
    }
  ],
  "search_information": {
    "organic_results_count": 2,
    "total_results": "About 42,300,000 results"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Best CRM Software in India",
      "url": "https://example.com/best-crm-software-india",
      "displayed_url": "example.com",
      "snippet": "Compare CRM platforms for sales, support, automation, and reporting."
    }
  ],
  "ads": [],
  "people_also_ask": []
}

Response

Read organic_results.

Error Handling

Handle 401 for authentication, 422 for invalid input, 429 for limits, and retry only transient failures.

Parameters

NameTypeRequirementDescription
querystringRequiredSearch query (1-2048 characters).
countrystringOptionalCountry to search from; results follow that market. Country-level only. Examples: us, in, gb, ae, sa, sg.
languagestringOptionalGoogle hl language code. Accepted for compatibility; not applied by the current search source.
domainstringOptionalOptional Google domain. Accepted for compatibility; not applied by the current search source.
pagenumberOptionalStarting Google page, 1-indexed. Use page=2 with pages=1 to fetch only the second Google page.
pagesnumberOptionalConsecutive Google pages to fetch from page (1-10). Example: page=1&pages=3 fetches pages 1, 2, and 3.
resultsnumberOptionalEach page returns up to 10 results; use pages for 20 or 30 total results.
mobilebooleanOptionalDesktop or mobile SERP. Accepted for compatibility; not applied by the current search source.
safe_searchbooleanOptionalGoogle safe search filtering. Accepted for compatibility; not applied by the current search source.
locationstringOptionalCity-level Google location. Accepted for compatibility; not applied by the current search source. Use country.
uulestringOptionalPre-encoded Google uule location. Accepted for compatibility; not applied by the current search source.
time_rangestringOptionalRelative Google time filter ("hour", "day", "week", "month", "year"). Accepted for compatibility; not applied by the current search source.
no_cachebooleanOptionalBypass the rendered SERP cache for this request.
debugbooleanOptionalDeveloper diagnostics for this request. Hidden by default.

Response fields

FieldTypeDescription
successbooleanWhether the request completed successfully.
search_metadataobjectRequest ID, status, source, and total time taken.
search_parametersobjectNormalized query, country, language, page, pages, results, advanced, mobile, and safe_search values used. domain, location, and time_range appear only when you send them.
partialbooleantrue when some pages failed and only the successful pages are included.
requested_pages / successful_pages / failed_pagesnumberPage accounting for the request. Failed pages are not charged.
result_pagesarrayThe Google result pages that contributed rows, e.g. [{ "page": 1 }].
search_informationobjectOrganic result count and total results when Google exposes it.
organic_resultsarrayRanked organic results with position, title, url, displayed_url, and snippet.
errorobjectClean error object returned on failed requests. Failed pages are not charged.

Request and response

curl -X GET "https://api.datablue.dev/v1/data/google/serp?query=best%20crm%20software&country=in&language=en&page=1&pages=1&results=10&mobile=false" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
{
  "success": true,
  "search_metadata": {
    "id": "serp_01jz7p7z5x8q3w2y9n6c0v4r1a",
    "status": "success",
    "time_taken": 8.142,
    "source": "datablue_google_serp"
  },
  "search_parameters": {
    "query": "best crm software",
    "country": "in",
    "language": "en",
    "page": 1,
    "pages": 1,
    "results": 10,
    "advanced": false,
    "mobile": false,
    "safe_search": false
  },
  "partial": false,
  "requested_pages": 1,
  "successful_pages": 1,
  "failed_pages": 0,
  "result_pages": [
    {
      "page": 1
    }
  ],
  "search_information": {
    "organic_results_count": 2,
    "total_results": "About 42,300,000 results"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Best CRM Software in India",
      "url": "https://example.com/best-crm-software-india",
      "displayed_url": "example.com",
      "snippet": "Compare CRM platforms for sales, support, automation, and reporting."
    },
    {
      "position": 2,
      "title": "Top CRM Tools for Growing Businesses",
      "url": "https://example.org/crm-tools",
      "displayed_url": "example.org",
      "snippet": "A practical guide to choosing CRM software for your team."
    }
  ],
  "ads": [],
  "people_also_ask": [],
  "related_searches": [],
  "videos": [],
  "local_results": []
}