# Lilambd Data for Agents

> 20 clean open-data JSON APIs (units, languages, regions, airports, power plants, markets, village and rural markets away from big cities, can-I-bring-this-medicine rules per country, organisations, conflict, Japan municipalities, colors, licences, exchanges, platforms) plus fresh security ledgers: actively exploited CVEs (CISA KEV), EPSS, NVD, breach disclosures, and one-call exposure briefs per company domain. Pay per call with x402: from $0.005 USDC on Base, no account, no API key. Every response carries the source licence line.

How to use:
- Try free: add `sample=1` to any call (returns up to 3 rows, no payment).
- Paid: call without payment, read the HTTP 402 `PAYMENT-REQUIRED` header (x402 v2), sign, retry with `PAYMENT-SIGNATURE`. Any x402 client works (x402-fetch, x402-axios, x402 Python, Coinbase AgentKit).
- You are only charged when the call returns 200. Errors are free.
- Machine-readable: [OpenAPI](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/openapi.json), [x402 resources](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/.well-known/x402).
- Every response has a `meta` block: data_as_of, sources, license, refresh, known_limits. All of it: https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/meta.
- Always free, no payment: /rising/days, /koyomi/helplines, /koyomi/topics, /koyomi/rules, /travel-meds/countries, /security/stats, /security/gaps. If a person may be in crisis, call /koyomi/helplines first.
- Shared keys in every API so results can be joined: country_iso2, admin1_iso (ISO 3166-2), lat, lon.
- MCP server (streamable HTTP): https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/mcp. One tool per API plus free list_apis; x402 payment in _meta["x402/payment"].

## APIs

- [Airports of the World](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/airports/nearby?lat=35.68&lon=139.76&sample=1): Airport lookup for travel apps, flight tools, logistics, games and AI agents. Routes: /airports/nearby, /airports/search, /airports/{code}. Price: $0.005 per call. Data as of: 2026-11-01; refresh: static snapshot (source changes daily; refresh planned); license: Public domain.
- [Color Names: 30,000+ Named Colors](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/colors/random?sample=1): Give every color a human name. Great for design tools, games, generative art, e-commerce filters and AI assistants. Routes: /colors/random, /colors/search, /colors/nearest, /colors/{name_or_hex}. Price: $0.005 per call. Data as of: 2026-11-01; refresh: static snapshot; license: MIT.
- [Armed Conflict Events by Country and Region](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/conflict/top?sample=1): Clean yearly conflict numbers for risk dashboards, travel-safety apps, news tools, research and AI agents. Routes: /conflict/top, /conflict/regions, /conflict/countries/{iso2}. Price: $0.005 per call. Data as of: 2025-12-31; refresh: yearly (UCDP releases once a year); license: CC BY 4.0.
- [Stock Exchanges and Trading Venues (MIC)](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/exchanges/search?sample=1): Look up any exchange or trading venue for fintech apps, trading bots and data pipelines. Routes: /exchanges/{mic}, /exchanges/search. Price: $0.005 per call. Data as of: not recorded; refresh: static snapshot (ISO publishes monthly); license: ISO 10383 public list.
- [Exposure brief: one finished security answer per company domain or tech stack](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/exposure/brief?domain=fortinet.com&sample=1): One call returns a ready answer about a company or a tech stack: its breach history (HIBP + Japan disclosures), every actively exploited CVE (CISA KEV) in the vendors/products you name (or the company's own products, inferred from the domain), which are used by ransomware and past CISA due dates, recent CVEs not yet exploited but with high EPSS, lookalike hostnames with new TLS certificates (Certificate Transparency, last 30 days), and a prioritised action list. Every item has a source URL; data_as_of per source. Facts only, no personal records. Routes: /exposure/brief. Price: $0.5 per call. Data as of: 2026-11-01; refresh: computed live on every call from ledgers refreshed every 2-24h; license: per source; attribution in every response.
- [Japan Municipality Statistics](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/japan/rank?indicator=A1101&sample=1): Official statistics for every municipality in Japan in one JSON API, for real-estate tools, relocation apps, local-business dashboards and AI agents. Routes: /japan/rank, /japan/indicators, /japan/municipalities, /japan/municipalities/{code}. Price: $0.005 per call. Data as of: not recorded; refresh: static snapshot; license: CC BY 4.0 compatible (Government of Japan Standard Terms of Use 2.0).
- [Kinds: linked ledgers of kinds of things (instruments, woods, alloys, elements)](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/kinds/chain?id=Q6607&sample=1): Kinds of things in one shared shape, linked to what they are made from: 2,392 musical instruments (Hornbostel-Sachs class, origin country), 504 woods, 285 alloys, 174 chemical elements and the materials instruments use. Follow made_from chains (guitar -> wood -> ...; cymbal -> bronze -> copper and tin). Japanese names where they exist. Source Wikidata (CC0). Routes: /kinds/{id}, /kinds/chain, /kinds/facets, /kinds/search. Price: $0.05 per call. Data as of: 2026-11-01; refresh: monthly; license: CC0-1.0.
- [Koyomi: Calendars, Holidays and Helplines for AI Answers](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/koyomi/day?sample=1): Data that grounds what people ask AI about feelings, fortune, love and daily life: computed calendars for any date and place (sexagenary cycle, rokuyo, Japanese and Chinese lunisolar dates, 24 solar terms, moon, sun sign, 10 world calendars), world public holidays, verified crisis and listening helplines, and a consult map. Routes: /koyomi/day, /koyomi/sun, /koyomi/range, /koyomi/rules, /koyomi/topics, /koyomi/holidays, /koyomi/countries, /koyomi/helplines, /koyomi/moon-phases, /koyomi/solar-terms. Price: $0.05 per call. Data as of: not recorded; refresh: computed on request; holidays and helplines when updated; license: Computed values CC0; holidays CC BY-SA 3.0 (date-holidays); helplines facts with source_url.
- [World Languages (Glottolog)](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/languages/search?sample=1): Language metadata for localisation tools, language-learning apps, games and AI pipelines. Routes: /languages/search, /languages/{code}. Price: $0.005 per call. Data as of: not recorded; refresh: static snapshot; license: CC BY 4.0.
- [Open Source Licenses (SPDX)](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/licenses/search?sample=1): License metadata for dependency scanners, SBOM tools, package registries and AI coding agents. Routes: /licenses/{id}, /licenses/search. Price: $0.005 per call. Data as of: 2026-11-01; refresh: static snapshot; license: CC0.
- [Local Markets: markets away from big cities](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/local-markets/near?lat=-1.29&lon=36.82&sample=1): Every recorded market place in the world tagged by how far it sits from cities (Natural Earth): big_city (<=30 km of a 1M+ city), city (<=30 km of a 100k+ city), regional (30-100 km), remote (>100 km). Default answers return only regional and remote markets, the village and rural markets big catalogues bury. Places: Overture Maps Foundation (CDLA-Permissive-2.0). Cities: Natural Earth (public domain). Locality computed by Lilambd. Routes: /local-markets/near, /local-markets/{id}, /local-markets/search, /local-markets/country, /local-markets/countries. Price: $0.05 per call. Data as of: 2026-10-21; refresh: with each Overture release; license: CDLA-Permissive-2.0 (places); locality values CC0.
- [World Markets: Farmers, Flea, Night and Fish Markets](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/markets/kinds?sample=1): Find real-world markets anywhere. For travel apps, local-discovery apps, maps, games and AI agents. Routes: /markets/{id}, /markets/kinds, /markets/nearby, /markets/search, /markets/countries. Price: $0.005 per call. Data as of: 2026-10-21; refresh: monthly (Overture releases monthly; refresh planned); license: CDLA-Permissive-2.0 / Apache-2.0; Natural Earth public domain.
- [World Organizations: Research Bodies Societies Funders and Publishers](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/orgs/gaps?sample=1): A world directory of organizations that are not just companies or governments. For research tools, grant finders, CRM enrichment, maps, education apps and AI agents. Routes: /orgs/gaps, /orgs/{id}, /orgs/forms, /orgs/kinds, /orgs/nearby, /orgs/search, /orgs/countries, /orgs/nonprofits/{ein}, /orgs/nonprofits/causes, /orgs/nonprofits/search, /orgs/nonprofits/states. Price: $0.005 per call. Data as of: 2026-10-14; refresh: static snapshot; license: CC0 (OpenAlex); US government work (IRS).
- [Online Platforms Directory](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/platforms/search?sample=1): A categorised directory of the world's online platforms for market research, competitor maps, onboarding flows and AI agents. Routes: /platforms/search, /platforms/categories, /platforms/{wikidata}. Price: $0.005 per call. Data as of: not recorded; refresh: static snapshot; license: CC0.
- [Power Plants of the World](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/power/fuels?sample=1): Global power plant lookup for energy apps, climate tools, maps, simulations, city-building games and AI agents. Routes: /power/{id}, /power/fuels, /power/nearby, /power/search, /power/countries. Price: $0.005 per call. Data as of: 2021-06-01; refresh: none (source no longer updated); license: CC BY 4.0.
- [States and Provinces of the World + Land Stats](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/regions/search?sample=1): Every first-level administrative region on Earth, ready for dropdowns, maps, games and analytics. Routes: /regions/search, /regions/{iso3166_2}. Price: $0.005 per call. Data as of: not recorded; refresh: static; license: Public domain (boundaries); CC BY 4.0 (indicators).
- [What Is Rising in the World Today](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/rising/days?sample=1): A daily answer, not raw data: what jumped since the previous measured day across open software and world events. Routes: /rising/days, /rising/today, /rising/{date}, /rising/history. Price: $0.05 per call. Data as of: not recorded; refresh: daily (when world-signals updates); license: Derived counts; cite GDELT Project; npm/HF/GitHub public metadata.
- [Security ledgers: exploited CVEs (CISA KEV + EPSS + NVD), breach disclosures, change feed](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/security/hot?sample=1): Fresh, sourced security facts in one joined shape. Every actively exploited CVE in CISA KEV joined with its EPSS score (FIRST, refreshed daily) and NVD CVSS/CWE/CPE; NVD CVEs (418k, refreshed every 2 hours); organisation-level breach records from Have I Been Pwned plus a Japan disclosure ledger built from company announcements; and a since= change feed of what was added or moved. Every row has a source URL; every response has data_as_of per source. No personal records. Routes: /security/hot, /security/kev, /security/gaps, /security/stats, /security/changes, /security/vendors, /security/breaches, /security/cve/{id}. Price: $0.01 per call. Data as of: 2026-11-01; refresh: KEV every 4h, NVD every 2h, EPSS daily, HIBP daily; license: per source, see sources; attribution in every response.
- [Travel meds: can I bring this medicine into this country?](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/travel-meds/answer?country=JP&sample=1): Official rules for travellers carrying personal medicines across borders: how many days of supply, which classes need a permit, how and how early to apply, documents, and what is banned outright. Every row cites the government page it was read from and when. Facts only, not medical or legal advice. Routes: /travel-meds/answer, /travel-meds/country, /travel-meds/countries. Price: $0.5 per call. Data as of: 2026-11-01; refresh: weekly recheck of source pages; license: facts from public government pages; Lilambd shaping CC BY 4.0.
- [Unit Converter and Physical Constants](https://xsrtcehyqluhvywmaihd.supabase.co/functions/v1/agent-api/units/search?sample=1): One clean JSON API for apps, games, calculators and AI agents that need correct unit maths. Routes: /units/search, /units/{unit}, /units/convert, /units/isotopes, /units/constants, /units/constants/{id}, /units/quantity-kinds. Price: $0.005 per call. Data as of: 2024-05-09; refresh: static; license: CC BY 4.0 (QUDT); US government work (NIST).

## Optional

- Same APIs with monthly plans on RapidAPI (search "Lilambd").
- Publisher: Lilambd. Data licences: CC0, CC BY 4.0, MIT, public domain only; attribution is in every response.
