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.

  • client_key: Your authorisation key.

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.

Examples

Input:

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

Response:

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