Skip to content
OpenGeocodeOpenGeocodeOpenGeocodeDownloads

Reverse geocode a batch of points

QUERY/reverseor POST

The body is a JSON array of items, at most the server’s item limit (1000 by default). Each takes the parameters GET /reverse takes, plus an optional id echoed in its result. QUERY takes the same body and answers the same: POST is for clients that cannot send QUERY.

Each result’s response is exactly what GET returns for its item, and its error the Problem GET would return. Results are in input order, one per item, and a bad item never fails the batch.

lon: optionalnumberformat: double

Longitude in degrees. Applies to every item; an item’s own field overrides it.

>= -180<= 180

lat: optionalnumberformat: double

Latitude in degrees. Applies to every item; an item’s own field overrides it.

>= -90<= 90

layer: optionalstring

Kind of result: an address, a street, a POI, or an area such as a locality or region.

Return only results of this layer. Applies to every item; an item’s own field overrides it.

Allowed values:addresscountrydistrictinterpolationlocalityneighbourhoodplacepoipostcoderegionstreet

application/json

Array<object>

<= 1000 items

One item of a /reverse batch: GET /reverse’s parameters and an id.

lon and lat may come from the request’s query string instead, for every item.

Properties

id: optionalstring

Echoed in this item’s result, to match it up.

<= 128 characters

Example

row-1

lat: optionalnumberformat: double

>= -90<= 90

Example

43.6532

layer: optionalstring

Kind of result: an address, a street, a POI, or an area such as a locality or region.

Allowed values:addresscountrydistrictinterpolationlocalityneighbourhoodplacepoipostcoderegionstreet

lon: optionalnumberformat: double

>= -180<= 180

Example

-79.3832

radius: optionalnumberformat: double

How far to look for the nearest address, street or place, in metres.

<= 1000

Example

150

One result per item, in input order.

application/json

A reverse batch’s answer: one result per item, in input order.

results:Array<object>

One item’s result: response when it succeeded, error when it failed.

Properties

error: optionalobject

Problem

Exactly the Problem GET would return for this item.

Properties

detail: optionalstring

Human-readable explanation. Absent on 500 errors.

error_code:string

Stable error code. Branch on this.

Allowed values:invalid_queryinvalid_coordinatelimit_too_largemalformed_parametermalformed_bodynot_foundmethod_not_allowedtoo_many_itemsbody_too_largeunsupported_media_typeinternal_errorbusytimeoutpack_outdated

invalid_params: optionalArray<object>

Rejected parameters. Present only when the error is about parameters.

A rejected parameter.

Properties

name:string

Parameter name.

reason:string

Why it was rejected.

request_id: optionalstring

ID the request is logged under. Include it in bug reports.

status:integerformat: int32

>= 400<= 599

title:string

Name of the HTTP status. Do not branch on it.

type:string

URI identifying the problem type. Currently always about:blank.

id: optionalstring

The item’s id, when it sent one.

response: optionalobject

Exactly what GET returns for this item.

Properties

features:Array<object>

One reverse geocoding result: the address or street at the point, or an area containing it.

Properties

geometry:object

GeoJSON Point. coordinates is [lon, lat].

Properties

coordinates:Array<number>

type:string

Allowed values:Point

properties:object

Properties of a reverse geocoding result.

Properties

access: optionalArray<object>

The points to route to when going to the result, which are the entrances OpenStreetMap maps for it. They are the nodes tagged entrance on the outline of the building or site an address or a POI is drawn with, or the result’s own point when its node is so tagged. Absent when OpenStreetMap maps none, and on every other layer.

A point to route to when going to a result.

Properties

kind:string

What kind of way in it is, as the value of the OpenStreetMap entrance tag that maps it, such as main, yes, service or staircase.

lat:numberformat: double

lon:numberformat: double

accuracy:string

How precisely the coordinates locate the result, most precise first.

  • rooftop: the address or POI itself.
  • interpolated: a house number placed between known neighbours.
  • street: a point on the street.
  • centroid: the centre of a mapped area.
  • approximate: a point standing for something larger, such as a town or postcode.

Allowed values:rooftopinterpolatedstreetcentroidapproximate

address: optionalobject

Address parts stated by the source record.

Properties

areas: optionalArray<string>

Areas below the locality, outermost first (OSM addr:suburb, addr:quarter, addr:neighbourhood).

country: optionalstring

housenumber: optionalstring

locality: optionalstring

place: optionalstring

Named place the house number belongs to where there is no street (OSM addr:place).

postcode: optionalstring

region: optionalstring

street: optionalstring

street_parts: optionalobject

street split into its parts as written. Absent when the street has no type or direction to split off, such as Broadway.

Properties

name:string

The street’s own name, without its type and directions.

prefix: optionalstring

Direction before the name.

suffix: optionalstring

Direction after the name.

type: optionalstring

Street type, such as Street or Ave.

unit: optionalstring

address_lines: optionalArray<string>

The address as the lines of a postal address, top to bottom, the way the result’s country writes one. The country’s address template says which parts go on which line and in what order. Each part is what address states or, where it states none, the area of context, and a part og has nothing for is left out. A region is its ISO 3166-2 short code where the template asks for one. The last line names the country as context.country does, so lang names it too. Present on an address with its house number, and on a POI that states its street. Absent on every other layer, and on a result in no country og has a template for.

bbox: optionalArray<number>

The box around a result that covers more than a point, as [west, south, east, north] in degrees. It holds an area’s outline, a street’s line, or the outline a POI is drawn with. It is the narrowest box, so for a result that crosses the antimeridian west is greater than east, and only then. Absent on a result that is only a point.

brand: optionalobject

The chain a place belongs to, when its name may not say: “Tankstation Zanoli” is an Esso. Present only on places.

Properties

name:string

wikidata: optionalstring

Its Wikidata item, such as Q867662, a stable id of the chain.

building: optionalobject

The building an address’s source draws it as, and its name when it has one. Absent on an address mapped as a point on no building, and on every other result.

Properties

name: optionalstring

Its name, as its name tag writes it.

category: optionalstring

POI category, such as amenity:cafe. Present only on POIs.

code: optionalstring

ISO code of a result that is an area: on a country its ISO 3166-1 alpha-2 code, on an area below it its ISO 3166-2 code, as context gives them. Absent on any other result, and on an area the source data gives no code.

contact: optionalobject

How to reach a place: its phone number, website and email, each as its source writes it. og rewrites none and does not check that one still answers. Present only on POIs that state at least one.

Properties

email: optionalstring

phone: optionalstring

website: optionalstring

context: optionalobject

Administrative areas containing the result.

Properties

country: optionalobject

Properties

code: optionalstring

ISO code of the area. On country its ISO 3166-1 alpha-2 code, such as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON, when the source data gives one.

id:string

Stable ID from the source data, as in a result’s id.

name:string

translations: optionalRecord<string, string>

The area’s name in each further language lang asks for, by the code as asked. Present only when lang names more than one language and the area has a name in at least one of the others.

district: optionalobject

Properties

code: optionalstring

ISO code of the area. On country its ISO 3166-1 alpha-2 code, such as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON, when the source data gives one.

id:string

Stable ID from the source data, as in a result’s id.

name:string

translations: optionalRecord<string, string>

The area’s name in each further language lang asks for, by the code as asked. Present only when lang names more than one language and the area has a name in at least one of the others.

locality: optionalobject

Properties

code: optionalstring

ISO code of the area. On country its ISO 3166-1 alpha-2 code, such as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON, when the source data gives one.

id:string

Stable ID from the source data, as in a result’s id.

name:string

translations: optionalRecord<string, string>

The area’s name in each further language lang asks for, by the code as asked. Present only when lang names more than one language and the area has a name in at least one of the others.

neighbourhood: optionalobject

Properties

code: optionalstring

ISO code of the area. On country its ISO 3166-1 alpha-2 code, such as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON, when the source data gives one.

id:string

Stable ID from the source data, as in a result’s id.

name:string

translations: optionalRecord<string, string>

The area’s name in each further language lang asks for, by the code as asked. Present only when lang names more than one language and the area has a name in at least one of the others.

place: optionalobject

Named area outside the administrative levels, usually an island.

Properties

code: optionalstring

ISO code of the area. On country its ISO 3166-1 alpha-2 code, such as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON, when the source data gives one.

id:string

Stable ID from the source data, as in a result’s id.

name:string

translations: optionalRecord<string, string>

The area’s name in each further language lang asks for, by the code as asked. Present only when lang names more than one language and the area has a name in at least one of the others.

region: optionalobject

Properties

code: optionalstring

ISO code of the area. On country its ISO 3166-1 alpha-2 code, such as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON, when the source data gives one.

id:string

Stable ID from the source data, as in a result’s id.

name:string

translations: optionalRecord<string, string>

The area’s name in each further language lang asks for, by the code as asked. Present only when lang names more than one language and the area has a name in at least one of the others.

subdistrict: optionalobject

Properties

code: optionalstring

ISO code of the area. On country its ISO 3166-1 alpha-2 code, such as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON, when the source data gives one.

id:string

Stable ID from the source data, as in a result’s id.

name:string

translations: optionalRecord<string, string>

The area’s name in each further language lang asks for, by the code as asked. Present only when lang names more than one language and the area has a name in at least one of the others.

sublocality: optionalobject

Properties

code: optionalstring

ISO code of the area. On country its ISO 3166-1 alpha-2 code, such as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON, when the source data gives one.

id:string

Stable ID from the source data, as in a result’s id.

name:string

translations: optionalRecord<string, string>

The area’s name in each further language lang asks for, by the code as asked. Present only when lang names more than one language and the area has a name in at least one of the others.

subregion: optionalobject

Properties

code: optionalstring

ISO code of the area. On country its ISO 3166-1 alpha-2 code, such as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON, when the source data gives one.

id:string

Stable ID from the source data, as in a result’s id.

name:string

translations: optionalRecord<string, string>

The area’s name in each further language lang asks for, by the code as asked. Present only when lang names more than one language and the area has a name in at least one of the others.

cuisine: optionalArray<string>

The kinds of food a place serves, as OpenStreetMap’s cuisine tag lists them, in lower case and in order. Absent on a result that states none.

id:string

Stable ID from the source data, such as osm:node:123. Store it to find the record again: it outlives a Pack rebuild.

label:string

One-line display label: name followed by its location. With lang, each part that names the result or one of its areas is that name in the language asked, as name and context are.

layer:string

Kind of result: an address, a street, a POI, or an area such as a locality or region.

Allowed values:addresscountrydistrictinterpolationlocalityneighbourhoodplacepoipostcoderegionstreet

name:string

House number and street for an address (12 King Street West), or the name of a street, area or POI.

opening_hours: optionalstring

When a place is open, in OpenStreetMap’s opening_hours syntax as its source writes it. og does not parse it, so it never says whether the place is open now. Present only on POIs that state it.

road_class: optionalstring

The class of road a street is, the most important of its ways, such as motorway or residential. Present only on streets.

Allowed values:motorwaytrunkprimarysecondarytertiaryunclassifiedresidentialliving_streetservicepedestriantrackbuswaycyclewayfootwaypathstepsother

source:object

The data set a result comes from.

Properties

dataset:string

osm, or an imported data set such as openaddresses:nz/countrywide.

street_postcode: optionalstring

For an address that states no postcode, the one postcode the other addresses of its street state, when they all state the same one. It is where the address most likely lies, and address.postcode stays what the source states. Absent on every other result.

timezone: optionalstring

The IANA name of the timezone the result lies in, such as Europe/Monaco. Its offset from UTC is the reader’s to compute, as it changes with the date. An area’s is the zone it lies wholly in, and any other result’s is the zone at its point. Absent on an area that reaches into two zones, where the timezone boundaries name no zone or two, and on every result of a Pack built without them.

translations: optionalRecord<string, string>

The result’s name in each further language lang asks for, by the code as asked. Present only when lang names more than one language and the result has a name in at least one of the others.

distance_m: optionalnumberformat: double

Distance from the queried point in meters. Present only on the address or street result, not on areas.

type:string

Allowed values:Feature

geocoding:object

The queried point, API version and the credits of the data sets the answer comes from.

Properties

attribution:Array<object>

A data set an answer comes from and how its licence asks it to be credited. OpenStreetMap is always first: every answer’s areas and labels come from it.

Properties

licence: optionalstring

The licence’s name, such as ODbL 1.0 or CC BY 4.0. Absent when the data set’s source states none.

text:string

Whom to credit, such as © OpenStreetMap contributors, or the data set’s name when its licence asks for no credit or is not known.

url: optionalstring

The licence’s terms.

point:object

Queried point.

Properties

lat:numberformat: double

lon:numberformat: double

version:string

API version. Changes only when a field is removed or changes meaning. New optional fields keep the version.

Allowed values:1

type:string

Allowed values:FeatureCollection

status:integerformat: int32

The status GET would have answered this item with.

summary:object

How a batch went.

Properties

failed:integer

Items answered with an error.

succeeded:integer

Items answered with a 200.

total:integer

Example

{
  "results": [
    {
      "error": {
        "detail": "q must not be empty",
        "error_code": "invalid_query",
        "invalid_params": [
          {
            "name": "limit",
            "reason": "must be at most 50"
          }
        ],
        "request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
        "status": 400,
        "title": "Bad Request",
        "type": "about:blank"
      },
      "response": {
        "features": [
          {
            "geometry": {
              "type": "Point"
            },
            "properties": {
              "access": [
                {
                  "kind": "main",
                  "lat": 43.7396,
                  "lon": 7.4263
                }
              ],
              "accuracy": "rooftop",
              "address_lines": [
                "10 King Street West",
                "Toronto, ON M5H 1A1",
                "Canada"
              ],
              "bbox": [
                7.4090279,
                43.7247599,
                7.4398704,
                43.7519311
              ],
              "brand": {
                "name": "Esso",
                "wikidata": "Q867662"
              },
              "building": {
                "name": "Google Building 41"
              },
              "code": "MC",
              "contact": {
                "email": "[email protected]",
                "phone": "+1 416-555-0111",
                "website": "https://queenbakery.example/"
              },
              "context": {
                "country": {
                  "code": "NZ",
                  "translations": {
                    "de": "Genf"
                  }
                },
                "district": {
                  "code": "NZ",
                  "translations": {
                    "de": "Genf"
                  }
                },
                "locality": {
                  "code": "NZ",
                  "translations": {
                    "de": "Genf"
                  }
                },
                "neighbourhood": {
                  "code": "NZ",
                  "translations": {
                    "de": "Genf"
                  }
                },
                "place": {
                  "code": "NZ",
                  "translations": {
                    "de": "Genf"
                  }
                },
                "region": {
                  "code": "NZ",
                  "translations": {
                    "de": "Genf"
                  }
                },
                "subdistrict": {
                  "code": "NZ",
                  "translations": {
                    "de": "Genf"
                  }
                },
                "sublocality": {
                  "code": "NZ",
                  "translations": {
                    "de": "Genf"
                  }
                },
                "subregion": {
                  "code": "NZ",
                  "translations": {
                    "de": "Genf"
                  }
                }
              },
              "cuisine": [
                "pizza",
                "italian"
              ],
              "layer": "address",
              "opening_hours": "Mo-Fr 08:00-18:00; Sa 09:00-13:00",
              "road_class": "motorway",
              "source": {
                "dataset": "osm"
              },
              "street_postcode": "94124",
              "timezone": "Europe/Monaco",
              "translations": {
                "de": "Genf"
              }
            },
            "type": "Feature"
          }
        ],
        "geocoding": {
          "attribution": [
            {
              "text": "© OpenStreetMap contributors"
            }
          ],
          "version": "1"
        },
        "type": "FeatureCollection"
      },
      "status": 200
    }
  ]
}

Accept-Query: optionalstring

The media type a QUERY body is read as.

Example
application/json

Allow: optionalstring

The methods this route accepts.

Example
GET, QUERY, POST

X-Request-Id: optionalstring

ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

<= 128 characters

The body is not a JSON array of objects, or the query string did not parse.

application/problem+json

Problem

Error response, an RFC 9457 problem document.

detail: optionalstring

Human-readable explanation. Absent on 500 errors.

error_code:string

Stable error code. Branch on this.

Allowed values:invalid_queryinvalid_coordinatelimit_too_largemalformed_parametermalformed_bodynot_foundmethod_not_allowedtoo_many_itemsbody_too_largeunsupported_media_typeinternal_errorbusytimeoutpack_outdated

invalid_params: optionalArray<object>

Rejected parameters. Present only when the error is about parameters.

A rejected parameter.

Properties

name:string

Parameter name.

reason:string

Why it was rejected.

request_id: optionalstring

ID the request is logged under. Include it in bug reports.

status:integerformat: int32

>= 400<= 599

title:string

Name of the HTTP status. Do not branch on it.

type:string

URI identifying the problem type. Currently always about:blank.

Example

{
  "detail": "q must not be empty",
  "error_code": "invalid_query",
  "invalid_params": [
    {
      "name": "limit",
      "reason": "must be at most 50"
    }
  ],
  "request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
  "status": 400,
  "title": "Bad Request",
  "type": "about:blank"
}

Accept-Query: optionalstring

The media type a QUERY body is read as.

Example
application/json

Allow: optionalstring

The methods this route accepts.

Example
GET, QUERY, POST

X-Request-Id: optionalstring

ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

<= 128 characters

Method not allowed. The route accepts GET, and QUERY or POST for a batch.

application/problem+json

Problem

Error response, an RFC 9457 problem document.

detail: optionalstring

Human-readable explanation. Absent on 500 errors.

error_code:string

Stable error code. Branch on this.

Allowed values:invalid_queryinvalid_coordinatelimit_too_largemalformed_parametermalformed_bodynot_foundmethod_not_allowedtoo_many_itemsbody_too_largeunsupported_media_typeinternal_errorbusytimeoutpack_outdated

invalid_params: optionalArray<object>

Rejected parameters. Present only when the error is about parameters.

A rejected parameter.

Properties

name:string

Parameter name.

reason:string

Why it was rejected.

request_id: optionalstring

ID the request is logged under. Include it in bug reports.

status:integerformat: int32

>= 400<= 599

title:string

Name of the HTTP status. Do not branch on it.

type:string

URI identifying the problem type. Currently always about:blank.

Example

{
  "detail": "q must not be empty",
  "error_code": "invalid_query",
  "invalid_params": [
    {
      "name": "limit",
      "reason": "must be at most 50"
    }
  ],
  "request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
  "status": 400,
  "title": "Bad Request",
  "type": "about:blank"
}

Accept-Query: optionalstring

The media type a QUERY body is read as.

Example
application/json

Allow: optionalstring

The methods this route accepts.

Example
GET, QUERY, POST

X-Request-Id: optionalstring

ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

<= 128 characters

More items than the server’s limit, or a body over its cap.

application/problem+json

Problem

Error response, an RFC 9457 problem document.

detail: optionalstring

Human-readable explanation. Absent on 500 errors.

error_code:string

Stable error code. Branch on this.

Allowed values:invalid_queryinvalid_coordinatelimit_too_largemalformed_parametermalformed_bodynot_foundmethod_not_allowedtoo_many_itemsbody_too_largeunsupported_media_typeinternal_errorbusytimeoutpack_outdated

invalid_params: optionalArray<object>

Rejected parameters. Present only when the error is about parameters.

A rejected parameter.

Properties

name:string

Parameter name.

reason:string

Why it was rejected.

request_id: optionalstring

ID the request is logged under. Include it in bug reports.

status:integerformat: int32

>= 400<= 599

title:string

Name of the HTTP status. Do not branch on it.

type:string

URI identifying the problem type. Currently always about:blank.

Example

{
  "detail": "q must not be empty",
  "error_code": "invalid_query",
  "invalid_params": [
    {
      "name": "limit",
      "reason": "must be at most 50"
    }
  ],
  "request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
  "status": 400,
  "title": "Bad Request",
  "type": "about:blank"
}

Accept-Query: optionalstring

The media type a QUERY body is read as.

Example
application/json

Allow: optionalstring

The methods this route accepts.

Example
GET, QUERY, POST

X-Request-Id: optionalstring

ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

<= 128 characters

The body was not sent as application/json.

application/problem+json

Problem

Error response, an RFC 9457 problem document.

detail: optionalstring

Human-readable explanation. Absent on 500 errors.

error_code:string

Stable error code. Branch on this.

Allowed values:invalid_queryinvalid_coordinatelimit_too_largemalformed_parametermalformed_bodynot_foundmethod_not_allowedtoo_many_itemsbody_too_largeunsupported_media_typeinternal_errorbusytimeoutpack_outdated

invalid_params: optionalArray<object>

Rejected parameters. Present only when the error is about parameters.

A rejected parameter.

Properties

name:string

Parameter name.

reason:string

Why it was rejected.

request_id: optionalstring

ID the request is logged under. Include it in bug reports.

status:integerformat: int32

>= 400<= 599

title:string

Name of the HTTP status. Do not branch on it.

type:string

URI identifying the problem type. Currently always about:blank.

Example

{
  "detail": "q must not be empty",
  "error_code": "invalid_query",
  "invalid_params": [
    {
      "name": "limit",
      "reason": "must be at most 50"
    }
  ],
  "request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
  "status": 400,
  "title": "Bad Request",
  "type": "about:blank"
}

Accept-Query: optionalstring

The media type a QUERY body is read as.

Example
application/json

Allow: optionalstring

The methods this route accepts.

Example
GET, QUERY, POST

X-Request-Id: optionalstring

ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

<= 128 characters

The batch failed inside the server.

application/problem+json

Problem

Error response, an RFC 9457 problem document.

detail: optionalstring

Human-readable explanation. Absent on 500 errors.

error_code:string

Stable error code. Branch on this.

Allowed values:invalid_queryinvalid_coordinatelimit_too_largemalformed_parametermalformed_bodynot_foundmethod_not_allowedtoo_many_itemsbody_too_largeunsupported_media_typeinternal_errorbusytimeoutpack_outdated

invalid_params: optionalArray<object>

Rejected parameters. Present only when the error is about parameters.

A rejected parameter.

Properties

name:string

Parameter name.

reason:string

Why it was rejected.

request_id: optionalstring

ID the request is logged under. Include it in bug reports.

status:integerformat: int32

>= 400<= 599

title:string

Name of the HTTP status. Do not branch on it.

type:string

URI identifying the problem type. Currently always about:blank.

Example

{
  "detail": "q must not be empty",
  "error_code": "invalid_query",
  "invalid_params": [
    {
      "name": "limit",
      "reason": "must be at most 50"
    }
  ],
  "request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
  "status": 400,
  "title": "Bad Request",
  "type": "about:blank"
}

Accept-Query: optionalstring

The media type a QUERY body is read as.

Example
application/json

Allow: optionalstring

The methods this route accepts.

Example
GET, QUERY, POST

X-Request-Id: optionalstring

ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

<= 128 characters

Every slot batches and jobs share is taken. Retry after the Retry-After header’s seconds.

application/problem+json

Problem

Error response, an RFC 9457 problem document.

detail: optionalstring

Human-readable explanation. Absent on 500 errors.

error_code:string

Stable error code. Branch on this.

Allowed values:invalid_queryinvalid_coordinatelimit_too_largemalformed_parametermalformed_bodynot_foundmethod_not_allowedtoo_many_itemsbody_too_largeunsupported_media_typeinternal_errorbusytimeoutpack_outdated

invalid_params: optionalArray<object>

Rejected parameters. Present only when the error is about parameters.

A rejected parameter.

Properties

name:string

Parameter name.

reason:string

Why it was rejected.

request_id: optionalstring

ID the request is logged under. Include it in bug reports.

status:integerformat: int32

>= 400<= 599

title:string

Name of the HTTP status. Do not branch on it.

type:string

URI identifying the problem type. Currently always about:blank.

Example

{
  "detail": "q must not be empty",
  "error_code": "invalid_query",
  "invalid_params": [
    {
      "name": "limit",
      "reason": "must be at most 50"
    }
  ],
  "request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
  "status": 400,
  "title": "Bad Request",
  "type": "about:blank"
}

Accept-Query: optionalstring

The media type a QUERY body is read as.

Example
application/json

Allow: optionalstring

The methods this route accepts.

Example
GET, QUERY, POST

X-Request-Id: optionalstring

ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

<= 128 characters