# Google Maps API reference

> Google Maps Platform web services include the Geocoding API, which turns an address into coordinates and a place ID (and back), and the Places API (New) for place search and details. An investigator can use geocoding to place an address on a map and reverse geocoding to find the address at a…

Source: https://osinttools.io/apis/google-maps/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/google-maps/

- Base URL: https://maps.googleapis.com/maps/api
- Authentication: API key in the `key` query parameter. Get a key: https://developers.google.com/maps/documentation/geocoding/get-api-key
- Rate limits: Not stated in the docs read
- Vendor docs: https://developers.google.com/maps/documentation/geocoding

## Overview

Google Maps Platform web services include the Geocoding API, which turns an address into coordinates and a place ID (and back), and the Places API (New) for place search and details. An investigator can use geocoding to place an address on a map and reverse geocoding to find the address at a coordinate.

This reference documents the Geocoding API, at `https://maps.googleapis.com/maps/api/geocode/json`, with your key in the `key` query parameter. HTTPS is required and URLs must stay under 16,384 characters.

The Places API (New) is on a different host (`https://places.googleapis.com/v1`) with the key in the `X-Goog-Api-Key` header and a required `X-Goog-FieldMask` header; for example `POST /v1/places:searchText` with a `textQuery` body and `GET /v1/places/PLACE_ID`. It is not described endpoint by endpoint here. Google also publishes many other web service APIs (Routes, Time Zone, Elevation, Street View Static and others).

## Errors

| Status | Meaning |
| --- | --- |
| 200 | Errors are reported in the status field of the body: ZERO_RESULTS, OVER_QUERY_LIMIT, REQUEST_DENIED, INVALID_REQUEST, UNKNOWN_ERROR |

## Geocoding

### Geocode an address or components into coordinates and a place ID.

`GET /geocode/json`

- Takes: Name
- Footprint: passive (the target is not contacted)

Needs address and/or components. Coordinates are not supported in address; use reverse geocoding for those. formatted_address should not be parsed. The response status field reports the outcome.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `address` | query | string | no | Street address or plus code Example: 1 Example Street, Springfield |
| `components` | query | string | no | Pipe-separated component:value filters; fully restricts results; required when address is omitted Example: country:US|postal_code:00000 |
| `bounds` | query | string | no | Viewport that biases results without restricting them |
| `language` | query | string | no | Language of results Example: en |
| `region` | query | string | no | Two-character ccTLD value that biases results Example: us |
| `extra_computations` | query | string | no | Adds extra data to the response One of: ADDRESS_DESCRIPTORS, BUILDING_AND_ENTRANCES |

Response fields:

- `status` (string): OK, ZERO_RESULTS, OVER_QUERY_LIMIT, REQUEST_DENIED, INVALID_REQUEST or UNKNOWN_ERROR
- `error_message` (string): Present on some non-OK responses
- `results[].formatted_address` (string): Human-readable address
- `results[].address_components[]` (object): Parts with long_name, short_name and types
- `results[].geometry.location.lat` (number): Latitude
- `results[].geometry.location.lng` (number): Longitude
- `results[].geometry.location_type` (string): Precision of the result
- `results[].place_id` (string): Place ID usable with other Google APIs
- `results[].types[]` (string): Feature types
- `results[].partial_match` (boolean): Present for partial matches

```bash
curl 'https://maps.googleapis.com/maps/api/geocode/json?key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "OK",
  "results": [
    {
      "formatted_address": "1 Example Street, Springfield, USA",
      "geometry": {
        "location": {
          "lat": 37,
          "lng": -95
        },
        "location_type": "ROOFTOP"
      },
      "place_id": "EXAMPLE_PLACE_ID",
      "types": [
        "street_address"
      ]
    }
  ]
}
```

### Reverse geocode a latitude and longitude into addresses.

`GET /geocode/json?latlng=37.0,-95.0`

- Footprint: passive (the target is not contacted)

Same URL as forward geocoding with the latlng parameter; no space between the values. result_type and location_type are post-search filters; using both returns only results matching both.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `latlng` | query | string | yes | Latitude,longitude with no space Example: 37.0,-95.0 |
| `language` | query | string | no | Language of results Example: en |
| `result_type` | query | string | no | Pipe-separated address types to keep Example: street_address |
| `location_type` | query | string | no | Pipe-separated location types to keep One of: ROOFTOP, RANGE_INTERPOLATED, GEOMETRIC_CENTER, APPROXIMATE |
| `region` | query | string | no | Two-character ccTLD region code Example: us |
| `extra_computations` | query | string | no | Adds extra data to the response One of: ADDRESS_DESCRIPTORS, BUILDING_AND_ENTRANCES |

Response fields:

- `status` (string): OK, ZERO_RESULTS, OVER_QUERY_LIMIT, REQUEST_DENIED, INVALID_REQUEST or UNKNOWN_ERROR
- `results[].formatted_address` (string): Human-readable address
- `results[].address_components[]` (object): Parts with long_name, short_name and types
- `results[].geometry.location.lat` (number): Latitude
- `results[].geometry.location.lng` (number): Longitude
- `results[].place_id` (string): Place ID
- `results[].types[]` (string): Address types
- `plus_code.global_code` (string): Plus code, not always returned

```bash
curl 'https://maps.googleapis.com/maps/api/geocode/json?latlng=37.0,-95.0&latlng=37.0%2C-95.0&key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "OK",
  "results": [
    {
      "formatted_address": "1 Example Street, Springfield, USA",
      "geometry": {
        "location": {
          "lat": 37,
          "lng": -95
        }
      },
      "place_id": "EXAMPLE_PLACE_ID",
      "types": [
        "street_address"
      ]
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
