axi0 maps API reference
Vector tiles, map styles, place search and reverse lookup for your apps, on one key. Every endpoint below
answers on https://axi0.world and needs an API key: create one in the dashboard (free,
no card).
Base URL: https://axi0.world/map/api/v1
Quick start
- Sign in with your axi0 Key (no Key yet? you make one on the way, free) and create a key in the dashboard. Copy it: we show it once. Your Key stays on search.axi0.io; the portal gets only a proof made from it, never the Key and no email.
- Paste the page below into an HTML file, replace
YOUR_KEY, and open it in a browser.
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@6/dist/maplibre-gl.css">
<div id="map" style="height: 420px"></div>
<script type="module">
import { Map, NavigationControl } from "https://unpkg.com/maplibre-gl@6/dist/maplibre-gl.mjs";
const key = "YOUR_KEY";
const map = new Map({
container: "map",
style: `https://axi0.world/map/api/v1/styles/night.json?key=${key}`, // or day.json
center: [-97.7431, 30.2672], // Austin, TX
zoom: 12,
});
map.addControl(new NavigationControl());
</script>
The style brings everything with it: the tile source, fonts and icons, each URL already carrying your key, and the map credit in the corner.
From a server or a terminal:
curl "https://axi0.world/map/api/v1/search?q=Tulum&limit=3&key=YOUR_KEY"
curl -H "Authorization: Bearer YOUR_KEY" "https://axi0.world/map/api/v1/reverse?lat=30.2672&lon=-97.7431"
Authentication
Send the key with every request, either way:
- as a query parameter:
?key=axm_...(what map styles and tile URLs use), or - as a header:
Authorization: Bearer axm_...(better for server code: the key stays out of URLs and logs).
Keys look like axm_ followed by 32 letters and digits. We show a key once, when you create it, and keep only a
fingerprint, so we cannot show it again: if you lose one, rotate it in the dashboard.
Browser keys end up in your page's source, where anyone can read them. Give each one allowed origins in
the dashboard (for example https://example.com and http://localhost:5173): requests that come from other sites
are refused with 403 origin_not_allowed. An empty list allows every origin, which is right for server keys and
while you develop.
Server keys: keep them in environment variables or a secret store, never in public code.
Changes to a key (new key, revoked, rotated, origins, plan) reach the API within 15 seconds.
Endpoints
Vector tiles
GET https://axi0.world/map/api/v1/tiles/{z}/{x}/{y}.mvt
One tile of the map in the open vector tile format (MVT, protocol buffers), sent gzip-compressed to clients that
accept it. Zoom 0 to 15; renderers draw closer zooms from the zoom 15 tiles. An empty tile (open sea, for
example) answers 204 No Content; tiles carry an ETag, so revalidation answers 304. Any renderer that reads
vector tiles works; with a web map renderer you normally use a style (below) or TileJSON instead of this URL.
TileJSON
GET https://axi0.world/map/api/v1/tiles.json
A TileJSON document describing the tiles: zoom range, bounds, the vector layers, the attribution, and tile URLs
that already carry your key. Use it as the url of a vector source in your own style:
map.addSource("axi0", { type: "vector", url: "https://axi0.world/map/api/v1/tiles.json?key=YOUR_KEY" });
Styles
GET https://axi0.world/map/api/v1/styles/night.json
GET https://axi0.world/map/api/v1/styles/day.json
Complete map styles, axi0 Night and axi0 Day, ready for open-source web map renderers: layers, fonts and icons. Every URL inside (tiles, glyphs, sprites) points back at this API with your key, so one key is all a page needs.
Search
GET https://axi0.world/map/api/v1/search?q={text}&limit={n}&near={lat},{lon}&bbox={west},{south},{east},{north}
Places by name: countries, regions, cities, towns, villages and neighbourhoods, airports, parks, islands, peaks,
beaches, ruins and other landmarks. In the United States and Mexico also businesses and points of interest by
name, brand or kind, nearest first: Starbucks, coffee, pharmacy, farmacia, gas station, gasolinera,
hotel. Accents and case do not matter (cancun finds Cancún), and the start of a word is enough (starb).
| Parameter | Required | Meaning |
|---|---|---|
q | required | the text to look for, e.g. Tulum, Austin, TX, CUN, Starbucks, farmacia en Cancún |
limit | optional | how many results, 1 to 20 (default 8) |
near | optional | lat,lon: rank places near this point higher, and businesses nearest to it first |
bbox | optional | west,south,east,north in degrees, e.g. the map in view: businesses inside it come first; it stands in for near when you leave that out |
A place the text names outright comes first (Austin); Starbucks Austin or coffee in Big Sky looks for the
businesses around the place the text ends with.
Results come best first:
{
"results": [
{
"country": "Mexico",
"country_code": "MX",
"county": "Tulum",
"id": 57891,
"kind": "town",
"label": "Town",
"lat": 20.21173,
"lon": -87.46325,
"name": "Tulum",
"population": 18233,
"region": "Quintana Roo"
}
]
}
A business (q=starbucks&near=30.2672,-97.7431):
{
"address": "600 Congress Ave",
"brand": "Starbucks",
"category": "coffee_shop",
"country": "United States",
"country_code": "US",
"distance_m": 146.0,
"id": 1000988522,
"kind": "poi",
"label": "Coffee shop",
"lat": 30.268459,
"locality": "Austin",
"lon": -97.742661,
"name": "Starbucks",
"postcode": "78701",
"region": "Texas"
}
| Field | Meaning |
|---|---|
name | the display name (English where one exists) |
local_name | the name in the local language, when it differs |
kind | city, town, village, neighborhood, locality, country, region, airport, park, peak, island, beach, water, site, resort or natural; poi for a business or point of interest |
label | a human word for the kind: City, Town, State, County, Airport, ...; for a business its kind: Coffee shop, Pharmacy, Gas station, ... |
category | businesses: the kind as a key (coffee_shop, pharmacy, gas_station, ...) |
brand | businesses: the chain it belongs to, when known (for example Starbucks) |
address, locality, postcode | businesses: street address, town and postal code, when known |
region, county, country | where the place is (first and second level regions, country) |
country_code | ISO 3166-1 two-letter code |
lat, lon | WGS 84 coordinates |
population | when known |
distance_m | metres from near, when you sent it |
id | identifies the place within the current data build; it can change when the data is rebuilt (businesses: 1,000,000,000 and up) |
Fields without a value are left out. New fields may appear; existing ones stay for the life of v1.
Reverse
GET https://axi0.world/map/api/v1/reverse?lat={lat}&lon={lon}
The place at or nearest to a point: the town or neighbourhood you are in, with its region and country.
{
"lat": 30.2672,
"lon": -97.7431,
"result": {
"country": "United States",
"country_code": "US",
"county": "Travis County",
"distance_m": 7.0,
"id": 2695,
"kind": "city",
"label": "City",
"lat": 30.26715,
"lon": -97.74306,
"name": "Austin",
"population": 974447,
"region": "Texas"
}
}
result has the same fields as a search result, with distance_m from your point; it is null when no place
is near enough. Each reverse request counts as one search.
Data APIs
The same key opens our data APIs: exchange rates from four central banks, time zones, public holidays, countries
and regions, the country or city of an IP address, QR codes and barcodes, postal codes, airports, earthquakes,
World Bank indicators, sunrise, sunset and the moon, phone numbers, and random values and placeholder text. They
share one monthly budget, data API calls, next to your tiles and searches (see Limits). We host all of it ourselves on open data whose licences allow any use,
commercial use included; nothing you send reaches a third party. Answers carry an attribution field where a
licence asks for a credit: show it wherever you show the data (see Data and attribution).
| GET | What it returns | Data |
|---|---|---|
/map/api/v1/fx/latest | euro reference rates of the latest working day | European Central Bank, daily since 1999 |
/map/api/v1/fx/{date} | the rates on that day (or the working day before) | |
/map/api/v1/fx/{start}..{end} | every working day in a range of up to 400 days | |
/map/api/v1/fx/currencies | the currencies and their names | |
/map/api/v1/timezone?lat=&lon= | the time zone at a point, its offset, daylight saving, local time | time zone boundaries from OpenStreetMap |
/map/api/v1/timezone/{zone} | the same for a zone name such as America/Denver | the tz database |
/map/api/v1/timezone/zones | every zone name | |
/map/api/v1/holidays/{country}/{year} | the public holidays of a country (and its regions), 2000 to 2040 | open holiday rules for 250 countries |
/map/api/v1/holidays/countries | the countries and their region codes | |
/map/api/v1/countries | every country: codes, capital, continent, currency, calling code | GeoNames |
/map/api/v1/countries/{code} | one country in full (alpha-2, alpha-3 or numeric code) | GeoNames |
/map/api/v1/countries/{code}/regions | its first-level regions (states, provinces) | GeoNames |
/map/api/v1/fx/latest?source=fed | the same requests over the Federal Reserve's (fed), the Bank of Canada's (boc) or the Czech National Bank's (cnb) rates | each bank's own publication |
/map/api/v1/ip/{address} | the country of an IPv4 or IPv6 address; /ip alone answers for your own | DB-IP |
/map/api/v1/ip/{address}?level=city | the same plus region, city and coordinates | DB-IP |
/map/api/v1/codes/{type}?text= | a QR code (qrcode) or barcode (code128, ean13, datamatrix, pdf417, ...) as SVG | |
/map/api/v1/postal/{country}/{code} | the places and coordinates of a postal code (123 countries) | GeoNames; Great Britain: ONS |
/map/api/v1/airports/{code} | an airport by IATA, ICAO or GPS code: runways, links | OurAirports |
/map/api/v1/airports?country= | a country's airports with scheduled service, large and medium ones | |
/map/api/v1/airports/near?lat=&lon= | every airport, heliport and seaplane base near a point, nearest first | |
/map/api/v1/quakes | earthquakes of the past hour, day, week or month, worldwide or near a point | U.S. Geological Survey |
/map/api/v1/worldbank/{indicator}?country= | one of 1,489 World Development Indicators by year, 1960 on | World Bank |
/map/api/v1/sun?lat=&lon= | sunrise, sunset, twilight, golden hour and the sun's position | computed |
/map/api/v1/moon?lat=&lon= | the moon's phase, illumination, rise and set | computed |
/map/api/v1/phone/{number} | a phone number parsed, validated, formatted and typed (mobile, fixed line, ...) | computed |
/map/api/v1/random/{kind} | UUIDs, random integers, floats, bytes and strings, placeholder text | computed |
Each request counts as one data API call, whether it finds something or not (404); a request we refuse as
malformed (400) is not counted. Free keys also have a daily ceiling on data API calls (see
Limits).
Exchange rates
GET https://axi0.world/map/api/v1/fx/latest?base=USD&symbols=EUR,MXN,JPY
{
"amount": 1,
"base": "USD",
"date": "2026-10-27",
"rates": {
"EUR": 0.896861,
"JPY": 157.821,
"MXN": 18.6368
},
"note": "Rates against USD are worked out by axi0 through the euro from the ECB's euro reference rates. Reference rates, published for information purposes only: the ECB strongly discourages using them for transactions.",
"attribution": "Source: ECB statistics (euro foreign exchange reference rates), https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html"
}
base(orfrom): the currency the rates are against, defaultEUR.symbols(orto): a comma list, default all.amount: multiply, default 1. The request shape follows the common open format for ECB rates, so existing clients work.- The ECB publishes rates against the euro around 16:00 CET on working days; we pick each day up within minutes.
Rates against another base are worked out by us through the euro, and the answer says so (
note), as the ECB's terms ask. They are reference rates for information: do not use them to settle payments. - A range:
GET /map/api/v1/fx/2026-10-01..2026-10-07?symbols=USD
{
"amount": 1,
"base": "EUR",
"start_date": "2026-10-01",
"end_date": "2026-10-07",
"rates": {
"2026-10-01": {
"USD": 1.1298
},
"2026-10-02": {
"USD": 1.1225
}
},
"note": "Reference rates, published for information purposes only: th...",
"attribution": "..."
}
Time zones
GET https://axi0.world/map/api/v1/timezone?lat=20.211&lon=-87.465
{
"lat": 20.211,
"lon": -87.465,
"zone": "America/Cancun",
"utc_offset": "-05:00",
"utc_offset_seconds": -18000,
"dst": false,
"abbreviation": "EST",
"local_time": "2026-10-28T10:00:00-05:00",
"weekday": "Wednesday",
"at": "2026-10-28T15:00:00Z",
"accuracy": "approximate within a few kilometres of a zone border",
"attribution": "Time zone boundaries: timezone-boundary-builder, © OpenStreetMap contributors (ODbL 1.0)"
}
at: another moment, as unix seconds or ISO 8601 (default now). The offset,dstand the local time follow the tz database for that moment.- The zone for a point is exact away from borders and can be off within a few kilometres of a border, mostly at sea
and in empty land (
accuracysays so). By name:GET /map/api/v1/timezone/Europe/Berlin.
Public holidays
GET https://axi0.world/map/api/v1/holidays/MX/2026
{
"country": "MX",
"year": 2026,
"region": null,
"holidays": [
{
"date": "2026-01-01",
"name": "New Year's Day",
"local_name": "Año Nuevo",
"regions": null
},
{
"date": "2026-02-02",
"name": "Constitution Day",
"local_name": "Día de la Constitución",
"regions": null
},
{
"date": "2026-03-16",
"name": "Benito Juárez's birthday",
"local_name": "Natalicio de Benito Juárez",
"regions": null
},
{
"...": "4 more"
}
]
}
regions: nullis a holiday for the whole country; otherwise the list of region codes that keep it.region=BYanswers the national holidays plus that region's own (/holidays/DE/2026?region=BY).local_nameis the name in the country's own language when it differs. Region codes per country:/map/api/v1/holidays/countries.- Years 2000 to 2040, public holidays only (no school or bank holidays). Governments move holidays now and then: we rebuild the tables when the rules change.
Countries and regions
GET https://axi0.world/map/api/v1/countries/MX
{
"code": "MX",
"code3": "MEX",
"numeric": "484",
"fips": "MX",
"name": "Mexico",
"capital": "Mexico City",
"area_km2": 1972550,
"population": 131946900,
"continent": "NA",
"continent_name": "North America",
"tld": ".mx",
"currency": {
"code": "MXN",
"name": "Peso"
},
"calling_code": "+52",
"postal_code": {
"format": "#####",
"regex": "^(\\d{5})$"
},
"languages": [
"es-MX"
],
"geonameid": 3996063,
"neighbours": [
"GT",
"US",
"BZ"
],
"regions_count": 32,
"attribution": "Country and region data: GeoNames (https://www.geonames.org), CC BY 4.0; format changed by axi0"
}
lang=es(any language tag) addslocalized_name, the country's name in that language./countries/MX/regions:
{
"country": "MX",
"regions": [
{
"code": "01",
"name": "Aguascalientes",
"name_ascii": "Aguascalientes",
"geonameid": 4019231
},
{
"code": "02",
"name": "Baja California",
"name_ascii": "Baja California",
"geonameid": 4017700
},
{
"...": "30 more"
}
],
"attribution": "Country and region data: GeoNames (https://www.geonames.org), CC BY 4.0; format changed by axi0"
}
IP to country
GET https://axi0.world/map/api/v1/ip/8.8.8.8
{
"ip": "8.8.8.8",
"country_code": "US",
"country": "United States",
"continent_code": "NA",
"continent": "North America",
"eu": false,
"attribution": "IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0"
}
- IPv4 and IPv6.
/map/api/v1/ipwith no address answers for the address your request comes from.lang=picks the names' language where the data has it (de, en, es, fa, fr, ja, ko, pt-BR, ru, zh-CN). Private and reserved addresses answernullfields. The data is refreshed monthly; country accuracy is good, not perfect. - City level: add
level=city.GET /map/api/v1/ip/8.8.8.8?level=city
{
"ip": "8.8.8.8",
"country_code": "US",
"country": "United States",
"continent_code": "NA",
"continent": "North America",
"eu": false,
"region": "California",
"city": "Mountain View",
"lat": 37.422,
"lon": -122.085,
"accuracy": "city level: often tens of kilometres off, never a street address",
"attribution": "IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0"
}
A city answer is a guess from public network data: good enough to pre-fill a form or pick a nearby store, never good enough to locate a person.
QR codes and barcodes
GET https://axi0.world/map/api/v1/codes/qrcode?text=https://axi0.world/map/ answers an SVG image
(image/svg+xml), ready for an <img> tag.
qrcode: up to 1,000 bytes of text,ecc=L|M|Q|H(default M),scale1 to 10,margin0 to 20.- Any other symbology by its name:
code128,code39,ean13,ean8,upca,upce,itf14,datamatrix,pdf417,azteccode,gs1-128,isbnand about 100 more; up to 80 bytes for linear codes and 300 for 2D ones,includetext=1prints the text under a linear code,height1 to 100 (millimetres). - Inputs a symbology cannot encode (a check digit that does not match, letters in an EAN) answer
400with the reason. - Placeholder images:
GET /map/api/v1/codes/placeholder?w=640&h=360answers a grey SVG box with its size written in the middle;bgandfgare hex colours (bg=222&fg=fff),textreplaces the size (up to 60 characters),wandh1 to 4,000.
More exchange rates
Add source= to any exchange-rate request to use another central bank's own rates instead of the ECB's:
source | Bank | Rates against | Days | Published |
|---|---|---|---|---|
ecb (default) | European Central Bank | EUR, 30 currencies | 1999 on | working days around 16:00 CET |
fed | Federal Reserve Board, H.10 | USD, 23 currencies | 1999 on | weekly (Mondays), one rate a day |
boc | Bank of Canada | CAD, 24 currencies | 2017 on | working days by 16:30 ET |
cnb | Czech National Bank | CZK, 30 currencies | 1999 on | working days after 14:30 CET |
GET https://axi0.world/map/api/v1/fx/2026-10-23?source=fed&symbols=EUR,JPY,MXN
{
"source": "fed",
"amount": 1,
"base": "USD",
"date": "2026-10-23",
"rates": {
"EUR": 0.892937,
"JPY": 156.87,
"MXN": 18.6638
},
"note": "Noon buying rates in New York, published weekly by the Federal Reserve Board, for information. The Board quotes the pound, euro, Australian and New Zealand dollars as US dollars per unit; we show every currency per 1 USD (1 / the published rate for those four).",
"attribution": "Source: Board of Governors of the Federal Reserve System, H.10 Foreign Exchange Rates (https://www.federalreserve.gov/releases/h10/)"
}
- Every answer gives units of each currency per 1
base, as with the ECB. Where a bank publishes the other way round (the Bank of Canada and the CNB quote their own currency per unit), we turn it over and thenotesays so;base=another currency works it out through the bank's home currency, and thenotesays that too. - We copy each bank's new day within the hour after it publishes. The rates are for information, not for settling payments. We left out the National Bank of Poland: its terms allow copies only for personal, non-commercial use.
Postal codes
GET https://axi0.world/map/api/v1/postal/US/59716
{
"country": "US",
"code": "59716",
"places": [
{
"place": "Big Sky",
"admin1": "Montana",
"admin1_code": "MT",
"admin2": "Gallatin",
"admin2_code": "031",
"admin3": null,
"admin3_code": null,
"lat": 45.2847,
"lon": -111.3683,
"accuracy": 4
}
],
"attribution": "Postal codes: GeoNames (https://www.geonames.org), CC BY 4.0; format changed by axi0"
}
- 123 countries;
/map/api/v1/postal/countrieslists them with their counts. Spaces and hyphens in a code do not matter (SW1A 1AA,sw1a1aa). A code can cover several places; past 200 we list the first 200 and say how many more there are (more_places).accuracyis GeoNames' own: 1 estimated, 4 from the place, 6 a centroid. - Great Britain comes from the ONS Postcode Directory, every live postcode to its centre point:
GET /map/api/v1/postal/GB/SW1A%201AAanswers"part": "England", "region": "London"with region and district codes and the three statements its licence asks for. Northern Ireland (BT) postcodes are not in our data: their licence needs a separate agreement for commercial use. - Some countries publish only the first part of their codes (Ireland, Malta, Chile and others); GeoNames' coverage is not every address.
Airports
GET https://axi0.world/map/api/v1/airports/LAX
{
"ident": "KLAX",
"type": "large_airport",
"name": "Los Angeles International Airport",
"lat": 33.942501,
"lon": -118.407997,
"elevation_ft": 125,
"continent": "NA",
"country": "US",
"region": "US-CA",
"municipality": "Los Angeles",
"scheduled_service": true,
"icao": "KLAX",
"iata": "LAX",
"gps_code": "KLAX",
"local_code": "LAX",
"home_link": "https://www.flylax.com/",
"wikipedia": "https://en.wikipedia.org/wiki/Los_Angeles_International_Airport",
"runways": 4,
"longest_runway_ft": 12894,
"surfaces": ["CON"],
"lighted": true,
"attribution": "Airports: OurAirports (https://ourairports.com/data/), public domain"
}
- By IATA (
LAX), ICAO (KLAX), GPS code or the OurAirports ident (US-1234). When a code is shared, the airport with scheduled service comes first andalsonames the others. GET /map/api/v1/airports?country=MX&type=large_airport: a country's airports with scheduled service and the large and medium ones, by name.typeis any oflarge_airport,medium_airport,small_airport,heliport,seaplane_base,balloonport;limitup to 500.GET /map/api/v1/airports/near?lat=20.211&lon=-87.465&radius_km=60: every kind near a point, nearest first, withdistance_km;radius_km1 to 500 (default 100),limitdefault 10.- 72,675 places that are not closed, from a community database: not for navigation.
Earthquakes
GET https://axi0.world/map/api/v1/quakes?period=day&min_magnitude=5&limit=1
{
"period": "day",
"generated": "2026-10-28T15:43:25.000Z",
"copied_at": "2026-10-28T15:43:47.461Z",
"total": 14,
"quakes": [
{
"id": "us7000ttpe",
"time": "2026-10-28T15:07:52.050Z",
"magnitude": 5.5,
"magnitude_type": "mww",
"place": "5 km ESE of Asahi, Japan",
"lat": 35.7015,
"lon": 140.7059,
"depth_km": 41.356,
"tsunami": false,
"significance": 470,
"alert": "green",
"status": "reviewed",
"felt": 13,
"url": "https://earthquake.usgs.gov/earthquakes/eventpage/us7000ttpe"
}
],
"attribution": "Earthquakes: U.S. Geological Survey, Earthquake Hazards Program (https://earthquake.usgs.gov), public domain; copied by axi0 every 10 minutes"
}
period:hour,day(default; every magnitude),week(2.5 and up),month(4.5 and up) orsignificant(the month's significant ones).min_magnitude,limit(up to 1,000),order=time|magnitude|distance.- Near a point:
lat,lonandradius_km(default 500): each quake getsdistance_km, nearest first. GET /map/api/v1/quakes/us7000ttpe: one event.alertis the PAGER level (green, yellow, orange, red);statusautomaticevents can still change.- We copy the U.S. Geological Survey's feeds every 10 minutes (the past day) and every hour (the rest), so an answer is at most about ten minutes behind (an hour for the week and month). For warnings, use your national service, not this API.
World Bank indicators
GET https://axi0.world/map/api/v1/worldbank/SP.POP.TOTL?country=MX&from=2021
{
"indicator": {
"id": "SP.POP.TOTL",
"name": "Population, total",
"unit": "Unit",
"topic": "Health: Population: Structure",
"source": "World Population Prospects, United Nations (UN) ...",
"definition": "Total population is based on the de facto definition of population ..."
},
"data": [
{
"country": "MEX",
"country_name": "Mexico",
"values": [[2021, 127648148], [2022, 128613117], [2023, 129739759], [2024, 130861007], [2025, 131946900]]
}
],
"attribution": "World Bank, World Development Indicators (https://datacatalog.worldbank.org/search/dataset/0037712), CC BY 4.0; format changed by axi0"
}
country: up to 30 codes, two or three letters (MXorMEX; aggregates such asWLDfor the world), orall.fromandtoare years. Years with no value are left out.GET /map/api/v1/worldbank/indicators?q=gdpsearches the 1,489 indicators by name or id (topic=too);GET /map/api/v1/worldbank/countrieslists the economies with their regions and income groups.- We serve the indicators the World Bank licenses under CC BY 4.0 and leave out the few under other terms. Figures are revised by the World Bank a few times a year; we follow its releases.
Sun and moon
GET https://axi0.world/map/api/v1/sun?lat=45.284&lon=-111.401&date=2026-10-28
{
"lat": 45.284,
"lon": -111.401,
"date": "2026-10-28",
"zone": "America/Denver",
"utc_offset": "-06:00",
"sunrise": "2026-10-28T08:00:15-06:00",
"sunset": "2026-10-28T18:20:55-06:00",
"solar_noon": "2026-10-28T13:10:35-06:00",
"day_length_seconds": 37240,
"polar": null,
"civil_dawn": "2026-10-28T07:29:47-06:00",
"civil_dusk": "2026-10-28T18:51:23-06:00",
"nautical_dawn": "2026-10-28T06:55:09-06:00",
"nautical_dusk": "2026-10-28T19:26:00-06:00",
"astronomical_dawn": "2026-10-28T06:20:58-06:00",
"astronomical_dusk": "2026-10-28T20:00:12-06:00",
"golden_hour_morning_end": "2026-10-28T08:42:06-06:00",
"golden_hour_evening_start": "2026-10-28T17:39:03-06:00",
"position": { "at": "2026-10-28T09:42:24-06:00", "altitude_deg": 15.2, "azimuth_deg": 127.49 },
"attribution": "Computed by axi0 with suncalc (BSD-2-Clause); time zone boundaries: timezone-boundary-builder, © OpenStreetMap contributors (ODbL 1.0)"
}
- Times are local at the point (its time zone from our time zone data, or
tz=to choose one), fordate(default: today there).at=(unix seconds or ISO 8601) is the moment forposition;azimuth_degis a compass bearing. Above the polar circles a day can have no sunrise or sunset:polarsayspolar_dayorpolar_nightand those times arenull. GET /map/api/v1/moon?lat=45.284&lon=-111.401&date=2026-10-28answersphase(0 new, 0.5 full),phase_name,illumination,age_days,moonrise,moonset(null on a day without one),always_up,always_downand the moon'spositionwithdistance_km.- Computed with a published astronomy formula set: within about a minute of almanac times, less exact near the horizon at high latitudes.
Phone numbers
GET https://axi0.world/map/api/v1/phone/%2B525512345678 (a + in a path is sent as %2B)
{
"input": "+525512345678",
"valid": true,
"possible": true,
"country": "MX",
"calling_code": "+52",
"national_number": "5512345678",
"e164": "+525512345678",
"international": "+52 55 1234 5678",
"national": "55 1234 5678",
"rfc3966": "tel:+525512345678",
"type": "fixed_line_or_mobile",
"extension": null,
"attribution": "Parsed by axi0 with libphonenumber-js (MIT), metadata from Google's libphonenumber (Apache-2.0)"
}
- A national number needs its country:
GET /map/api/v1/phone?number=(406)%20995-4000&country=US. typeismobile,fixed_line,fixed_line_or_mobile(countries where the two share ranges, such as the US and Mexico),toll_free,premium_rate,shared_cost,voip,personal_number,pager,uanorvoicemail. A number that cannot be a phone number answersvalid: falsewith areason(too_short,too_long,invalid_country, ...).validmeans the number fits its country's numbering plan, not that it is in service. We compute this on our edge; the number is not stored or sent anywhere.GET /map/api/v1/phone/countrieslists the calling codes.
Random values and placeholder text
| GET | Answers |
|---|---|
/map/api/v1/random/uuid?version=4&count=1 | UUIDs, version 4 (random) or 7 (time-ordered), up to 100 |
/map/api/v1/random/int?min=1&max=6&count=5 | integers from min to max inclusive, without bias, up to 1,000 |
/map/api/v1/random/float?count=1 | numbers from 0 (included) to 1 (excluded) |
/map/api/v1/random/bytes?length=16&format=hex | 1 to 1,024 random bytes as hex, base64 or base64url |
/map/api/v1/random/string?length=16&charset=alnum | strings from alnum, alpha, lower, upper, numeric, hex or base58 |
/map/api/v1/random/lorem?paragraphs=2 | placeholder text by paragraphs, sentences or words |
GET https://axi0.world/map/api/v1/random/uuid?version=7&count=2
{"version": 7, "uuids": ["01a1832d-44ef-74d5-bd03-b4d6fb14e29d", "01a1832d-44ef-74d5-bd03-bbad0a0806e1"]}
- Values come from the runtime's cryptographic generator and are never cached (
Cache-Control: no-store). For passwords and keys, generate them on the device that uses them: a value that travelled over a network is one more copy.
Limits
Every plan has a rate limit per key (requests per second, with a short burst allowance) and monthly amounts of map tiles, searches and data API calls for the whole account:
| Plan | Price | Tiles a month | Searches a month | Data API calls a month | Requests a second (burst) | Keys |
|---|---|---|---|---|---|---|
| Free | Free | 100,000 | 5,000 | 10,000 | 10 (20) | 3 |
| Builder | $19 a month | 1,000,000 | 50,000 | 100,000 | 50 (100) | 10 |
| Pro | $79 a month | 5,000,000 | 250,000 | 500,000 | 200 (400) | 25 |
| Enterprise | Talk to us | no cap | no cap | no cap | 500 (1000) | 100 |
- Each tile request counts as one tile; each search or reverse request as one search; each request to a data API as one data API call. Style and TileJSON requests count towards the rate limit only.
- Months follow UTC and reset on the 1st.
- Free keys have two daily ceilings on data API calls, so the free plan stays free for everyone: 1,000 a day
per key, and a shared ceiling for all Free keys together. Both reset at 00:00 UTC; over either the API answers
429(daily_limitorfree_daily_limit) withRetry-Afteruntil midnight UTC. Paid plans have no daily ceiling and are never held back by the shared one. - Per address, at our edge: more than 60 requests in 10 seconds from one IP address to
/map/api/v1/(tiles excepted) are refused with a plain429page for 10 seconds, whatever the key or plan. It stops runaway loops before they reach the API; space requests out, and on a429wait 10 seconds before retrying. - Over a limit the API answers
429until the second (rate) or the month (monthly amount) turns, or until you move to a bigger plan. There are no overage charges: nothing is ever billed for extra use.
Every keyed response tells you where you stand:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | the key's burst: how many requests it may make at once |
X-RateLimit-Remaining | how many it may make right now (refills at the plan's rate per second) |
X-RateLimit-Reset | seconds until it is full again |
Retry-After | on 429 only: seconds to wait before trying again |
The rate limit counts per key; the monthly amounts count for the whole account (all its keys together, so a new or rotated key does not start a new allowance).
Your dashboard shows this month's tiles, searches and data API calls against your plan, per key and in total.
Errors
Errors are JSON with a stable code and a human message:
{"error": {"code": "key_invalid", "message": "this API key does not exist"}}
| Status | code | What happened |
|---|---|---|
| 401 | key_missing | no key in ?key= or Authorization: Bearer |
| 401 | key_invalid | the key does not exist (typo, deleted account) |
| 403 | key_revoked | the key was revoked or rotated in the dashboard |
| 403 | origin_not_allowed | the request came from a site that is not in the key's allowed origins |
| 429 | rate_limited | too many requests this second; see Retry-After |
| 429 | monthly_limit | the account used this month's tiles, searches or data API calls; see Retry-After |
| 429 | daily_limit | a Free key made today's 1,000 data API calls; resets at 00:00 UTC |
| 429 | free_daily_limit | Free keys together used today's data API allowance; resets at 00:00 UTC (paid keys are not affected) |
| 429 | (a plain page, no JSON) | more than 60 requests in 10 seconds from one IP address (tiles excepted); wait 10 seconds |
| 400 | bad_request | a parameter is missing or out of range; the message says which |
| 404 | not_found | no such endpoint, style or zoom level |
| 503 | unavailable | a part of the service is restarting; retry in a few seconds |
Retry 429 after Retry-After seconds and 503 after a short pause. Do not retry 400, 401 or 403: fix the
request, the key or its origins.
Attribution
The map data is © OpenStreetMap contributors, and its license requires the credit wherever the map is shown. You must show "© OpenStreetMap", linked to https://www.openstreetmap.org/copyright, on every map that uses this API.
Our styles put the credit in the map's attribution control, and the renderer in the quick start shows it by default: keep that control visible (you may collapse it to the "i" button on small screens). If you draw our tiles with a style of your own, the TileJSON carries the attribution; make sure your map displays it.
Data and attribution
| What | Source | License |
|---|---|---|
| Map data (roads, buildings, places, land use, water, borders) | © OpenStreetMap contributors | Open Database License (ODbL) 1.0 |
| Place names for search and reverse | GeoNames | Creative Commons Attribution 4.0 (CC BY 4.0) |
Businesses and points of interest in search (kind poi) | open places data from several providers | Community Data License Agreement – Permissive 2.0 (some records public domain, CC0 1.0) |
| Map styles, icons and the tiles' packaging | axi0 | free to use with this API |
Exchange rates (/fx) | European Central Bank, euro foreign exchange reference rates | free reuse, commercial use included, with the source quoted |
Time zone at a point (/timezone) | timezone-boundary-builder, © OpenStreetMap contributors | Open Database License (ODbL) 1.0 |
Countries and regions (/countries) | GeoNames | Creative Commons Attribution 4.0 (CC BY 4.0) |
IP to country (/ip) | DB-IP, IP to Country Lite | Creative Commons Attribution 4.0 (CC BY 4.0) |
Public holidays (/holidays), codes (/codes) | axi0 tables and images, made with open-source software (MIT) | free to use with this API |
More exchange rates (/fx?source=) | Federal Reserve Board (H.10), Bank of Canada, Czech National Bank | public domain (Fed); free reuse with the source named (Bank of Canada, CNB) |
IP to city (/ip?level=city) | DB-IP, IP to City Lite | Creative Commons Attribution 4.0 (CC BY 4.0) |
Postal codes (/postal) | GeoNames; Great Britain: Office for National Statistics, ONS Postcode Directory | CC BY 4.0; Open Government Licence v3.0 |
Airports (/airports) | OurAirports | public domain |
Earthquakes (/quakes) | U.S. Geological Survey, Earthquake Hazards Program | public domain |
World Bank indicators (/worldbank) | World Bank, World Development Indicators | Creative Commons Attribution 4.0 (CC BY 4.0) |
Sun and moon (/sun, /moon), phone numbers (/phone), random values (/random) | computed by axi0 with open-source software (BSD-2-Clause, MIT, Apache-2.0) | free to use with this API |
-
ODbL: show "© OpenStreetMap" as described above. If you publish a database built from the API's data, it must stay under the ODbL; see https://www.openstreetmap.org/copyright.
-
CC BY 4.0: where your app shows search or reverse results, credit "GeoNames" (https://www.geonames.org/), for example in your app's about or credits screen. License: https://creativecommons.org/licenses/by/4.0/.
-
CDLA-Permissive-2.0: no credit needed to show business results. If you pass the business data on to others as data, include the agreement's text: https://cdla.dev/permissive-2-0/ (also in licenses.txt).
-
Data APIs: show the answer's
attributiontext where you show the data: "Source: ECB statistics" next to exchange rates (and say when you converted them yourself), "IP Geolocation by DB-IP" linked to https://db-ip.com next to IP results, "GeoNames" for countries and regions, "© OpenStreetMap contributors" for time zones by point. Holidays and codes need no credit. -
More data APIs: the same rule. "Source: CNB" or "Source: Bank of Canada" next to those banks' rates (and say when you converted them yourself); "GeoNames" for postal codes, and for British postcodes the three statements in the answer ("Contains OS data ...", "Contains Royal Mail data ...", "Source: Office for National Statistics licensed under the Open Government Licence v.3.0"); "World Bank, World Development Indicators, CC BY 4.0" and a note if you changed the figures; "IP Geolocation by DB-IP" for city results as for countries. The Federal Reserve's rates, OurAirports, the USGS feeds and the computed APIs need no credit by law; we credit them anyway and you are welcome to do the same.
The map's credits are also on our Data sources page.
Coverage
Today the map covers the whole world down to city level, the contiguous United States and Mexico one step closer, and full street detail (zoom 11 to 15) in four regions: the Austin metro area (Texas), the Riviera Maya and Cancún (Quintana Roo), León and Guanajuato (Mexico) and Big Sky to Bozeman (Montana). Elsewhere, closer zooms enlarge the most detailed tile available. More regions follow; the same API and styles will carry them.
Place search covers the whole world. Business search covers the United States and Mexico: about 2.9 million businesses and points of interest, that is 2.3 million branches of known chains, museums, hospitals, schools, stations, parks and other landmarks, and the other listed businesses in the four street-detail regions.
Plans and billing
Start on Free with no card. Paid plans are monthly subscriptions: upgrade from the dashboard, and change plan, update your card, see invoices or cancel under Manage billing. A cancelled plan runs until the end of the period you paid for. If a payment fails, your paid limits stay for 7 days while it is retried, then the account moves to Free until a payment goes through.
Versions and support
The API is versioned in the path (/v1). Within a version we only add things (new fields, new endpoints);
anything that would break your code gets a new version. Service status: https://axi0.online/. Questions and
Enterprise plans: write to us.