Apartments API

Apartments API returns all the apartments of the given address. Works only for the Latvian addresses.

API URL

The request URL should match the following pattern:

https://api.kartes.lv/v3//apartments?`

The response is given in JSON.

The HTTP GET request method is used.

Query parameters

The request consists of the following GET parameters:

Parameter Description
address Hash code of the address (the hash parameter of the Search API).
limit Maximum number of returned objects. Up to 200 objects can be returned.

Response parameters

The response consists of an array of apartments.

Error codes

Status code Description
400 Wrong input data. Server can’t respond due to client error.
404 No location found. The URL is not recognized; the resource does not exist.
5xx Server error.

Examples

Input:

https://api.kartes.lv/v3//apartments?address=a740281e9b3e4e90a269892d4ba477ca

Response:

[
    1,
    2,
    3,
    4,
    5
    ...
]