Free Public APIs Worth Knowing
Hand-picked, no-key-needed APIs — for prototypes, scripts and learning.
Network & identity
ipify — your public IP as JSON
GET https://api.ipify.org?format=json → {"ip":"203.0.113.7"}
(powers this site's What's My IP tool)
DNS over HTTPS (Google) — resolve DNS from any network
GET https://dns.google/resolve?name=example.com&type=A
→ {"Answer":[{"data":"93.184.215.14",...}]}
handy behind DNS-hijacking networks
Testing & fake data
httpbin — echoes back your request; perfect for debugging clients
GET https://httpbin.org/get?x=1 → {"args":{"x":"1"},...}
POST https://httpbin.org/post (try /status/418 for fun)
JSONPlaceholder — fake REST API for prototyping
GET https://jsonplaceholder.typicode.com/posts/1
supports GET/POST/PUT/DELETE on posts, users, todos…
Real-world data
Open-Meteo — weather forecast, no key, generous limits GET https://api.open-meteo.com/v1/forecast?latitude=31.23&longitude=121.47¤t_weather=true REST Countries — country facts (capital, population, flags) GET https://restcountries.com/v3.1/name/china?fields=name,capital,population GitHub API — repos, users, the famous zen endpoint GET https://api.github.com/zen → one line of wisdom (60 req/hour unauthenticated — enough for scripts)
Just for fun
Dog CEO — random dog pictures
GET https://dog.ceo/api/breeds/image/random → {"message":"https://…jpg",...}
Notes
Rate limits apply to all of these — they're free services, so cache responses and don't hammer them. CORS is enabled on every API above, meaning you can call them directly from browser JavaScript with fetch().
Free tiers change. If an endpoint here stops working, that's the nature of free APIs — the patterns (DoH JSON, REST shapes) transfer to paid alternatives.
Frequently asked questions
Why no API keys?
Keyless APIs are the fastest way to prototype and learn. When you outgrow them, you'll know exactly what to look for in a paid tier.
Can I call these from a web page?
Yes — all listed APIs send CORS headers, so fetch() from any origin works. This site's own IP lookup does exactly that with ipify.