Location

Locations used across Marktplaats for a different purposes. For example, to search within a certain distance or to show advertisements in the neighbourhood.

API provides provides possibility to get location details by a post code.

Reference

GET /v1/locations?postcode={postcode}

Finds location details for the specified post code.

Errors

http error code description
404 location-not-found
The requested location is not found.

Examples

Getting location details for a specific post code:

Request :

GET /v1/locations?postcode=8301AA HTTP/1.1
Host: api.marktplaats.nl

Response :

HTTP/1.1 200 OK
Content-Type: application/json

{
    "_links": {
      "find": { "href": "/locations{?postcode}", "templated": true }
    },
    "postcode" : "8301AA",
    "street" : "Kampwal",
    "city" : "Emmeloord",
    "province" : "Flevoland",
    "provinceShortCode" : "FL"
}