~/guides/API.md

Guides / Build apps

public-apis: 2,000+ free APIs on GitHub; pick one and Claude Code turns it into an app in one sentence

public-apis lists 2,000+ free APIs, over 1,000 with no key. How to search it, three checks before you pick one, and the prompt behind my Taiwan quake map.

Want to build a side project but have no data? public-apis is a GitHub list with nearly 500K stars: over 2,000 free APIs (weather, earthquakes, stocks, anime…), more than a thousand of them with no key. This is the full version of the API reel: first the Taiwan earthquake map Claude Code built from one of them in a single sentence, then how to search the list, three things to check before you pick, and a prompt you can copy.

01The result first: a Taiwan earthquake map from one sentence

Taiwan on a dark map with 116 quake dots; side panel: 116 quakes, max 6.6, monthly bars, largest quakes
The page Claude Code built on USGS's keyless earthquake API: magnitude 4+ near Taiwan in the past year, 116 quakes.

public-apis is a GitHub list with nearly 500K stars: over 2,000 free APIs in fifty-odd categories, more than a thousand of them with no key needed. I picked the USGS earthquake API, gave Claude Code one sentence, and it read the docs, wrote the code and made the map above: 116 earthquakes of magnitude 4+ near Taiwan between 6 Nov 2025 and 6 Nov 2026, the largest a 6.6 off Yilan on 27 Dec 2025.

Here's what you get by the end:

  1. How to search public-apis: the categories and what the Auth / HTTPS / CORS columns mean.
  2. A list of APIs that need no key (the official site counts 1,038).
  3. Three checks before you pick an API, so you do not find a paywall or a non-commercial licence halfway through.
  4. The exact prompt I used for the map, plus a fill-in version for your own API.

02Step 1: find an API in public-apis

public-apis/public-apis on GitHub: A collective list of free APIs, 496k stars, MIT licence
public-apis: nearly 500K stars on GitHub, MIT licence, maintained by the community.
  1. Open github.com/public-apis/public-apis, scroll to the Index and pick a category (weather; earthquakes are under Science & Math, stocks under Finance, anime under Anime…).
  2. Each row is one API: name, description, and three columns: Auth, HTTPS, CORS.
  3. Auth "No" means no key, call it right away. "apiKey" or "OAuth" means you sign up on its site first.
  4. HTTPS "Yes" is safer; CORS "Yes" means a web page can call it straight from the browser (with "No" or "Unknown", ask Claude Code to fetch it from a backend).
  5. If the README feels long, search and filter on the official site, publicapis.lol.
public-apis README Index: Animals, Anime, Art & Design, Books, Business… a long list of categories
The README's Index: fifty-odd categories, each linking to its table of APIs.
publicapis.lol no-key page: 1,038 APIs you can call without registering, by category
The official site's no-key list: 1,038 APIs you can call without registering.

03Step 2: pick an API and check three things first

public-apis Science & Math table: the USGS Earthquake Hazards Program row, Auth No, HTTPS Yes
The row I picked: USGS Earthquake Hazards Program, Auth "No", no key.
  1. Key or no key: the Auth column. For a first try, pick a "No" one; it is the fastest.
  2. Commercial use: open the API's own site and read the terms. Open-Meteo's free API, for example, is non-commercial only; check before you ship a paid product.
  3. Still alive: the list is community-curated and some APIs shut down or start charging. Check that the docs still load, or look at publicapis.lol's status page.

04Step 3: hand the API to Claude Code and say what you want

Open Claude Code in an empty folder, give it the API name and its official docs link, and describe the screen you want in one sentence. Here is the one I used for the earthquake map:

The prompt I used
Use the USGS Earthquake API (from the public-apis list) to build a web page: earthquakes of magnitude 4 or more near Taiwan in the past year, drawn on a map, bigger ones redder, with the largest few listed beside it. Interface in Traditional Chinese.
Fill-in version (swap the [] parts)
Use [API name] (docs: [official docs link]) to build a web page that shows [what data] as [a map, a chart, a list…]. Make it a single index.html that works when I open it.
The same earthquake map with the time slider halfway, showing only the first half of the year
It added a time slider on its own: drag it to watch the quakes appear month by month.
  1. It reads the API docs, picks the parameters, writes the code and tells you how to open it.
  2. Open it and say what is off: "the dots are too small", "translate the place names", "add a time slider".
  3. For APIs that need a key: tell it "keep the key in .env, not in the code", and never push .env to GitHub.

05Good to know

A public-apis README table: Open-Meteo says Free weather API for non-commercial use, other rows have Auth apiKey
In the same list: some need an apiKey, some are non-commercial only.
  1. Auth "apiKey" / "OAuth" means signing up first, and some sign-ups ask for a card; pick another one if you do not want that.
  2. Some are non-commercial only (Open-Meteo's free API, for example): read the terms before launching or charging.
  3. A key is your quota: never put it in front-end code, a public repo or a screenshot.
  4. The list is community-maintained and APIs can disappear or change rules; confirm on the API's own site before building a real product.
  5. My map only counts a box around Taiwan and magnitude 4+; USGS's catalogue and Taiwan's Central Weather Administration count differently, so the numbers will not match exactly.
  6. The numbers (500K stars, 2,000+, 1,038 keyless, 116 quakes) were checked on 6 Nov 2026 and will change.
  7. You found this guide by typing API at the link in bio; there is no DM.

Sources

Related guides