{
  "markdown": "# Micro Data API Factory\n\nPublic-source structured data APIs for AI agents. x402 micropayments.\n\n**Live**: https://micro-data-api-factory.kasanegi123.workers.dev\n\n## Datasets\n\n| Dataset | Items | Description |\n|---------|-------|-------------|\n| [Japanese Food Composition](https://micro-data-api-factory.kasanegi123.workers.dev/datasets/jp-food-composition) | 2,538 | MEXT official nutrition data — 18 food groups, 100g basis |\n| [SPDX License List](https://micro-data-api-factory.kasanegi123.workers.dev/datasets/spdx-license-list) | 727 | Complete OSS license catalog with OSI/FSF status |\n| [HTTP Headers (IANA)](https://micro-data-api-factory.kasanegi123.workers.dev/datasets/http-headers-iana) | 41 | IANA HTTP header registry with AI annotations |\n| [AI Crawler UA DB](https://micro-data-api-factory.kasanegi123.workers.dev/datasets/ai-crawler-ua-db) | 15 | AI crawler User-Agent strings |\n| [x402 Ecosystem DB](https://micro-data-api-factory.kasanegi123.workers.dev/datasets/x402-ecosystem-db) | 12 | x402 / Pay Per Crawl ecosystem |\n| [Public Data Candidates](https://micro-data-api-factory.kasanegi123.workers.dev/datasets/public-data-candidates) | 10 | Evaluated public data sources |\n\n## API\n\n```bash\n# List all datasets\ncurl https://micro-data-api-factory.kasanegi123.workers.dev/api/v1/datasets\n\n# Dataset statistics\ncurl https://micro-data-api-factory.kasanegi123.workers.dev/api/v1/datasets/jp-food-composition/stats\n\n# Search items\ncurl \"https://micro-data-api-factory.kasanegi123.workers.dev/api/v1/datasets/jp-food-composition/items?q=鶏肉\"\n\n# Item detail\ncurl https://micro-data-api-factory.kasanegi123.workers.dev/api/v1/datasets/jp-food-composition/items/11001\n\n# Ranking\ncurl https://micro-data-api-factory.kasanegi123.workers.dev/api/v1/datasets/jp-food-composition/ranking?limit=10\n```\n\nFree for humans. AI crawlers get free basic access; premium endpoints (sources, export) return HTTP 402 with [x402](https://x402.org) payment instructions.\n\nCurrently in **stub mode** — 402 responses are returned but real payments are not yet processed.\n\n## Weather Data API (pay-per-call) — Updated 2026-04-20\n\nGlobal weather data for AI agents. Pass a city name or coordinates, get structured JSON. No API keys, no geocoding setup. Backed by [Open-Meteo](https://open-meteo.com) (CC BY 4.0).\n\nRuns on a dedicated worker (`weather-data-api.kasanegi123.workers.dev`) with a narrow x402 surface — only weather endpoints plus minimal discovery files. Full x402 v2 payment-required envelope including `extensions.bazaar` input/output schemas (so strict validators mark the resources callable automatically).\n\n| Endpoint | Price | Description |\n|---|---|---|\n| [GET /weather/current?city=Tokyo](https://weather-data-api.kasanegi123.workers.dev/weather/current?city=Tokyo) | $0.001 USDC | Current conditions — temperature, feels-like, humidity, wind, precipitation, condition |\n| [GET /weather/forecast?city=Tokyo&days=3](https://weather-data-api.kasanegi123.workers.dev/weather/forecast?city=Tokyo&days=3) | $0.001 USDC | Daily forecast (1–7 days) — high/low, precipitation probability, wind max |\n\n- Network: Base mainnet (`eip155:8453`)\n- Asset: USDC (`0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`)\n- Facilitator: Coinbase CDP\n- Real x402 settlement — no stub mode for this endpoint; payments land on-chain\n- Discovery: [/.well-known/x402](https://weather-data-api.kasanegi123.workers.dev/.well-known/x402) · [/openapi.json](https://weather-data-api.kasanegi123.workers.dev/openapi.json) · [/llms.txt](https://weather-data-api.kasanegi123.workers.dev/llms.txt)\n- Registry: [x402scan server page](https://www.x402scan.com/server/ad377650-6fef-413c-835d-738afbfd03b8)\n\nAttribution: Weather data by Open-Meteo.com (CC BY 4.0).\n\n## AI Discovery\n\n| File | URL |\n|------|-----|\n| LLM summary | [/llms.txt](https://micro-data-api-factory.kasanegi123.workers.dev/llms.txt) |\n| Full LLM docs | [/llms-full.txt](https://micro-data-api-factory.kasanegi123.workers.dev/llms-full.txt) |\n| OpenAPI 3.1.0 | [/openapi.json](https://micro-data-api-factory.kasanegi123.workers.dev/openapi.json) |\n| x402 manifest | [/.well-known/x402](https://micro-data-api-factory.kasanegi123.workers.dev/.well-known/x402) |\n| Agent capabilities | [/.well-known/agentic-capabilities.json](https://micro-data-api-factory.kasanegi123.workers.dev/.well-known/agentic-capabilities.json) |\n| Dataset index | [/datasets-index.json](https://micro-data-api-factory.kasanegi123.workers.dev/datasets-index.json) |\n| Sitemap | [/sitemap.xml](https://micro-data-api-factory.kasanegi123.workers.dev/sitemap.xml) |\n\nEach dataset has a Markdown page at `/datasets/{id}.md` for AI consumption.\n\n## Transparency\n\n[AI Crawler Dashboard](https://micro-data-api-factory.kasanegi123.workers.dev/dashboard/crawl-stats) — who's crawling, who's paying.\n\n```bash\ncurl https://micro-data-api-factory.kasanegi123.workers.dev/api/public/crawl-summary\n```\n\n## What is this?\n\nA factory that converts scattered public information into small, structured data APIs that AI crawlers can read and pay for via x402.\n\nEach record includes `source_url`, `checked_at`, `extraction_method`, `quality_level`, `confidence`, and `warnings`. Accuracy is not guaranteed — this is source-linked observational data.\n\n## Tech\n\n- [Cloudflare Workers](https://workers.cloudflare.com/) + [Hono](https://hono.dev/) + [D1](https://developers.cloudflare.com/d1/)\n- [x402 protocol](https://x402.org) (USDC on Solana, stub mode)\n\n## Related\n\n- [AI Food Data API](https://ai-food-data-api.kasanegi123.workers.dev/) — Food composition data API\n- [AI Laws Data API](https://ai-laws-data-api.kasanegi123.workers.dev/) — Japanese law text API\n\n### Hokkaido Defunct Railway Archive — Updated 2026-04-18\n\nArchival reference for **40 defunct Hokkaido rail lines** (1950–2026). 1,806 stations · 1,026 timetable revisions · 30,326 station×revision appearances · 61 monthly cover PDFs. Cover PDFs are paid assets at `$0.01` each via [x402](https://x402.org) (USDC on Base mainnet).\n\n**Primary site (recommended entry point for AI crawlers)**:\n→ [retro-rail-archive-v14.kasanegi123.workers.dev](https://retro-rail-archive-v14.kasanegi123.workers.dev/)\n\nDeep links (v14):\n- [/api/flyers](https://retro-rail-archive-v14.kasanegi123.workers.dev/api/flyers) — index of all 61 cover PDFs\n- [/active-stations](https://retro-rail-archive-v14.kasanegi123.workers.dev/active-stations) — current residents + full cover PDF archive grid\n- [/api/lines](https://retro-rail-archive-v14.kasanegi123.workers.dev/api/lines) · [/lines/haboro](https://retro-rail-archive-v14.kasanegi123.workers.dev/lines/haboro) · [/lines/tempoku](https://retro-rail-archive-v14.kasanegi123.workers.dev/lines/tempoku) · [/lines/nayoro](https://retro-rail-archive-v14.kasanegi123.workers.dev/lines/nayoro) · [/lines/chihoku](https://retro-rail-archive-v14.kasanegi123.workers.dev/lines/chihoku)\n- [/api/revisions](https://retro-rail-archive-v14.kasanegi123.workers.dev/api/revisions) · [/api/appearances](https://retro-rail-archive-v14.kasanegi123.workers.dev/api/appearances) · [/api/stats/summary](https://retro-rail-archive-v14.kasanegi123.workers.dev/api/stats/summary)\n- [/llms.txt](https://retro-rail-archive-v14.kasanegi123.workers.dev/llms.txt) · [/.well-known/x402](https://retro-rail-archive-v14.kasanegi123.workers.dev/.well-known/x402) · [/sitemap-pages.xml](https://retro-rail-archive-v14.kasanegi123.workers.dev/sitemap-pages.xml)\n\nSample cover PDFs (each `$0.01` via x402):\n- [hokkaido-rail-cover-2020-04.pdf](https://retro-rail-archive-v14.kasanegi123.workers.dev/flyers/hokkaido-rail-cover-2020-04.pdf)\n- [hokkaido-rail-cover-1983-07.pdf](https://retro-rail-archive-v14.kasanegi123.workers.dev/flyers/hokkaido-rail-cover-1983-07.pdf)\n- [hokkaido-rail-cover-1935-10.pdf](https://retro-rail-archive-v14.kasanegi123.workers.dev/flyers/hokkaido-rail-cover-1935-10.pdf)\n\nLine examples: 羽幌線 · 美幸線 · 標津線 · 天北線 · 名寄本線 · 湧網線 · 白糠線 · 士幌線 · 広尾線 · 胆振線 · 深名線 · 池北線 · 夕張線 · 札沼線 · 日高本線 · 留萌本線 (40 lines total).\n\n#### PDF asset format variants (A1–A4)\n\nThe same archive is served via four cover-PDF rendering formats, one per sibling site. All share the v14 paywall configuration (UA-filtered, `/active-stations` + `/api/stats*` + `/api/stations/ranking*` + `/flyers/*.pdf` paid for AI crawlers).\n\n- **A1 grid** — station × train-number timetable grid (3 pages) — [v14 sample](https://retro-rail-archive-v14.kasanegi123.workers.dev/flyers/hokkaido-rail-cover-2020-04.pdf)\n- **A2 route-map** — vertical route map with station dots and km labels (3 pages) — [v01 sample](https://retro-rail-archive-v01.kasanegi123.workers.dev/flyers/hokkaido-rail-cover-2020-04.pdf)\n- **A3 poster** — monthly poster/flyer with heavy title blocks and revision stamp (2 pages) — [v02 sample](https://retro-rail-archive-v02.kasanegi123.workers.dev/flyers/hokkaido-rail-cover-2020-04.pdf)\n- **A4 bulletin** — archival bulletin with change summary + history timeline + station digest (4 pages) — [v03 sample](https://retro-rail-archive-v03.kasanegi123.workers.dev/flyers/hokkaido-rail-cover-2020-04.pdf)\n\n#### Configuration variants under test (secondary)\n\nAlternate paywall configurations for comparison. All serve the same archive dataset; only paywall scope differs.\n\n[v01](https://retro-rail-archive-v01.kasanegi123.workers.dev/) [v02](https://retro-rail-archive-v02.kasanegi123.workers.dev/) [v03](https://retro-rail-archive-v03.kasanegi123.workers.dev/) [v04](https://retro-rail-archive-v04.kasanegi123.workers.dev/) [v05](https://retro-rail-archive-v05.kasanegi123.workers.dev/) [v06](https://retro-rail-archive-v06.kasanegi123.workers.dev/) [v07](https://retro-rail-archive-v07.kasanegi123.workers.dev/) [v08](https://retro-rail-archive-v08.kasanegi123.workers.dev/) [v09](https://retro-rail-archive-v09.kasanegi123.workers.dev/)\n\n### Extended archive cohort (N1–N8) — consecutive recent monthly coverage\n\nSibling sites covering the same lines with a **consecutive 61-month recent coverage window** (ending 2025-12 for the Hokkaido-region archive, 2023-12 for Honshu, 2019-12 for European, 2014-12 for US). Filename pattern is `{region}-flyer-YYYY-MM.pdf` for brevity. All serve free HTML and JSON; paid cover PDFs at `$0.01` via x402 (the N8 site tests `$0.001`).\n\n- **N1** Hokkaido (Extended, grid PDF) — [v10](https://retro-rail-archive-v10.kasanegi123.workers.dev/) · [sample](https://retro-rail-archive-v10.kasanegi123.workers.dev/flyers/hokkaido-next-flyer-2025-12.pdf)\n- **N2** Hokkaido (Extended, route-map PDF) — [v11](https://retro-rail-archive-v11.kasanegi123.workers.dev/) · [sample](https://retro-rail-archive-v11.kasanegi123.workers.dev/flyers/hokkaido-next-flyer-2025-12.pdf)\n- **N3** Honshu (Extended) — [v12](https://retro-rail-archive-v12.kasanegi123.workers.dev/) · [sample](https://retro-rail-archive-v12.kasanegi123.workers.dev/flyers/honshu-next-flyer-2023-12.pdf)\n- **N4** European (Extended) — [v13](https://retro-rail-archive-v13.kasanegi123.workers.dev/) · [sample](https://retro-rail-archive-v13.kasanegi123.workers.dev/flyers/european-next-flyer-2019-12.pdf)\n- **N5** US (Extended) — [v15](https://retro-rail-archive-v15.kasanegi123.workers.dev/) · [sample](https://retro-rail-archive-v15.kasanegi123.workers.dev/flyers/us-next-flyer-2014-12.pdf)\n- **N6** Hokkaido (Extended, stats-gate paywall) — [v16](https://retro-rail-archive-v16.kasanegi123.workers.dev/)\n- **N7** Hokkaido (Extended, minimal paywall) — [v17](https://retro-rail-archive-v17.kasanegi123.workers.dev/)\n- **N8** Hokkaido (Extended, `$0.001` price test) — [v18](https://retro-rail-archive-v18.kasanegi123.workers.dev/) · [manifest](https://retro-rail-archive-v18.kasanegi123.workers.dev/.well-known/x402)\n\nEach extended site includes an enhanced homepage (About / AI & LLM Friendly / API Endpoints / Developers / Usage sections), a pure-English `llms.txt`, and `/api/flyers` listing 61 consecutive monthly covers.\n\n## Inspired by\n\n[Berghain Klubnacht Database](https://berghain.ravers.workers.dev/) by [jphfa](https://zenn.dev/jphfa) — the first known site to receive x402 payments from AI crawlers.\n\n## License\n\nMIT (this README and public API documentation)\n",
  "bytes": 12111,
  "sha": "f116cd124a53278e16becafdb9085ed5d69b967efb9a870e3eb3463622d30f03",
  "repo_slug": "matsushitatokitsugu/micro-data-api-factory-public",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_matsushitatokitsugu_micro_data_2f2e079c/readme"
}