Geolocation

Geo parameter usage for Google targets in Web Scraping API

The geo parameter with Google targets can be used in a few different ways:

  1. Target using the full location name (city,region,country) as provided in Google CSV found here:
{
    "target": "google_search",
    "query": "pizza",
    "geo": "London,England,United Kingdom"
}
  1. Target using the state name (state,country). Compatible with the United States, Australia, India, and other nations with federated states:
{
    "target": "google_search",
    "query": "pizza",
    "geo": "Texas,United States"
}
  1. Target using the country name only:
{
    "target": "google_search",
    "query": "pizza",
    "geo": "United Kingdom"
}
  1. Target using ISO country codes:
{
    "target": "google_search",
    "query": "pizza",
    "geo": "GB"
}
  1. Target using coordinates and radius
{
    "target": "google_search",
    "query": "pizza",
    "geo": "lat: 32.4827, lng: -22.9384, rad: 5000"
}
  1. Target using Google's Canonical Location Name or Criteria ID, find a list here:
{
    "target": "google_search",
    "query": "pizza",
    "geo": "1000010"
}

📘

There are exceptions, and the above formats may not work in all situations, in which case you will receive an error message stating that.


Support

Still can't find an answer? Want to say hi? We take pride in our 24/7 customer support. Alternatively, you can reach us via our support email at [email protected].

Feedback

Something's missing? Request an article!
Got feedback? Let us know how we're doing and what can be improved.