Get zipcode boundary by zipcode and country code (v1)
POST
https://api.casafari.com/api/v1/references/zipcode-boundaryBearer token2 parameters
Send Authorization: Bearer $CASAFARI_TOKEN; see how to get a token.
Over MCP: no tool does this. MCP and REST compared.
Description
Get zipcode boundary by zipcode and country code.
Request body
Content type application/json. Optional. Type: object.
zip_codestringrequiredZipcode.
country_codestringrequiredCountry code following the ISO 3166-1 alpha-2 rules.
ES FR DE RE GP MQ GY YT AD MCExample request
Placeholders only: replace the token and the values with your own.
curl -X POST "https://api.casafari.com/api/v1/references/zipcode-boundary" \
-H "Authorization: Bearer $CASAFARI_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"zip_code": "36116",
"country_code": "ES"
}'Responses
200 OK
Type: object.
Show the response shape (4 fields)
zip_codestringrequiredZipcode.
boundaryobject[][]requiredZipcode boundary.
2 properties
latitudenumberrequiredLatitude.
-90–90
longitudenumberrequiredLongitude.
-180–180
Example from the API description (long arrays shortened)
{
"zip_code": "36116",
"boundary": [
[
{
"latitude": 42.59448,
"longitude": -8.3877
},
{
"latitude": 42.58795,
"longitude": -8.38622
}
]
]
}401 Unauthorized
Type: object.
Show the response shape (1 fields)
detailstringDescription of the error encountered.
403 Forbidden
Type: object.
Show the response shape (1 fields)
detailstringDescription of the error encountered.