---
title: "Geocode a list of addresses"
method: POST
path: "/v3/lds/geocoding/batch"
tags: ["LDS"]
---

# Geocode a list of addresses

`POST /v3/lds/geocoding/batch`

Geocodes up to 10,000 addresses in one request.

Results come back in the same order as the input. Individual addresses can
fail without failing the request — check the `error` field of each entry.

## Request body

- object
  - `addresses` string[], required — The addresses to geocode.
  - `country` string — Restrict results to a country.
  - `limit` integer — Maximum results per address. Has no effect when the provider is Google Maps.

## Response `200`

One entry per input address, in the same order. An entry with a non-null
`error` means that address failed.

- object[]
  - `error` string, nullable
  - `value` GeocodingResult[]
    - `formattedAddress` string
    - `latitude` number
    - `longitude` number
    - `country` string
    - `countryCode` string
    - `state` string
    - `county` string
    - `city` string
    - `zipcode` string
    - `streetName` string
    - `streetNumber` string
    - `provider` string
  - `status` integer — Present only when the address failed.

## Other responses

- `400` — The request is malformed or a parameter failed validation.
- `401` — The token is missing, malformed or expired.
- `403` — The token doesn't grant access to this resource.
- `429` — You went over the [rate limit](#rate-limits) for this API.

---

[API](https://skmtc.net/gitbookio/apis/carto-api.md) · [All operations](https://skmtc.net/gitbookio/apis/carto-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitbookio/carto-api/revisions/019f79ecdd6c/schema)
