Google Maps APIs
Google Maps Search API
The Google Maps Search API allows users to search for locations using keyword, coordinates, and various filters. The API returns relevant location details and map data.
Get Your API Key
Sign in at hasdata.com, go to your account settings, and copy your API key.
All requests must include your key in the x-api-key
header.
Make Your First Request
API Parameters
Parameter | Default Value | Required | Description |
---|---|---|---|
q | Pizza | Yes | Search query term or phrase. |
domain | - | No | Google domain to use. Default is google.com. |
hl | - | No | The two-letter language code for the language you want to use for the search. |
start | - | No | Specifies the result offset for pagination purposes. The offset dictates the number of rows to skip from the beginning of the results. This is useful for accessing subsequent pages of search results. For example, an offset of 0 (the default value) returns the first page of results, 20 returns the second page, 40 returns the third page, and so on. This parameter is especially relevant when used in conjunction with the ‘ll’ parameter for location-based searches. |
ll | @40.7455096,-74.0083012,14z | No | GPS coordinates of the location where the search query is to be performed. This parameter is required if the ‘start’ parameter is present. The format for the ll parameter is @ followed by latitude, longitude, and zoom level, separated by commas. The latitude and longitude should be in decimal degrees, and the zoom level is an integer. Example: @40.7455096,-74.0083012,14z . |