Cuelark Data / API
Cuelark Data API
Earthquakes, airports, time, sun and countries as clean JSON. Free during the beta, no key, CORS enabled, cached at the edge.
Earthquakes
GET /v1/earthquakes
Recent earthquakes from a USGS feed. Parameters: level = significant, 4.5, 2.5 (default), 1.0, all · period = hour, day (default), week, month (month for significant/4.5/2.5) · min_mag · lat+lon+radius_km (default 500) · sort = time | mag · limit (max 2000).
curl 'https://data.cuelark.com/v1/earthquakes?level=4.5&period=week&sort=mag&limit=5'
GET /v1/earthquakes/{id}
One event by USGS id, with felt reports, intensity, PAGER alert, tsunami flag and a plain-English summary.
curl https://data.cuelark.com/v1/earthquakes/us7000abcd
{
"source": "U.S. Geological Survey Earthquake Hazards Program",
"license": "Public domain (U.S. Government work)",
"attribution": "Data: U.S. Geological Survey",
"quake": { "id": "us7000abcd", "mag": 5.6, "place": "…", "time": 1795538251591, "depth": 10, "felt": 120, "alert": "green", "tsunami": 0 },
"summary": "A magnitude 5.6 moderate earthquake occurred …",
"page": "https://data.cuelark.com/earthquakes/us7000abcd"
}Airports
GET /v1/airports/{code}
One airport by IATA (JFK), ICAO (KJFK) or OurAirports ident: codes, location, elevation, runways, frequencies, time zone and nearby airports.
curl https://data.cuelark.com/v1/airports/del
GET /v1/airports?q=
Search by name, city or code. Optional country (ISO 3166-1 alpha-2) and limit (max 500).
curl 'https://data.cuelark.com/v1/airports?q=heathrow'
GET /v1/airports/nearest?lat=&lon=
Nearest airports with an IATA code or scheduled service. Optional radius_km (default 500), scheduled=true, limit (max 50).
GET /v1/distance?from=&to=
Great-circle distance between two airports in km, miles and nautical miles, plus the initial bearing.
curl 'https://data.cuelark.com/v1/distance?from=DEL&to=JFK'Time, time zones and sun
GET /v1/cities/{slug}
One city (GeoNames, 15,000+ people): location, population, time zone, current local time and UTC offset, daylight saving changes this year and next, today's sunrise, sunset and twilight, nearby cities and airports.
curl https://data.cuelark.com/v1/cities/london-gb
GET /v1/cities?q=
Search cities by name, largest first. Optional country, limit (max 100).
GET /v1/time
Current time anywhere: city (slug), tz (IANA name) or lat+lon (time zone looked up from coordinates). Add to (city slug or IANA zone) for the time difference.
curl 'https://data.cuelark.com/v1/time?city=mumbai-in&to=new-york-city-us'
GET /v1/sun?lat=&lon=
Sunrise, sunset, solar noon, civil/nautical/astronomical twilight, golden hour and day length. Optional date (YYYY-MM-DD, default today at that place) and tz.
curl 'https://data.cuelark.com/v1/sun?lat=19.07&lon=72.88&date=2027-06-21'Countries
GET /v1/countries
All ${COUNTRIES} countries and territories with ISO codes, capital, population, area, currency, dialling code and languages.
GET /v1/countries/{code}
One country by ISO alpha-2 or alpha-3 code, with time zones, largest cities and airport counts.
curl https://data.cuelark.com/v1/countries/inUS aircraft (FAA registry)
GET /v1/aircraft/{n-number}
One aircraft: make, model, year, serial, type, seats, engine, registration status and dates, airworthiness class and operations, Mode S code (hex and octal). owner.name, city and zip are filled for organisations only; individuals, partnerships and co-owners return the state only.
curl https://data.cuelark.com/v1/aircraft/N102DN
GET /v1/aircraft?hex=
Look up by 6-character Mode S (ICAO 24-bit) hex code, e.g. from ADS-B. Also ?n=.
curl 'https://data.cuelark.com/v1/aircraft?hex=A00C7A'US ZIP codes
GET /v1/zip/{zip}
City, state, counties (with land share), centre, land and water area, time zone, Census ACS 5-year figures (population, median age, income, home value, rent, owner-occupied share, education, poverty) with the state figures, nearby ZIPs and airports.
curl https://data.cuelark.com/v1/zip/90210
GET /v1/zip?city=&state=
ZIP codes for a city (post-office name), largest population first. state is optional; limit up to 200.
curl 'https://data.cuelark.com/v1/zip?city=Austin&state=TX'
GET /v1/zip/nearest?lat=&lon=
Nearest ZIP codes to a point. Optional limit (max 50) and radius_km (max 100).
curl 'https://data.cuelark.com/v1/zip/nearest?lat=40.75&lon=-73.99'Limits and pricing
| Price | Free during the beta |
|---|---|
| Key | None needed |
| Rate limit | 120 requests per minute per IP (HTTP 429 with retry-after above it) |
| Caching | Earthquake lists 60 s, events 10 min, airports, cities, countries, aircraft and ZIP codes 1 day, time 30 s |
| Format | JSON, UTF-8, CORS * |
Paid plans with higher limits and keys from your Cuelark account are planned. There are no prices yet; when there are, keyless access will keep a free tier.
Alerts (planned)
Email and webhook alerts for earthquakes near places you choose are on the roadmap. Until then, Earthquakes near me can alert you while the tab is open.
MCP for AI assistants
The same data is available to Claude, ChatGPT, Cursor and other MCP clients at https://data.cuelark.com/mcp. Setup guide.
Attribution
Every response carries source, license and attribution. Credit "U.S. Geological Survey" for earthquakes and "OurAirports" for airports. City and country data and ZIP place names come from GeoNames and must be credited as "GeoNames (CC BY 4.0)" with a link to geonames.org. Aircraft come from the FAA Aircraft Registry and ZIP statistics from the U.S. Census Bureau (both public domain). Not for navigation or emergency use.
Questions
Do I need an API key?
No. During the beta every endpoint is free without a key, limited to 120 requests per minute per IP. Higher limits with a free key from your Cuelark account will come later; existing keyless access will keep working.
How fresh is the earthquake data?
Feeds are cached at the edge for 60 seconds and USGS updates every minute, so data is at most about two minutes old. Event details refresh every 10 minutes.
Can I use the data commercially?
Yes. USGS and OurAirports data are public domain; GeoNames city and country data are CC BY 4.0, which allows commercial use with attribution. Each response has source, license and attribution fields.
Is there an SLA?
Not during the beta. Responses are cached at the edge and the service runs on Cloudflare, but the upstream sources can be unavailable; the API then answers 502 and you should retry.