Send JSON by POST, get JSON back. Base URL: https://api.zipaddis.com
Getting started
Create a key on the Developers page and send it with every request, as Authorization: Bearer YOUR_API_KEY or X-API-Key: YOUR_API_KEY. Keep it on your server, never in a website or app.
{
"zipCode": "MB-B2-GVVX",
"subcityName": "Bahir Dar Town Admin",
"woredaName": "Bahir Dar Town, part 2"
}
A code has three parts: region and zone (the sub-city in Addis Ababa, Dire Dawa and Harari), woreda, then the spot, as in AA-01-IKIS or MB-B2-GVVX. The woreda part is two digits, two letters or a letter and a digit, so treat codes as text, and turn a code into a place with /api/geocode rather than working it out yourself. subcityName is the zone or sub-city; woredaName is the woreda: "Woreda 7" in the three cities, its name elsewhere, and "Bahir Dar Town, part 2" for a part of a large woreda. A spot is a few metres across in towns and up to about 30 m in the countryside. Codes are accepted with or without the dashes, in capitals or not.
Every paid answer carries X-Credits-Charged and X-Credits-Remaining headers. A call is only charged when it succeeds.
Endpoints
Point to code
1 credit
POST /api/zip-code
The code for a GPS point. Send accuracy in metres too if you have it: a fix worse than 30 m is refused, because it could give a neighbouring cell's code.
Request body
{
"latitude": 11.59497,
"longitude": 37.38823
}
Answer
{
"zipCode": "MB-B2-GVVX",
"subcityName": "Bahir Dar Town Admin",
"woredaName": "Bahir Dar Town, part 2"
}
Code to point
1 credit
POST /api/geocode
The centre of a code's cell, ready to pass to a map or routing service. The place's name comes with it, so people can check it's the place they meant. verified is true once someone has confirmed the address in person.
Request body
{
"zipCode": "MB-B2-GVVX"
}
Answer
{
"latitude": 11.594861,
"longitude": 37.388309,
"subcityName": "Bahir Dar Town Admin",
"woredaName": "Bahir Dar Town, part 2"
}
Area profile from a point
5 credits
POST /api/location-persona
A one-sentence description of the area, a walkability score from 0 to 10 and keywords, based on nearby OpenStreetMap places. The description and keywords are written by AI.
Request body
{
"latitude": 11.59497,
"longitude": 37.38823
}
Answer
{
"vibe": "A bustling urban hub with a mix of traditional and modern services, vibrant commerce, and cultural landmarks.",
"walkability": 10,
"keywords": ["urban", "commercial", "cultural"]
}
Area profile from a code
5 credits
POST /api/zip-persona
The same profile, starting from a code.
Request body
{
"zipCode": "MB-B2-GVVX"
}
Answer
{
"vibe": "A bustling urban hub with a mix of traditional and modern services, vibrant commerce, and cultural landmarks.",
"walkability": 10,
"keywords": ["urban", "commercial", "cultural"]
}
Address checks
10 credits, once approved
Ask whether a customer lives at the code they gave you. We answer with what we know first-hand: whether ZipAddis handed a sticker or plate for that code to the account with that phone number, at that door, and when. The customer must approve on their own phone first, so send them the link from the answer, by SMS or however you reach them. A declined or unanswered check costs nothing, and links expire after 7 days. More about address checks
For a checkout or sign-up form, with no server code. Set your sites and get a public key (zpk_) in the Address box tab of the business dashboard, then add the script after your address field. A Use my location button appears beside the field. When the customer taps it, the field fills with their code, area and a landmark.
Options on the script tag: data-format="code" fills the code alone; data-label changes the button's text. The field also fires a zipaddis event; its detail has zipCode, woredaName, subcityName, landmark, latitude and longitude.
The public key only works from the sites you list, and only turns a phone's own GPS position into a code, so it's safe in a web page. Never put your secret API key in a page.
Errors
Errors come back with one of these statuses and a body of { "error": "..." }.
Status
Meaning
400
Invalid request, a GPS fix worse than 30 m, or a point outside the areas we cover
401
Missing or invalid API key
402
Not enough credits for this call
403
This API key has been disabled
404
No such code, which is often a mistyped one
503
The location assistant is busy or offline (area profiles only). Try again shortly.