Google Search API
  1. Endpoints
Google Search API
  • Parameter References
    • Google Domain Reference
    • Google gl Parameter Reference
    • Google hl Parameter Reference
    • Google cr Parameter Reference
    • Google lr Parameter Reference
  • Endpoints
    • /location
      GET
    • /search
      GET
  1. Endpoints

/location

GET
/location

Request

Authorization
Add parameter in header
x-rapidapi-key
Example:
x-rapidapi-key: ********************
Query Params
location_name
string 
required
Parameter restricts your search to locations that contain the supplied string. (e.g., London will find 'London Borough of Lambeth,England,United Kingdom', 'London,England,United Kingdom', etc.)
Example:
London
country_code
string 
optional
2 Digits Country Code to search location in a country only.
Example:
GB

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://g-search.p.rapidapi.com/location?location_name=London&country_code=GB' \
--header 'x-rapidapi-key;'

Responses

🟢200OK
application/json
Body
status
integer 
required
data
object 
required
locations
array [object {5}] 
required
Example
{
  "status": 200,
  "data": {
    "locations": [
      {
        "location_name": "London Borough of Lambeth,England,United Kingdom",
        "location_type": "Municipality",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIwTG9uZG9uIEJvcm91Z2ggb2YgTGFtYmV0aCxFbmdsYW5kLFVuaXRlZCBLaW5nZG9t",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London,England,United Kingdom",
        "location_type": "City",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIdTG9uZG9uLEVuZ2xhbmQsVW5pdGVkIEtpbmdkb20=",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Colney,England,United Kingdom",
        "location_type": "City",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIkTG9uZG9uIENvbG5leSxFbmdsYW5kLFVuaXRlZCBLaW5nZG9t",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "Londonderry,Northern Ireland,United Kingdom",
        "location_type": "City",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIrTG9uZG9uZGVycnksTm9ydGhlcm4gSXJlbGFuZCxVbml0ZWQgS2luZ2RvbQ==",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "Greater London,England,United Kingdom",
        "location_type": "County",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIlR3JlYXRlciBMb25kb24sRW5nbGFuZCxVbml0ZWQgS2luZ2RvbQ==",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "City of London,England,United Kingdom",
        "location_type": "County",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIlQ2l0eSBvZiBMb25kb24sRW5nbGFuZCxVbml0ZWQgS2luZ2RvbQ==",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Gatwick Airport,England,United Kingdom",
        "location_type": "Airport",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICItTG9uZG9uIEdhdHdpY2sgQWlycG9ydCxFbmdsYW5kLFVuaXRlZCBLaW5nZG9t",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Luton Airport,England,United Kingdom",
        "location_type": "Airport",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIrTG9uZG9uIEx1dG9uIEFpcnBvcnQsRW5nbGFuZCxVbml0ZWQgS2luZ2RvbQ==",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Southend Airport,England,United Kingdom",
        "location_type": "Airport",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIuTG9uZG9uIFNvdXRoZW5kIEFpcnBvcnQsRW5nbGFuZCxVbml0ZWQgS2luZ2RvbQ==",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Stansted Airport,England,United Kingdom",
        "location_type": "Airport",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIuTG9uZG9uIFN0YW5zdGVkIEFpcnBvcnQsRW5nbGFuZCxVbml0ZWQgS2luZ2RvbQ==",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London TV Region,England,United Kingdom",
        "location_type": "TV Region",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICInTG9uZG9uIFRWIFJlZ2lvbixFbmdsYW5kLFVuaXRlZCBLaW5nZG9t",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Wandsworth,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIzTG9uZG9uIEJvcm91Z2ggb2YgV2FuZHN3b3J0aCxFbmdsYW5kLFVuaXRlZCBLaW5nZG9t",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Bromley,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIwTG9uZG9uIEJvcm91Z2ggb2YgQnJvbWxleSxFbmdsYW5kLFVuaXRlZCBLaW5nZG9t",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Richmond upon Thames,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICI9TG9uZG9uIEJvcm91Z2ggb2YgUmljaG1vbmQgdXBvbiBUaGFtZXMsRW5nbGFuZCxVbml0ZWQgS2luZ2RvbQ==",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Southwark,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIyTG9uZG9uIEJvcm91Z2ggb2YgU291dGh3YXJrLEVuZ2xhbmQsVW5pdGVkIEtpbmdkb20=",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Lewisham,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIxTG9uZG9uIEJvcm91Z2ggb2YgTGV3aXNoYW0sRW5nbGFuZCxVbml0ZWQgS2luZ2RvbQ==",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Hackney,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIwTG9uZG9uIEJvcm91Z2ggb2YgSGFja25leSxFbmdsYW5kLFVuaXRlZCBLaW5nZG9t",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Haringey,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIxTG9uZG9uIEJvcm91Z2ggb2YgSGFyaW5nZXksRW5nbGFuZCxVbml0ZWQgS2luZ2RvbQ==",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Islington,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIyTG9uZG9uIEJvcm91Z2ggb2YgSXNsaW5ndG9uLEVuZ2xhbmQsVW5pdGVkIEtpbmdkb20=",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Tower Hamlets,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICI2TG9uZG9uIEJvcm91Z2ggb2YgVG93ZXIgSGFtbGV0cyxFbmdsYW5kLFVuaXRlZCBLaW5nZG9t",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Waltham Forest,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICI3TG9uZG9uIEJvcm91Z2ggb2YgV2FsdGhhbSBGb3Jlc3QsRW5nbGFuZCxVbml0ZWQgS2luZ2RvbQ==",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Camden,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIvTG9uZG9uIEJvcm91Z2ggb2YgQ2FtZGVuLEVuZ2xhbmQsVW5pdGVkIEtpbmdkb20=",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Newham,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICIvTG9uZG9uIEJvcm91Z2ggb2YgTmV3aGFtLEVuZ2xhbmQsVW5pdGVkIEtpbmdkb20=",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      },
      {
        "location_name": "London Borough of Hammersmith and Fulham,England,United Kingdom",
        "location_type": "District",
        "country_code": "GB",
        "country_name": "United Kingdom",
        "search_parameters": {
          "uule": "w+CAIQICITG9uZG9uIEJvcm91Z2ggb2YgSGFtbWVyc21pdGggYW5kIEZ1bGhhbSxFbmdsYW5kLFVuaXRlZCBLaW5nZG9t",
          "google_domain": "google.co.uk",
          "gl": "UK",
          "hl": "en"
        }
      }
    ]
  }
}
Modified at 2024-07-29 13:42:03
Previous
Google lr Parameter Reference
Next
/search
Built with