# OpenAPI reference

Every endpoint in the what3words OpenAPI definition, with its parameters, responses, examples and schemas. The guide to each one is in the [API reference](https://developer.what3words.com/public-api/docs).

Section: [API & SDK Reference](https://developer.what3words.com/docs/api-sdk-reference.md)

Source: https://developer.what3words.com/public-api/openapi

OpenAPI: [openapi.yaml](https://developer.what3words.com/public-api/openapi.yaml) · [openapi.json](https://developer.what3words.com/public-api/openapi.json) · [Postman collection](https://developer.what3words.com/public-api/what3words.postman_collection.json)

The what3words API provides a simple and powerful interface to interact with the what3words addressing system. 
It allows you to convert between what3words addresses and geographic coordinates, validate and autocorrect user input, 
and retrieve information about supported languages and the what3words grid.

Key features include:
- **Convert to what3words address**: Convert latitude and longitude coordinates into a what3words address.
- **Convert to coordinates**: Convert a what3words address into latitude and longitude coordinates.
- **AutoSuggest**: Suggest valid what3words addresses based on partial or incorrect input, with options to prioritize results by location or restrict results to specific areas. 
- **AutoSuggest with Coordinates**: Similar to AutoSuggest, but returns coordinates in the response. This endpoint requires special permissions, please contact [support@what3words.com](mailto:support@what3words.com) for more information.
- **Grid Section**: Retrieve a section of the what3words grid for a specified bounding box, useful for map visualizations.
- **Available Languages**: Get a list of all supported languages, including language codes (including script-specific variants) and native names.

For more details, visit the [what3words Public API Documentation](https://developer.what3words.com/public-api/docs#overview).

**Additional resources:**
- [API Authentication](https://accounts.what3words.com/select-plan?referrer=/public-api/docs)
- [Error Codes](https://developer.what3words.com/public-api/docs#error-handling)
- [Supported Languages](https://developer.what3words.com/public-api/docs#available-languages)
- [Rate Limits](https://developer.what3words.com/public-api/docs#rate-limits)
- [API Terms of Use](https://developer.what3words.com/public-api/docs#terms-of-use)
- [API Pricing](https://accounts.what3words.com/select-plan?referrer=/public-api/docs)
- [Postman Collection](https://openapi.what3words.com/what3words.postman_collection.json)
- [Blog: Minimum word and address lengths (code points vs characters)](https://what3words.com/news/blog/minimum-word-and-address-lengths-in-what3words-code-points-vs-characters)
- [Blog: Understanding locales in what3words](https://what3words.com/news/blog/understanding-locales-in-what3words)
- [Blog: Demystifying the alias parameter](https://what3words.com/news/blog/demystifying-the-alias-parameter-in-what3words-address-urls)
- [Blog: LTR and RTL scripts](https://what3words.com/news/blog/how-what3words-addresses-work-in-left-to-right-ltr-and-right-to-left-rtl-scripts)
- [Blog: Secondary words across languages](https://what3words.com/news/blog/how-what3words-supports-natural-variants-across-languages-using-secondary-words)
- [Blog: Understanding the what3words regex](https://what3words.com/news/general/understanding-the-what3words-regex-a-human-friendly-guide)

## Endpoints

| Endpoint | Name | Description |
| --- | --- | --- |
| [`GET /convert-to-3wa`](https://developer.what3words.com/public-api/openapi#convertTo3wa) | Convert to what3words address | This function will convert a latitude and longitude to a what3words address, in the language of your choice. |
| [`GET /convert-to-coordinates`](https://developer.what3words.com/public-api/openapi#convertToCoordinates) | Convert to coordinates | This function converts a what3words address to a latitude and longitude. |
| [`GET /autosuggest`](https://developer.what3words.com/public-api/openapi#autosuggest) | AutoSuggest | AutoSuggest can take a slightly incorrect what3words address and suggest a list of valid what3words addresses. |
| [`GET /autosuggest-with-coordinates`](https://developer.what3words.com/public-api/openapi#autosuggestWithCoordinates) | AutoSuggest with Coordinates | Similar to the AutoSuggest endpoint, but returns coordinates in the response. |
| [`GET /grid-section`](https://developer.what3words.com/public-api/openapi#gridSection) | Grid section | Returns a section of the 3m x 3m what3words grid for a bounding box. |
| [`GET /available-languages`](https://developer.what3words.com/public-api/openapi#availableLanguages) | Available languages | Retrieves all available what3words address languages and locale/script variants, including language code, English name and native name. |

## Authentication

Every request needs an API key, sent as the `key` query parameter or the `X-Api-Key` header. [Get your free API key.](https://accounts.what3words.com/select-plan?referrer=/public-api/openapi)

| Scheme | Where | Name | Description |
| --- | --- | --- | --- |
| ApiKeyAuth | query | `key` | API key for authentication. Provide it as query parameter `key`; `X-Api-Key` header is also supported. |
| ApiKeyHeader | header | `X-Api-Key` | API key for authentication. Provide it as query parameter `key`; `X-Api-Key` header is also supported. |

## Errors

Errors return an HTTP status and a JSON body with a stable `code` and a readable `message`. Use the code to decide how to handle the error. See the [error handling guide](https://developer.what3words.com/public-api/docs#error-handling) for an example.

### Error codes

| Code | HTTP status | Returned by |
| --- | --- | --- |
| `MissingWords` | 400 | `/convert-to-coordinates` |
| `BadWords` | 400 | `/convert-to-coordinates` |
| `BadFormat` | 400 | `/convert-to-3wa`, `/convert-to-coordinates`, `/grid-section` |
| `BadCoordinates` | 400 | `/convert-to-3wa` |
| `BadBoundingBox` | 400 | `/grid-section` |
| `BadBoundingBoxTooBig` | 400 | `/grid-section` |
| `BadFocus` | 400 | `/autosuggest`, `/autosuggest-with-coordinates` |
| `BadClipToCountry` | 400 | `/autosuggest`, `/autosuggest-with-coordinates` |
| `BadClipToBoundingBox` | 400 | `/autosuggest`, `/autosuggest-with-coordinates` |
| `BadClipToCircle` | 400 | `/autosuggest`, `/autosuggest-with-coordinates` |
| `BadClipToPolygon` | 400 | `/autosuggest`, `/autosuggest-with-coordinates` |
| `MissingLanguage` | 400 | `/autosuggest`, `/autosuggest-with-coordinates` |
| `BadLanguage` | 400 | `/convert-to-3wa`, `/autosuggest`, `/autosuggest-with-coordinates` |
| `InvalidKey` | 401 | `/convert-to-3wa`, `/convert-to-coordinates`, `/autosuggest`, `/autosuggest-with-coordinates`, `/grid-section`, `/available-languages` |
| `InvalidKeyNoPermissions` | 401 | `/autosuggest-with-coordinates` |
| `BadInputType` | 400 | `/autosuggest`, `/autosuggest-with-coordinates` |
| `MissingInput` | 400 | `/autosuggest`, `/autosuggest-with-coordinates` |
| `MissingKey` | 401 | `/convert-to-3wa`, `/convert-to-coordinates`, `/autosuggest`, `/autosuggest-with-coordinates`, `/grid-section`, `/available-languages` |
| `DuplicateParameter` | 400 | `/convert-to-3wa`, `/convert-to-coordinates`, `/autosuggest`, `/autosuggest-with-coordinates`, `/grid-section` |
| `BadNResults` | 400 | `/autosuggest`, `/autosuggest-with-coordinates` |
| `BadNFocusResults` | 400 | `/autosuggest`, `/autosuggest-with-coordinates` |
| `BadInput` | 400 | `/autosuggest`, `/autosuggest-with-coordinates` |

## Convert to what3words address

`GET https://api.what3words.com/v3/convert-to-3wa`

This function will convert a latitude and longitude to a what3words address, in the language of your choice. It also returns country, the bounds of the grid square, a nearby place (such as a local town) and a link to our map site.

### Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `key` | query | string | optional | A valid API key. Provide it as query parameter `key`; `X-Api-Key` header is also supported. |
| `coordinates` | query | string | required | Coordinates as a comma separated string of latitude and longitude. Example `coordinates=51.521251,-0.203586`. |
| `language` | query | string | optional | A supported what3words language code from `/available-languages`. You can pass base language codes (for example `fr`) or script-specific codes where available (for example `mn_la`, `zh_tr`, `oo_la`). Defaults to `en` (English) if not specified. Default `en`. Example `language=fr`. |
| `format` | query | string | optional | Return data format type; can be either `json` (the default) or `geojson`. One of `json`, `geojson`. Default `json`. |
| `locale` | query | string | optional | Optional locale/script-specific code. Can be passed on its own. If provided with `language`, both values must be identical strings (for example `language=mn_la&locale=mn_la`). Example `locale=mn_la`. |

### Example request

**cURL**

```shellscript
curl --request GET \
  --url 'https://api.what3words.com/v3/convert-to-3wa?coordinates=51.520847,-0.195521&key=YOUR_API_KEY'
```

**JavaScript**

```javascript
const params = new URLSearchParams({
  coordinates: '51.520847,-0.195521',
  key: 'YOUR_API_KEY',
});
const response = await fetch(`https://api.what3words.com/v3/convert-to-3wa?${params}`);
const data = await response.json();
console.log(data);
```

**Python**

```python
import requests

response = requests.get(
    "https://api.what3words.com/v3/convert-to-3wa",
    params={"coordinates": "51.520847,-0.195521", "key": "YOUR_API_KEY"},
)
print(response.json())
```

### Example result

Status: `200 OK`

**JSON**

```json
{
  "country": "GB",
  "square": {
    "southwest": {
      "lng": -0.195543,
      "lat": 51.520833
    },
    "northeast": {
      "lng": -0.195499,
      "lat": 51.52086
    }
  },
  "nearestPlace": "Bayswater, London",
  "coordinates": {
    "lng": -0.195521,
    "lat": 51.520847
  },
  "words": "filled.count.soap",
  "language": "en",
  "map": "https://w3w.co/filled.count.soap"
}
```

**GeoJSON**

```json
{
  "features": [
    {
      "bbox": [
        -0.195543,
        51.520833,
        -0.195499,
        51.52086
      ],
      "geometry": {
        "coordinates": [
          -0.195521,
          51.520847
        ],
        "type": "Point"
      },
      "type": "Feature",
      "properties": {
        "country": "GB",
        "nearestPlace": "Bayswater, London",
        "words": "filled.count.soap",
        "language": "en",
        "map": "https://w3w.co/filled.count.soap"
      }
    }
  ],
  "type": "FeatureCollection"
}
```

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `country` | string | The country in which the what3words address is located, as an ISO 3166-1 alpha-2 country code |
| `square` | object (Square) |  |
| `square.southwest` | object (Coordinates) |  |
| `square.southwest.lat` | number | Latitude |
| `square.southwest.lng` | number | Longitude |
| `square.northeast` | object (Coordinates) |  |
| `square.northeast.lat` | number | Latitude |
| `square.northeast.lng` | number | Longitude |
| `nearestPlace` | string | The nearest place to the what3words address |
| `coordinates` | object (Coordinates) |  |
| `coordinates.lat` | number | Latitude |
| `coordinates.lng` | number | Longitude |
| `words` | string | The what3words address |
| `language` | string | The language of the what3words address |
| `locale` | string | The locale of the what3words address, if returned |
| `map` | string | URL to view the what3words address on the what3words map |

### Responses

**200** Successful conversion to what3words address (application/json). Schema: ConvertTo3waResponse

**400** Bad request (application/json). Schema: ErrorResponse

**BadLanguage**

```json
{
  "error": {
    "code": "BadLanguage",
    "message": "language must be a supported what3words language code, such as 'en', 'fr' or 'mn_la'"
  }
}
```

**BadCoordinates**

```json
{
  "error": {
    "code": "BadCoordinates",
    "message": "failed to parse one of the coordinates as a valid decimal number"
  }
}
```

**BadFormat**

```json
{
  "error": {
    "code": "BadFormat",
    "message": "Format must be one of json,geojson"
  }
}
```

**BadLanguageLocaleMismatch**

```json
{
  "error": {
    "code": "BadLanguage",
    "message": "language and locale must not be different"
  }
}
```

**DuplicateParameter**

```json
{
  "error": {
    "code": "DuplicateParameter",
    "message": "Duplicate parameter 'coordinates'. Please only pass in one of each parameter."
  }
}
```

**401** Unauthorized - Invalid API key (application/json). Schema: ErrorResponse

**InvalidKey**

```json
{
  "error": {
    "code": "InvalidKey",
    "message": "Authentication failed; invalid API key"
  }
}
```

**MissingKey**

```json
{
  "error": {
    "code": "MissingKey",
    "message": "Authentication failed; missing required API key parameter or header"
  }
}
```

[Read the guide](https://developer.what3words.com/public-api/docs#convert-to-3wa) · [Try it in the Playground](https://developer.what3words.com/public-api/playground#convert-to-3wa)

## Convert to coordinates

`GET https://api.what3words.com/v3/convert-to-coordinates`

This function converts a what3words address to a latitude and longitude. It also returns country, the bounds of the grid square, a nearest place (such as a local town) and a link to our map site.

### Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `key` | query | string | optional | A valid API key. Provide it as query parameter `key`; `X-Api-Key` header is also supported. |
| `words` | query | string | required | A what3words address. Input parsing is case-insensitive, accepts an optional leading `///`, and accepts supported dot-like delimiters (. ｡ 。 ･ ・ ︒ ។ ։ ။ ۔ ። ।). Example `words=filled.count.soap`. |
| `format` | query | string | optional | Return data format type; can be either `json` (the default) or `geojson`. One of `json`, `geojson`. Default `json`. |

### Example request

**cURL**

```shellscript
curl --request GET \
  --url 'https://api.what3words.com/v3/convert-to-coordinates?words=filled.count.soap&key=YOUR_API_KEY'
```

**JavaScript**

```javascript
const params = new URLSearchParams({
  words: 'filled.count.soap',
  key: 'YOUR_API_KEY',
});
const response = await fetch(`https://api.what3words.com/v3/convert-to-coordinates?${params}`);
const data = await response.json();
console.log(data);
```

**Python**

```python
import requests

response = requests.get(
    "https://api.what3words.com/v3/convert-to-coordinates",
    params={"words": "filled.count.soap", "key": "YOUR_API_KEY"},
)
print(response.json())
```

### Example result

Status: `200 OK`

**JSON**

```json
{
  "country": "GB",
  "square": {
    "southwest": {
      "lng": -0.195543,
      "lat": 51.520833
    },
    "northeast": {
      "lng": -0.195499,
      "lat": 51.52086
    }
  },
  "nearestPlace": "Bayswater, London",
  "coordinates": {
    "lng": -0.195521,
    "lat": 51.520847
  },
  "words": "filled.count.soap",
  "language": "en",
  "map": "https://w3w.co/filled.count.soap"
}
```

**GeoJSON**

```json
{
  "features": [
    {
      "bbox": [
        -0.195543,
        51.520833,
        -0.195499,
        51.52086
      ],
      "geometry": {
        "coordinates": [
          -0.195521,
          51.520847
        ],
        "type": "Point"
      },
      "type": "Feature",
      "properties": {
        "country": "GB",
        "nearestPlace": "Bayswater, London",
        "words": "filled.count.soap",
        "language": "en",
        "map": "https://w3w.co/filled.count.soap"
      }
    }
  ],
  "type": "FeatureCollection"
}
```

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `country` | string | The country in which the what3words address is located, as an ISO 3166-1 alpha-2 country code |
| `square` | object (Square) |  |
| `square.southwest` | object (Coordinates) |  |
| `square.southwest.lat` | number | Latitude |
| `square.southwest.lng` | number | Longitude |
| `square.northeast` | object (Coordinates) |  |
| `square.northeast.lat` | number | Latitude |
| `square.northeast.lng` | number | Longitude |
| `nearestPlace` | string | The nearest place to the what3words address |
| `coordinates` | object (Coordinates) |  |
| `coordinates.lat` | number | Latitude |
| `coordinates.lng` | number | Longitude |
| `words` | string | The what3words address |
| `language` | string | The language of the what3words address |
| `locale` | string | The locale of the what3words address, if returned |
| `map` | string | URL to view the what3words address on the what3words map |

### Responses

**200** Successful conversion to coordinates (application/json). Schema: ConvertToCoordinatesResponse

**400** Bad request (application/json). Schema: ErrorResponse

**MissingWords**

```json
{
  "error": {
    "code": "MissingWords",
    "message": "words must be specified"
  }
}
```

**BadWords**

```json
{
  "error": {
    "code": "BadWords",
    "message": "words must be a valid 3 word address, such as filled.count.soap or ///filled.count.soap"
  }
}
```

**BadFormat**

```json
{
  "error": {
    "code": "BadFormat",
    "message": "Format must be one of json,geojson"
  }
}
```

**DuplicateParameter**

```json
{
  "error": {
    "code": "DuplicateParameter",
    "message": "Duplicate parameter 'words'. Please only pass in one of each parameter."
  }
}
```

**401** Unauthorized - Invalid API key (application/json). Schema: ErrorResponse

**InvalidKey**

```json
{
  "error": {
    "code": "InvalidKey",
    "message": "Authentication failed; invalid API key"
  }
}
```

**MissingKey**

```json
{
  "error": {
    "code": "MissingKey",
    "message": "Authentication failed; missing required API key parameter or header"
  }
}
```

[Read the guide](https://developer.what3words.com/public-api/docs#convert-to-coords) · [Try it in the Playground](https://developer.what3words.com/public-api/playground#convert-to-coordinates)

## AutoSuggest

`GET https://api.what3words.com/v3/autosuggest`

AutoSuggest can take a slightly incorrect what3words address and suggest a list of valid what3words addresses. It has powerful features that can, for example, optionally limit results to a country or area, and prioritize results that are near the user.

### Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `key` | query | string | optional | A valid API key. Provide it as query parameter `key`; `X-Api-Key` header is also supported. |
| `input` | query | string | required | The full or partial what3words address to obtain suggestions for. At minimum this must be the first two complete words plus at least one character from the third word. Input parsing is case-insensitive, accepts an optional leading `///`, and accepts supported dot-like delimiters (. ｡ 。 ･ ・ ︒ ។ ։ ။ ۔ ። ।). Example `input=filled.count.s`. |
| `focus` | query | string | optional | This is a location, specified as latitude,longitude (often where the user making the query is). If specified, the results will be weighted to give preference to those near the focus. For convenience, longitude is allowed to wrap around the 180 line, so 361 is equivalent to 1. Example `focus=51.521251,-0.203586`. |
| `n-focus-results` | query | integer | optional | Controls how many top suggestions are strongly biased towards the `focus` coordinate. Defaults to `n-results` when omitted. Non-numeric values return `BadNFocusResults`. Default `3`. Maximum 100. Example `n-focus-results=5`. |
| `clip-to-country` | query | string | optional | Restricts results to the specified country or countries, specified as comma-separated ISO 3166-1 alpha-2 country codes (for example `GB,US`). Parsing is case-insensitive, though uppercase is recommended. Example `clip-to-country=GB,US`. |
| `clip-to-circle` | query | string | optional | Restricts results to a circle, specified by `latitude,longitude,kilometres`. For example, `51.4243877,-0.3474524,10` constrains results to those within 10 km of the point 51.4243877,-0.3474524. Example `clip-to-circle=51.4243877,-0.3474524,10`. |
| `clip-to-bounding-box` | query | string | optional | Restricts results to a bounding box, specified by `southwest latitude,southwest longitude,northeast latitude,northeast longitude`. Latitudes and longitudes should be specified in order of increasing size. Longitude is allowed to wrap, so that you can specify bounding boxes which cross the ante-meridian, e.g., `-4,178.2,22,195.4`. Example `clip-to-bounding-box=51.515900,-0.212517,51.527649,-0.191746`. |
| `clip-to-polygon` | query | string | optional | Restricts results to a polygon, specified by a comma-separated list of `lat,lng` pairs. The polygon should be closed, i.e. the first element should be repeated as the last element; also the list should contain at least 4 entries. The API is currently limited to accepting up to 25 pairs. Example `clip-to-polygon=51.521,-0.343,52.6,2.3324,54.234,8.343,51.521,-0.343`. |
| `language` | query | string | optional | For text input, adds a preferred language or locale to the set Autosuggest considers. Exact whole-word matches in the input can also add languages or locales. If omitted for text input, English is added as the default backstop. For voice input (`input-type` != `text`), this must be provided. Use a supported what3words code from `/available-languages`, including locale/script-specific codes where available (for example `mn_la`, `zh_tr`, `oo_la`). Default `en`. |
| `locale` | query | string | optional | Optional locale/script-specific code. Can be passed on its own. If provided with `language`, both values must be identical strings (for example `language=mn_la&locale=mn_la`). Example `locale=mn_la`. |
| `input-type` | query | string | optional | For power users, used to specify voice input mode. Can be `text` (default), `vocon-hybrid`, `nmdp-asr`, `generic-voice`, `speechmatics`, or `vin-big-data`. Voice modes require `language`. If `input` is not in the expected format for a selected voice mode, the API may return `BadInput`. One of `text`, `vocon-hybrid`, `nmdp-asr`, `generic-voice`, `speechmatics`, `vin-big-data`. Default `text`. |
| `n-results` | query | integer | optional | The number of AutoSuggest results to return. Non-numeric values return `BadNResults`. Values greater than 100 are truncated to 100. Values less than or equal to 0 return an empty suggestions list. The default is 3. Default `3`. Maximum 100. |
| `prefer-land` | query | boolean | optional | Makes AutoSuggest prefer results on land to those in the sea. This setting is on by default. Use false to disable this setting and receive more suggestions in the sea. Default `true`. |
| `format` | query | string | optional | Return data format type; can be either `json` (the default) or `geojson`. One of `json`, `geojson`. Default `json`. |

### Example request

**cURL**

```shellscript
curl --request GET \
  --url 'https://api.what3words.com/v3/autosuggest?input=film.crunchy.spiri&focus=50.842404,4.361177&key=YOUR_API_KEY'
```

**JavaScript**

```javascript
const params = new URLSearchParams({
  input: 'film.crunchy.spiri',
  focus: '50.842404,4.361177',
  key: 'YOUR_API_KEY',
});
const response = await fetch(`https://api.what3words.com/v3/autosuggest?${params}`);
const data = await response.json();
console.log(data);
```

**Python**

```python
import requests

response = requests.get(
    "https://api.what3words.com/v3/autosuggest",
    params={"input": "film.crunchy.spiri", "focus": "50.842404,4.361177", "key": "YOUR_API_KEY"},
)
print(response.json())
```

### Example result

Status: `200 OK`

**JSON**

```json
{
  "suggestions": [
    {
      "country": "BE",
      "nearestPlace": "Brussels, Brussels Capital",
      "words": "film.crunchy.spirits",
      "rank": 1,
      "distanceToFocusKm": 1,
      "language": "en"
    },
    {
      "country": "ES",
      "nearestPlace": "Caldes de Montbui, Catalonia",
      "words": "film.crunchy.spirit",
      "rank": 2,
      "distanceToFocusKm": 1039,
      "language": "en"
    },
    {
      "country": "NL",
      "nearestPlace": "Weert, Limburg",
      "words": "firm.crunchy.spires",
      "rank": 3,
      "distanceToFocusKm": 105,
      "language": "en"
    }
  ]
}
```

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `suggestions[]` | array of AutosuggestSuggestion | List of suggested what3words addresses |
| `suggestions[].words` | string | The suggested what3words address |
| `suggestions[].country` | string | The country in which the what3words address is located, as an ISO 3166-1 alpha-2 country code |
| `suggestions[].nearestPlace` | string | The nearest place to the what3words address |
| `suggestions[].language` | string | The language of the what3words address |
| `suggestions[].locale` | string | The locale of the what3words address, if applicable |
| `suggestions[].rank` | integer | The relative ranking of this suggestion |
| `suggestions[].distanceToFocusKm` | number | The distance in kilometers from the focus point to this suggestion's coordinates |

### Responses

**200** Successful autosuggest results (application/json). Schema: AutosuggestResponse

**400** Bad request (application/json). Schema: ErrorResponse

**MissingInput**

```json
{
  "error": {
    "code": "MissingInput",
    "message": "input must be specified"
  }
}
```

**BadFocus**

```json
{
  "error": {
    "code": "BadFocus",
    "message": "focus must be a lat,lng"
  }
}
```

**BadClipToCountry**

```json
{
  "error": {
    "code": "BadClipToCountry",
    "message": "Countries are specified as a comma separated list of uppercase ISO 3166-1 alpha-2 country codes, such as US,CA"
  }
}
```

**BadClipToBoundingBox**

```json
{
  "error": {
    "code": "BadClipToBoundingBox",
    "message": "Must be four lat,lng,lat,lng coordinates such as 50,-2,53.12,2.34"
  }
}
```

**BadClipToCircle**

```json
{
  "error": {
    "code": "BadClipToCircle",
    "message": "clip-to-circle needs to be lat,lng,km. Example: 51.453,0.344,112"
  }
}
```

**BadClipToPolygon**

```json
{
  "error": {
    "code": "BadClipToPolygon",
    "message": "Failed to parse one of the coordinates as a valid decimal number"
  }
}
```

**MissingLanguage**

```json
{
  "error": {
    "code": "MissingLanguage",
    "message": "for voice input. language must be specified"
  }
}
```

**BadLanguage**

```json
{
  "error": {
    "code": "BadLanguage",
    "message": "language must be a supported what3words language code, such as 'en', 'fr' or 'mn_la'"
  }
}
```

**BadInputType**

```json
{
  "error": {
    "code": "BadInputType",
    "message": "prefer-land must be one of true or false"
  }
}
```

**BadLanguageLocaleMismatch**

```json
{
  "error": {
    "code": "BadLanguage",
    "message": "language and locale must not be different"
  }
}
```

**BadNResults**

```json
{
  "error": {
    "code": "BadNResults",
    "message": "n-results must be a valid integer"
  }
}
```

**BadNFocusResults**

```json
{
  "error": {
    "code": "BadNFocusResults",
    "message": "n-focus-results must be a valid integer"
  }
}
```

**BadInput**

```json
{
  "error": {
    "code": "BadInput",
    "message": "Invalid autosuggest input"
  }
}
```

**DuplicateParameter**

```json
{
  "error": {
    "code": "DuplicateParameter",
    "message": "Duplicate parameter 'input'. Please only pass in one of each parameter."
  }
}
```

**401** Unauthorized - Invalid API key (application/json). Schema: ErrorResponse

**InvalidKey**

```json
{
  "error": {
    "code": "InvalidKey",
    "message": "Authentication failed; invalid API key"
  }
}
```

**MissingKey**

```json
{
  "error": {
    "code": "MissingKey",
    "message": "Authentication failed; missing required API key parameter or header"
  }
}
```

[Read the guide](https://developer.what3words.com/public-api/docs#autosuggest) · [Try it in the Playground](https://developer.what3words.com/public-api/playground#autosuggest)

## AutoSuggest with Coordinates

`GET https://api.what3words.com/v3/autosuggest-with-coordinates`

Similar to the AutoSuggest endpoint, but returns coordinates in the response. This endpoint requires special permissions.

### Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `key` | query | string | optional | A valid API key. Provide it as query parameter `key`; `X-Api-Key` header is also supported. |
| `input` | query | string | required | The full or partial what3words address to obtain suggestions for. At minimum this must be the first two complete words plus at least one character from the third word. Input parsing is case-insensitive, accepts an optional leading `///`, and accepts supported dot-like delimiters (. ｡ 。 ･ ・ ︒ ។ ։ ။ ۔ ። ।). Example `input=filled.count.s`. |
| `focus` | query | string | optional | This is a location, specified as latitude,longitude (often where the user making the query is). If specified, the results will be weighted to give preference to those near the focus. For convenience, longitude is allowed to wrap around the 180 line, so 361 is equivalent to 1. Example `focus=51.521251,-0.203586`. |
| `n-focus-results` | query | integer | optional | Controls how many top suggestions are strongly biased towards the `focus` coordinate. Defaults to `n-results` when omitted. Non-numeric values return `BadNFocusResults`. Default `3`. Maximum 100. Example `n-focus-results=5`. |
| `clip-to-country` | query | string | optional | Restricts results to the specified country or countries, specified as comma-separated ISO 3166-1 alpha-2 country codes (for example `GB,US`). Parsing is case-insensitive, though uppercase is recommended. Example `clip-to-country=GB,US`. |
| `clip-to-circle` | query | string | optional | Restricts results to a circle, specified by `latitude,longitude,kilometres`. For example, `51.4243877,-0.3474524,10` constrains results to those within 10 km of the point 51.4243877,-0.3474524. Example `clip-to-circle=51.4243877,-0.3474524,10`. |
| `clip-to-bounding-box` | query | string | optional | Restricts results to a bounding box, specified by `southwest latitude,southwest longitude,northeast latitude,northeast longitude`. Latitudes and longitudes should be specified in order of increasing size. Longitude is allowed to wrap, so that you can specify bounding boxes which cross the ante-meridian, e.g., `-4,178.2,22,195.4`. Example `clip-to-bounding-box=51.515900,-0.212517,51.527649,-0.191746`. |
| `clip-to-polygon` | query | string | optional | Restricts results to a polygon, specified by a comma-separated list of `lat,lng` pairs. The polygon should be closed, i.e. the first element should be repeated as the last element; also the list should contain at least 4 entries. The API is currently limited to accepting up to 25 pairs. Example `clip-to-polygon=51.521,-0.343,52.6,2.3324,54.234,8.343,51.521,-0.343`. |
| `language` | query | string | optional | For text input, adds a preferred language or locale to the set Autosuggest considers. Exact whole-word matches in the input can also add languages or locales. If omitted for text input, English is added as the default backstop. For voice input (`input-type` != `text`), this must be provided. Use a supported what3words code from `/available-languages`, including locale/script-specific codes where available (for example `mn_la`, `zh_tr`, `oo_la`). Default `en`. |
| `locale` | query | string | optional | Optional locale/script-specific code. Can be passed on its own. If provided with `language`, both values must be identical strings (for example `language=mn_la&locale=mn_la`). Example `locale=mn_la`. |
| `input-type` | query | string | optional | For power users, used to specify voice input mode. Can be `text` (default), `vocon-hybrid`, `nmdp-asr`, `generic-voice`, `speechmatics`, or `vin-big-data`. Voice modes require `language`. If `input` is not in the expected format for a selected voice mode, the API may return `BadInput`. One of `text`, `vocon-hybrid`, `nmdp-asr`, `generic-voice`, `speechmatics`, `vin-big-data`. Default `text`. |
| `n-results` | query | integer | optional | The number of AutoSuggest results to return. Non-numeric values return `BadNResults`. Values greater than 100 are truncated to 100. Values less than or equal to 0 return an empty suggestions list. The default is 3. Default `3`. Maximum 100. |
| `prefer-land` | query | boolean | optional | Makes AutoSuggest prefer results on land to those in the sea. This setting is on by default. Use false to disable this setting and receive more suggestions in the sea. Default `true`. |
| `format` | query | string | optional | Return data format type; can be either `json` (the default) or `geojson`. One of `json`, `geojson`. Default `json`. |

### Example request

**cURL**

```shellscript
curl --request GET \
  --url 'https://api.what3words.com/v3/autosuggest-with-coordinates?input=film.crunchy.spiri&focus=50.842404,4.361177&key=YOUR_API_KEY'
```

**JavaScript**

```javascript
const params = new URLSearchParams({
  input: 'film.crunchy.spiri',
  focus: '50.842404,4.361177',
  key: 'YOUR_API_KEY',
});
const response = await fetch(`https://api.what3words.com/v3/autosuggest-with-coordinates?${params}`);
const data = await response.json();
console.log(data);
```

**Python**

```python
import requests

response = requests.get(
    "https://api.what3words.com/v3/autosuggest-with-coordinates",
    params={"input": "film.crunchy.spiri", "focus": "50.842404,4.361177", "key": "YOUR_API_KEY"},
)
print(response.json())
```

### Example result

Status: `200 OK`

**JSON**

```json
{
  "suggestions": [
    {
      "country": "BE",
      "square": {
        "southwest": {
          "lng": 4.347436,
          "lat": 50.848237
        },
        "northeast": {
          "lng": 4.347479,
          "lat": 50.848264
        }
      },
      "nearestPlace": "Brussels, Brussels Capital",
      "words": "film.crunchy.spirits",
      "coordinates": {
        "lng": 4.347457,
        "lat": 50.848251
      },
      "rank": 1,
      "distanceToFocusKm": 1,
      "language": "en",
      "map": "https://w3w.co/film.crunchy.spirits"
    },
    {
      "country": "ES",
      "square": {
        "southwest": {
          "lng": 2.164394,
          "lat": 41.625835
        },
        "northeast": {
          "lng": 2.16443,
          "lat": 41.625862
        }
      },
      "nearestPlace": "Caldes de Montbui, Catalonia",
      "words": "film.crunchy.spirit",
      "coordinates": {
        "lng": 2.164412,
        "lat": 41.625849
      },
      "rank": 2,
      "distanceToFocusKm": 1039,
      "language": "en",
      "map": "https://w3w.co/film.crunchy.spirit"
    },
    {
      "country": "NL",
      "square": {
        "southwest": {
          "lng": 5.681058,
          "lat": 51.289807
        },
        "northeast": {
          "lng": 5.681101,
          "lat": 51.289834
        }
      },
      "nearestPlace": "Weert, Limburg",
      "words": "firm.crunchy.spires",
      "coordinates": {
        "lng": 5.68108,
        "lat": 51.289821
      },
      "rank": 3,
      "distanceToFocusKm": 105,
      "language": "en",
      "map": "https://w3w.co/firm.crunchy.spires"
    }
  ]
}
```

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `suggestions[]` | array of AutosuggestWithCoordinatesSuggestion | List of suggested what3words addresses including coordinates |
| `suggestions[].words` | string | The suggested what3words address |
| `suggestions[].country` | string | The country in which the what3words address is located, as an ISO 3166-1 alpha-2 country code |
| `suggestions[].square` | object (Square) |  |
| `suggestions[].square.southwest` | object (Coordinates) |  |
| `suggestions[].square.southwest.lat` | number | Latitude |
| `suggestions[].square.southwest.lng` | number | Longitude |
| `suggestions[].square.northeast` | object (Coordinates) |  |
| `suggestions[].square.northeast.lat` | number | Latitude |
| `suggestions[].square.northeast.lng` | number | Longitude |
| `suggestions[].nearestPlace` | string | The nearest place to the what3words address |
| `suggestions[].coordinates` | object (Coordinates) |  |
| `suggestions[].coordinates.lat` | number | Latitude |
| `suggestions[].coordinates.lng` | number | Longitude |
| `suggestions[].language` | string | The language of the what3words address |
| `suggestions[].locale` | string | The locale of the what3words address, if returned |
| `suggestions[].rank` | integer | The relative ranking of this suggestion |
| `suggestions[].distanceToFocusKm` | number | The distance in kilometers from the focus point to this suggestion's coordinates |
| `suggestions[].map` | string | URL to view the what3words address on the what3words map |

### Responses

**200** Successful autosuggest results (application/json). Schema: AutosuggestWithCoordinatesResponse

**400** Bad request (application/json). Schema: ErrorResponse

**MissingInput**

```json
{
  "error": {
    "code": "MissingInput",
    "message": "input must be specified"
  }
}
```

**BadFocus**

```json
{
  "error": {
    "code": "BadFocus",
    "message": "focus must be a lat,lng"
  }
}
```

**BadClipToCountry**

```json
{
  "error": {
    "code": "BadClipToCountry",
    "message": "Countries are specified as a comma separated list of uppercase ISO 3166-1 alpha-2 country codes, such as US,CA"
  }
}
```

**BadClipToBoundingBox**

```json
{
  "error": {
    "code": "BadClipToBoundingBox",
    "message": "Must be four lat,lng,lat,lng coordinates such as 50,-2,53.12,2.34"
  }
}
```

**BadClipToCircle**

```json
{
  "error": {
    "code": "BadClipToCircle",
    "message": "clip-to-circle needs to be lat,lng,km. Example: 51.453,0.344,112"
  }
}
```

**BadClipToPolygon**

```json
{
  "error": {
    "code": "BadClipToPolygon",
    "message": "Failed to parse one of the coordinates as a valid decimal number"
  }
}
```

**MissingLanguage**

```json
{
  "error": {
    "code": "MissingLanguage",
    "message": "for voice input. language must be specified"
  }
}
```

**BadLanguage**

```json
{
  "error": {
    "code": "BadLanguage",
    "message": "language must be a supported what3words language code, such as 'en', 'fr' or 'mn_la'"
  }
}
```

**BadInputType**

```json
{
  "error": {
    "code": "BadInputType",
    "message": "prefer-land must be one of true or false"
  }
}
```

**BadLanguageLocaleMismatch**

```json
{
  "error": {
    "code": "BadLanguage",
    "message": "language and locale must not be different"
  }
}
```

**BadNResults**

```json
{
  "error": {
    "code": "BadNResults",
    "message": "n-results must be a valid integer"
  }
}
```

**BadNFocusResults**

```json
{
  "error": {
    "code": "BadNFocusResults",
    "message": "n-focus-results must be a valid integer"
  }
}
```

**BadInput**

```json
{
  "error": {
    "code": "BadInput",
    "message": "Invalid autosuggest input"
  }
}
```

**DuplicateParameter**

```json
{
  "error": {
    "code": "DuplicateParameter",
    "message": "Duplicate parameter 'input'. Please only pass in one of each parameter."
  }
}
```

**401** Unauthorized - Invalid API key (application/json). Schema: ErrorResponse

**InvalidKey**

```json
{
  "error": {
    "code": "InvalidKey",
    "message": "Authentication failed; invalid API key"
  }
}
```

**InvalidKeyNoPermissions**

```json
{
  "error": {
    "code": "InvalidKey",
    "message": "Auth failed; /v3/autosuggest-with-coordinates. Contact support@what3words.com or your account manager to enable your account"
  }
}
```

**MissingKey**

```json
{
  "error": {
    "code": "MissingKey",
    "message": "Authentication failed; missing required API key parameter or header"
  }
}
```

[Read the guide](https://developer.what3words.com/public-api/docs#autosuggest-with-coordinates)

## Grid section

`GET https://api.what3words.com/v3/grid-section`

Returns a section of the 3m x 3m what3words grid for a bounding box. The bounding box is specified by lat,lng,lat,lng as south,west,north,east. You can request the grid in GeoJSON format, making it very simple to display on a map.

### Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `key` | query | string | optional | A valid API key. Provide it as query parameter `key`; `X-Api-Key` header is also supported. |
| `bounding-box` | query | string | required | Bounding box, as a `lat,lng,lat,lng`, for which the grid should be returned. The requested box must not exceed `4km` from corner to corner, or a `BadBoundingBoxTooBig` error will be returned. Latitudes must be `>= -90` and `<= 90`, but longitudes are allowed to wrap around 180. To specify a bounding-box that crosses the anti-meridian, use longitude greater than 180. e.g.: `bounding-box=50.0,179.995,50.01,180.0005`. Example `bounding-box=52.207988,0.116126,52.208867,0.117540`. |
| `format` | query | string | optional | Return data format type; can be either `json` (the default) or `geojson`. One of `json`, `geojson`. Default `json`. |

### Example request

**cURL**

```shellscript
curl --request GET \
  --url 'https://api.what3words.com/v3/grid-section?bounding-box=52.207988,0.116126,52.208867,0.117540&key=YOUR_API_KEY'
```

**JavaScript**

```javascript
const params = new URLSearchParams({
  'bounding-box': '52.207988,0.116126,52.208867,0.117540',
  key: 'YOUR_API_KEY',
});
const response = await fetch(`https://api.what3words.com/v3/grid-section?${params}`);
const data = await response.json();
console.log(data);
```

**Python**

```python
import requests

response = requests.get(
    "https://api.what3words.com/v3/grid-section",
    params={"bounding-box": "52.207988,0.116126,52.208867,0.117540", "key": "YOUR_API_KEY"},
)
print(response.json())
```

### Example result

Status: `200 OK`

**JSON**

```json
{
  "lines": [
    {
      "start": {
        "lng": 0.116126,
        "lat": 52.20801
      },
      "end": {
        "lng": 0.11754,
        "lat": 52.20801
      }
    },
    {
      "start": {
        "lng": 0.116126,
        "lat": 52.208037
      },
      "end": {
        "lng": 0.11754,
        "lat": 52.208037
      }
    }
  ]
}
```

**GeoJSON**

```json
{
  "features": [
    {
      "geometry": {
        "coordinates": [
          [
            [
              0.116126,
              52.20801
            ],
            [
              0.11754,
              52.20801
            ]
          ],
          [
            [
              0.116126,
              52.208037
            ],
            [
              0.11754,
              52.208037
            ]
          ]
        ],
        "type": "MultiLineString"
      },
      "type": "Feature",
      "properties": {}
    }
  ],
  "type": "FeatureCollection"
}
```

*Shortened to the first two lines of the grid; the full response has a line for every grid row and column in the bounding box.*

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `lines[]` | array of object | Array of line objects that make up the grid |
| `lines[].start` | object (Coordinates) |  |
| `lines[].start.lat` | number | Latitude |
| `lines[].start.lng` | number | Longitude |
| `lines[].end` | object (Coordinates) |  |
| `lines[].end.lat` | number | Latitude |
| `lines[].end.lng` | number | Longitude |

### Responses

**200** Successful grid section retrieval (application/json, application/geo+json). Schema: GridSectionResponse

**400** Bad request (application/json)

**BadBoundingBox**

```json
{
  "error": {
    "code": "BadBoundingBox",
    "message": "bounding-box must be specified as south_lat,west_lng,north_lat,east_lng"
  }
}
```

**BadBoundingBoxTooBig**

```json
{
  "error": {
    "code": "BadBoundingBoxTooBig",
    "message": "Bounding box too large (exceeds 4km from corner to corner)"
  }
}
```

**BadFormat**

```json
{
  "error": {
    "code": "BadFormat",
    "message": "Format must be one of json,geojson"
  }
}
```

**DuplicateParameter**

```json
{
  "error": {
    "code": "DuplicateParameter",
    "message": "Duplicate parameter 'bounding-box'. Please only pass in one of each parameter."
  }
}
```

**401** Unauthorized - Invalid API key (application/json). Schema: ErrorResponse

**InvalidKey**

```json
{
  "error": {
    "code": "InvalidKey",
    "message": "Authentication failed; invalid API key"
  }
}
```

**MissingKey**

```json
{
  "error": {
    "code": "MissingKey",
    "message": "Authentication failed; missing required API key parameter or header"
  }
}
```

[Read the guide](https://developer.what3words.com/public-api/docs#grid-section) · [Try it in the Playground](https://developer.what3words.com/public-api/playground#grid-section)

## Available languages

`GET https://api.what3words.com/v3/available-languages`

Retrieves all available what3words address languages and locale/script variants, including language code, English name and native name. Use top-level `code` values as base `language` codes, and use nested `locales[].code` values where explicit locale/script selection is needed (for example `en`, `mn`, `mn_la`, `zh_tr`, `oo_cy`).

### Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `key` | query | string | optional | A valid API key. Provide it as query parameter `key`; `X-Api-Key` header is also supported. |

### Example request

**cURL**

```shellscript
curl --request GET \
  --url 'https://api.what3words.com/v3/available-languages?key=YOUR_API_KEY'
```

**JavaScript**

```javascript
const params = new URLSearchParams({
  key: 'YOUR_API_KEY',
});
const response = await fetch(`https://api.what3words.com/v3/available-languages?${params}`);
const data = await response.json();
console.log(data);
```

**Python**

```python
import requests

response = requests.get(
    "https://api.what3words.com/v3/available-languages",
    params={"key": "YOUR_API_KEY"},
)
print(response.json())
```

### Example result

Status: `200 OK`

**JSON**

```json
{
  "languages": [
    {
      "nativeName": "Deutsch",
      "code": "de",
      "name": "German"
    },
    {
      "nativeName": "English",
      "code": "en",
      "name": "English"
    },
    {
      "nativeName": "Français",
      "code": "fr",
      "name": "French"
    },
    {
      "nativeName": "Монгол хэл",
      "code": "mn",
      "name": "Mongolian",
      "locales": [
        {
          "nativeName": "Монгол хэл (Латинаар)",
          "name": "Mongolian (Latin)",
          "code": "mn_la"
        },
        {
          "nativeName": "Монгол хэл (Криллээр)",
          "name": "Mongolian (Cyrillic)",
          "code": "mn_cy"
        }
      ]
    },
    {
      "nativeName": "中文",
      "code": "zh",
      "name": "Chinese",
      "locales": [
        {
          "nativeName": "中文（繁體）",
          "name": "Chinese (Traditional)",
          "code": "zh_tr"
        },
        {
          "nativeName": "中文（简体）",
          "name": "Chinese (Simplified)",
          "code": "zh_si"
        }
      ]
    }
  ]
}
```

*Shortened to five languages; the full response lists all 58 languages.*

### Response fields

| Field | Type | Description |
| --- | --- | --- |
| `languages[]` | array of Language | List of available languages |
| `languages[].code` | string | The what3words language code for the language or language family (for example `en`, `mn`, `oo`). |
| `languages[].name` | string | The English name of the language |
| `languages[].nativeName` | string | The name of the language in that language |
| `languages[].locales[]` | array of Locale | List of available locales for this language, if applicable |
| `languages[].locales[].code` | string | The locale code |
| `languages[].locales[].name` | string | The name of the locale |
| `languages[].locales[].nativeName` | string | The native name of the locale |

### Responses

**200** Successful retrieval of available languages (application/json). Schema: AvailableLanguagesResponse

**401** Unauthorized - Invalid API key (application/json). Schema: ErrorResponse

**InvalidKey**

```json
{
  "error": {
    "code": "InvalidKey",
    "message": "Authentication failed; invalid API key"
  }
}
```

**MissingKey**

```json
{
  "error": {
    "code": "MissingKey",
    "message": "Authentication failed; missing required API key parameter or header"
  }
}
```

[Read the guide](https://developer.what3words.com/public-api/docs#available-languages)

## Schemas

The objects the endpoints return.

### Coordinates

| Field | Type | Description |
| --- | --- | --- |
| `lat` | number | Latitude |
| `lng` | number | Longitude |

### Square

| Field | Type | Description |
| --- | --- | --- |
| `southwest` | object (Coordinates) |  |
| `southwest.lat` | number | Latitude |
| `southwest.lng` | number | Longitude |
| `northeast` | object (Coordinates) |  |
| `northeast.lat` | number | Latitude |
| `northeast.lng` | number | Longitude |

### ConvertTo3waResponse

| Field | Type | Description |
| --- | --- | --- |
| `country` | string | The country in which the what3words address is located, as an ISO 3166-1 alpha-2 country code |
| `square` | object (Square) |  |
| `square.southwest` | object (Coordinates) |  |
| `square.southwest.lat` | number | Latitude |
| `square.southwest.lng` | number | Longitude |
| `square.northeast` | object (Coordinates) |  |
| `square.northeast.lat` | number | Latitude |
| `square.northeast.lng` | number | Longitude |
| `nearestPlace` | string | The nearest place to the what3words address |
| `coordinates` | object (Coordinates) |  |
| `coordinates.lat` | number | Latitude |
| `coordinates.lng` | number | Longitude |
| `words` | string | The what3words address |
| `language` | string | The language of the what3words address |
| `locale` | string | The locale of the what3words address, if returned |
| `map` | string | URL to view the what3words address on the what3words map |

### ConvertToCoordinatesResponse

| Field | Type | Description |
| --- | --- | --- |
| `country` | string | The country in which the what3words address is located, as an ISO 3166-1 alpha-2 country code |
| `square` | object (Square) |  |
| `square.southwest` | object (Coordinates) |  |
| `square.southwest.lat` | number | Latitude |
| `square.southwest.lng` | number | Longitude |
| `square.northeast` | object (Coordinates) |  |
| `square.northeast.lat` | number | Latitude |
| `square.northeast.lng` | number | Longitude |
| `nearestPlace` | string | The nearest place to the what3words address |
| `coordinates` | object (Coordinates) |  |
| `coordinates.lat` | number | Latitude |
| `coordinates.lng` | number | Longitude |
| `words` | string | The what3words address |
| `language` | string | The language of the what3words address |
| `locale` | string | The locale of the what3words address, if returned |
| `map` | string | URL to view the what3words address on the what3words map |

### AutosuggestResponse

| Field | Type | Description |
| --- | --- | --- |
| `suggestions[]` | array of AutosuggestSuggestion | List of suggested what3words addresses |
| `suggestions[].words` | string | The suggested what3words address |
| `suggestions[].country` | string | The country in which the what3words address is located, as an ISO 3166-1 alpha-2 country code |
| `suggestions[].nearestPlace` | string | The nearest place to the what3words address |
| `suggestions[].language` | string | The language of the what3words address |
| `suggestions[].locale` | string | The locale of the what3words address, if applicable |
| `suggestions[].rank` | integer | The relative ranking of this suggestion |
| `suggestions[].distanceToFocusKm` | number | The distance in kilometers from the focus point to this suggestion's coordinates |

### GridSectionResponse

| Field | Type | Description |
| --- | --- | --- |
| `lines[]` | array of object | Array of line objects that make up the grid |
| `lines[].start` | object (Coordinates) |  |
| `lines[].start.lat` | number | Latitude |
| `lines[].start.lng` | number | Longitude |
| `lines[].end` | object (Coordinates) |  |
| `lines[].end.lat` | number | Latitude |
| `lines[].end.lng` | number | Longitude |

### GridSectionGeoJsonResponse

GeoJSON representation of the grid section

### Locale

| Field | Type | Description |
| --- | --- | --- |
| `code` | string | The locale code |
| `name` | string | The name of the locale |
| `nativeName` | string | The native name of the locale |

### Language

| Field | Type | Description |
| --- | --- | --- |
| `code` | string | The what3words language code for the language or language family (for example `en`, `mn`, `oo`). |
| `name` | string | The English name of the language |
| `nativeName` | string | The name of the language in that language |
| `locales[]` | array of Locale | List of available locales for this language, if applicable |
| `locales[].code` | string | The locale code |
| `locales[].name` | string | The name of the locale |
| `locales[].nativeName` | string | The native name of the locale |

### AvailableLanguagesResponse

| Field | Type | Description |
| --- | --- | --- |
| `languages[]` | array of Language | List of available languages |
| `languages[].code` | string | The what3words language code for the language or language family (for example `en`, `mn`, `oo`). |
| `languages[].name` | string | The English name of the language |
| `languages[].nativeName` | string | The name of the language in that language |
| `languages[].locales[]` | array of Locale | List of available locales for this language, if applicable |
| `languages[].locales[].code` | string | The locale code |
| `languages[].locales[].name` | string | The name of the locale |
| `languages[].locales[].nativeName` | string | The native name of the locale |

### Error

| Field | Type | Description |
| --- | --- | --- |
| `code` | string | Error code that can be used programmatically |
| `message` | string | A helpful message explaining what went wrong |

### ErrorResponse

| Field | Type | Description |
| --- | --- | --- |
| `error` | object (Error) |  |
| `error.code` | string | Error code that can be used programmatically |
| `error.message` | string | A helpful message explaining what went wrong |

### AutosuggestSuggestion

| Field | Type | Description |
| --- | --- | --- |
| `words` | string | The suggested what3words address |
| `country` | string | The country in which the what3words address is located, as an ISO 3166-1 alpha-2 country code |
| `nearestPlace` | string | The nearest place to the what3words address |
| `language` | string | The language of the what3words address |
| `locale` | string | The locale of the what3words address, if applicable |
| `rank` | integer | The relative ranking of this suggestion |
| `distanceToFocusKm` | number | The distance in kilometers from the focus point to this suggestion's coordinates |

### AutosuggestWithCoordinatesSuggestion

| Field | Type | Description |
| --- | --- | --- |
| `words` | string | The suggested what3words address |
| `country` | string | The country in which the what3words address is located, as an ISO 3166-1 alpha-2 country code |
| `square` | object (Square) |  |
| `square.southwest` | object (Coordinates) |  |
| `square.southwest.lat` | number | Latitude |
| `square.southwest.lng` | number | Longitude |
| `square.northeast` | object (Coordinates) |  |
| `square.northeast.lat` | number | Latitude |
| `square.northeast.lng` | number | Longitude |
| `nearestPlace` | string | The nearest place to the what3words address |
| `coordinates` | object (Coordinates) |  |
| `coordinates.lat` | number | Latitude |
| `coordinates.lng` | number | Longitude |
| `language` | string | The language of the what3words address |
| `locale` | string | The locale of the what3words address, if returned |
| `rank` | integer | The relative ranking of this suggestion |
| `distanceToFocusKm` | number | The distance in kilometers from the focus point to this suggestion's coordinates |
| `map` | string | URL to view the what3words address on the what3words map |

### AutosuggestWithCoordinatesResponse

| Field | Type | Description |
| --- | --- | --- |
| `suggestions[]` | array of AutosuggestWithCoordinatesSuggestion | List of suggested what3words addresses including coordinates |
| `suggestions[].words` | string | The suggested what3words address |
| `suggestions[].country` | string | The country in which the what3words address is located, as an ISO 3166-1 alpha-2 country code |
| `suggestions[].square` | object (Square) |  |
| `suggestions[].square.southwest` | object (Coordinates) |  |
| `suggestions[].square.southwest.lat` | number | Latitude |
| `suggestions[].square.southwest.lng` | number | Longitude |
| `suggestions[].square.northeast` | object (Coordinates) |  |
| `suggestions[].square.northeast.lat` | number | Latitude |
| `suggestions[].square.northeast.lng` | number | Longitude |
| `suggestions[].nearestPlace` | string | The nearest place to the what3words address |
| `suggestions[].coordinates` | object (Coordinates) |  |
| `suggestions[].coordinates.lat` | number | Latitude |
| `suggestions[].coordinates.lng` | number | Longitude |
| `suggestions[].language` | string | The language of the what3words address |
| `suggestions[].locale` | string | The locale of the what3words address, if returned |
| `suggestions[].rank` | integer | The relative ranking of this suggestion |
| `suggestions[].distanceToFocusKm` | number | The distance in kilometers from the focus point to this suggestion's coordinates |
| `suggestions[].map` | string | URL to view the what3words address on the what3words map |
