GET /v1/search/google

Google search API: live organic results by query, country and language

Send a query in q, and optionally depth, a market (gl or location_code, the US when you give neither), language_code and time_range, and get the live Google organic results in the DataForSEO serp/google/organic/live/regular shape. A depth above 10 pages through the results, and each item carries the page it came from. Add mode=job to get a crawl job back at once and read the same result from its results_url when it is ready. Set resolve_links=false to keep the Google redirect links instead of resolving them, which answers about four times faster. A blocked search answers 502 and is not billed.

Price
$0.0030 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/search/google?q=best%20korean%20skincare%20creators%20instagram&depth=20&location_code=2840&gl=us&language_code=en&mode=job&time_range=week&resolve_links=false' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/search/google",
    params={
        "q": "best korean skincare creators instagram",
        "depth": "20",
        "location_code": "2840",
        "gl": "us",
        "language_code": "en",
        "mode": "job",
        "time_range": "week",
        "resolve_links": "false",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
q requiredquerystringThe search query, exactly as you would type it into the engine. Example best korean skincare creators instagram.
depth queryintegerTotal organic results to return. Values above 10 paginate across result pages; each item carries the page it came from. Default 10. Example 20.
location_code query2032 | 2036 | 2040 | 2056 | 2076 | 2124 | 2152 | 2158 | 2170 | 2208 | 2246 | 2250 | 2276 | 2300 | 2344 | 2356 | 2360 | 2372 | 2380 | 2392 | 2410 | 2458 | 2484 | 2528 | 2554 | 2578 | 2608 | 2616 | 2620 | 2682 | 2702 | 2704 | 2710 | 2724 | 2752 | 2756 | 2764 | 2784 | 2792 | 2818 | 2826 | 2840Market, as a DataForSEO location code (a Google Ads geo-target criterion id). With neither this nor gl, a Google search searches the United States (2840), as DataForSEO does. Use gl instead if you prefer country codes. Google searches that market. Bing does not: it searches in the country it sees the request come from, which the result names in served_country. Names for every code: GET /v1/search/locations. Example 2840.
gl queryae | ar | at | au | be | br | ca | ch | cl | co | de | dk | eg | es | fi | fr | gb | gr | hk | id | ie | in | it | jp | kr | mx | my | nl | no | nz | ph | pl | pt | sa | se | sg | th | tr | tw | us | vn | zaMarket as a 2-letter country code — the friendlier alternative to location_code. Give one or the other; if you give both they must name the same market or the call is a 400. Omit both and Google searches the United States. Bing does not search that market (see location_code). Example us.
language_code queryar | da | de | el | en | es | fi | fr | hi | id | it | ja | ko | ms | nl | no | pl | pt | ru | sv | th | tr | vi | zh | zh-twResult language, sent as Google's hl and Bing's setlang. Defaults to en. A code outside this list is rejected rather than forwarded, so you never get a market nobody serves. Names for every code: GET /v1/search/languages. Default en. Example en.
mode querysync | jobsync answers the search in this request, which waits for the whole crawl: a served Google search takes about 30 s and a blocked one up to 60 s. job answers 202 at once with a crawl job. Poll its status_url until status is ready, then read results_url, whose results[0].items[0] is the same DataForSEO envelope a sync call answers. A job bills the same price once, when the search succeeds, and a blocked search fails the job with no charge. Default sync. Example job.
time_range queryhour | day | week | month | yearOnly results from the past hour, day, week, month or year, sent as Google's tbs=qdr:. Omit it for results from any time. Google only; /v1/search/bing answers it with a 400. Example week.
resolve_links querybooleanWhether to resolve each result's Google redirect link to its real destination. Defaults to true. With false each organic item keeps Google's redirect link in url, with url_resolved: false, while domain, breadcrumb and every other field stay; a depth-10 search then took a median 1.5 s on staging on 2026-11-26, against 6.7 s with links resolved. Same price either way. Google only; /v1/search/bing answers it with a 400. Default true. Example false.

Example response

The example response of the API reference, with lists cut to their first 3 items and long text shortened.

json
{
  "data": {
    "version": "0.1.20260806",
    "status_code": 20000,
    "status_message": "Ok.",
    "time": "5.3838 sec.",
    "cost": 0,
    "tasks_count": 1,
    "tasks_error": 0,
    "tasks": [
      {
        "id": "9358b848-ec6b-44cf-a59b-8e4c102d856c",
        "status_code": 20000,
        "status_message": "Ok.",
        "time": "5.3838 sec.",
        "cost": 0,
        "result_count": 1,
        "path": [
          "v3",
          "serp",
          "google"
        ],
        "data": {
          "api": "serp",
          "function": "live",
          "se": "google",
          "se_type": "organic",
          "keyword": "best korean skincare creators instagram",
          "location_code": 2840,
          "language_code": "en",
          "device": "desktop",
          "os": "windows",
          "depth": 20,
          "time_range": "week"
        },
        "result": [
          {
            "keyword": "best korean skincare creators instagram",
            "type": "organic",
            "se_domain": "google.com",
            "location_code": 2840,
            "language_code": "en",
            "served_country": null,
            "check_url": "https://www.google.com/search?q=best+korean+skincare+creators+instagram&hl=en&gl=us&tbs=qdr:w",
            "datetime": "2026-11-25 18:58:13 +00:00",
            "spell": null,
            "refinement_chips": null,
            "item_types": [
              "organic"
            ],
            "se_results_count": 3,
            "pages_count": 1,
            "items_count": 3,
            "items": [
              {
                "type": "organic",
                "rank_group": 1,
                "rank_absolute": 1,
                "page": 1,
                "domain": "instagram.com",
                "title": "🇰🇷 Curious about the K-beauty everyone is talking ...",
                "description": "Curious about the K-beauty everyone is talking about? As a Korean woman, I'm excited to share the Korean skincare products I personally use and LOVE! ✨Read more",
                "url": "https://www.instagram.com/reel/DgB1-i3zBzj/",
                "breadcrumb": "instagram.com › reel › DgB1-i3zBzj",
                "url_resolved": true
              },
              {
                "type": "organic",
                "rank_group": 2,
                "rank_absolute": 2,
                "page": 1,
                "domain": "instagram.com",
                "title": "I'd also love to share more Korean beauty tips, skincare ...",
                "description": "A little Korean skincare knowledge-sharing session with my girls! After discovering so many amazing Korean beauty brands in Seoul, I had to bring ...Read more",
                "url": "https://www.instagram.com/reel/DgF2IfJNwmz/",
                "breadcrumb": "instagram.com › reel › DgF2IfJNwmz",
                "url_resolved": true
              }
            ]
          }
        ]
      }
    ]
  },
  "meta": {
    "cost": "$0.0030",
    "balance": "$326.8420",
    "request_id": "req_9cb308b64f3331fa068837f4acd205e5"
  }
}

How it works

Live Google organic SERP in the DataForSEO serp/google/organic/live/regular response shape (data.tasks[].result[].items), with pagination: depth > 10 fans the query across result pages and each item carries its page.

A blocked engine is a 502 upstream_error, never an empty result set, and a failed request is never billed. Search-engine chrome (help pages, redirect wrappers) is stripped, and wrapped result links are resolved to their real destination.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
429Crawler acquisition capacity is exhausted. Retry after the response delay; you are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.