GuidesPUBLIC APIS
Free public APIs that work from the browser
All 70 free public APIs on this page answered without a key or signup in October 2026, and 55 of them send an Access-Control-Allow-Origin header, so a plain fetch() works from any web page. The other 15 send no CORS header and work from browser JavaScript once you prefix the URL with https://proxy.cors.dev/, which is free, needs no signup and allows 600 requests per minute per client IP for responses up to 6 MiB. Each table lists an example URL, the response size and how to call the API; 19 popular APIs and endpoints that fail from a browser are listed at the end.
How the APIs were tested
We requested each example URL with an Origin header, the way a browser does, and recorded the Access-Control-Allow-Origin header of the response. Then we requested the same URL through https://proxy.cors.dev/. Sizes are the decoded response bodies of the example URL. The "From the browser" column says how to call each API from a page:
- Via cors.dev: the API sends no CORS header, so a direct
fetch()fails with a CORS error. Prefix the URL withhttps://proxy.cors.dev/. - Direct: the API sends
Access-Control-Allow-Origin, sofetch(url)works from any origin with no proxy. - Direct only: the API sends the header, but answered 400, 403 or 429 through the proxy because it blocks or rate-limits shared server IPs. Call it directly, so requests come from the visitor's own IP address.
Gutendex and the Fake Store API sent a 403 challenge page to our servers and to the proxy, and normal JSON with Access-Control-Allow-Origin: * to a residential connection, which is what a visitor's browser uses.
Weather and earth APIs
| API | Example URL | From the browser | Size |
|---|---|---|---|
| Open-Meteo | https://api.open-meteo.com/v1/forecast?latitude=52.37&longitude=4.89¤t=temperature_2m,wind_speed_10m | Direct | 365 B |
| National Weather Service | https://api.weather.gov/points/39.7456,-97.0892 | Direct | 3.8 KB |
| USGS Earthquakes | https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_day.geojson | Direct | 6.4 KB |
| Sunrise-Sunset | https://api.sunrise-sunset.org/json?lat=52.37&lng=4.89&formatted=0 | Direct | 495 B |
| UK Carbon Intensity | https://api.carbonintensity.org.uk/intensity | Direct | 191 B |
| Where the ISS at | https://api.wheretheiss.at/v1/satellites/25544 | Direct | 314 B |
| Spaceflight News | https://api.spaceflightnewsapi.net/v4/articles/?limit=1 | Direct | 814 B |
Geo, IP and time APIs
| API | Example URL | From the browser | Size |
|---|---|---|---|
| Zippopotam.us | https://api.zippopotam.us/us/90210 | Direct | 225 B |
| ipify | https://api.ipify.org?format=json | Direct | 22 B |
| ipapi.co | https://ipapi.co/json/ | Direct only | 727 B |
| Nominatim (OpenStreetMap) | https://nominatim.openstreetmap.org/search?q=Amsterdam&format=json&limit=1 | Direct | 432 B |
| BigDataCloud reverse geocoding | https://api.bigdatacloud.net/data/reverse-geocode-client?latitude=52.37&longitude=4.89&localityLanguage=en | Direct | 4.4 KB |
| postcodes.io | https://api.postcodes.io/postcodes/SW1A1AA | Direct | 1.9 KB |
| Nager.Date public holidays | https://date.nager.at/api/v3/PublicHolidays/2026/NL | Direct | 1.9 KB |
IP lookup APIs report the address that sent the request, so always call them directly: through a proxy they report the proxy server's address instead of your visitor's. Nominatim's usage policy allows at most 1 request per second, so geocode on demand and cache the result.
Reference, books and media APIs
| API | Example URL | From the browser | Size |
|---|---|---|---|
| Wikipedia | https://en.wikipedia.org/api/rest_v1/page/summary/Amsterdam | Direct | 2.5 KB |
| Open Library | https://openlibrary.org/search.json?q=the+hobbit&limit=1&fields=title,author_name,first_publish_year | Direct | 251 B |
| Gutendex (Project Gutenberg) | https://gutendex.com/books/?search=dickens%20great | Direct only | 1.1 KB |
| arXiv | https://export.arxiv.org/api/query?search_query=all:cors&max_results=1 | Via cors.dev | 2.7 KB |
| DuckDuckGo Instant Answer | https://api.duckduckgo.com/?q=amsterdam&format=json&no_html=1 | Direct | 18 KB |
| The Met Collection | https://collectionapi.metmuseum.org/public/collection/v1/objects/436535 | Direct | 2.7 KB |
| iTunes Search | https://itunes.apple.com/search?term=radiohead&entity=album&limit=1 | Direct only | 946 B |
| TVmaze | https://api.tvmaze.com/singlesearch/shows?q=severance | Direct | 1.4 KB |
| Deezer | https://api.deezer.com/search?q=daft%20punk&limit=1 | Via cors.dev | 2.2 KB |
arXiv answers with Atom XML; the arXiv API guide shows how to search papers and parse the feed in the browser. For music, books, films and archived pages, see the Deezer API guide, Goodreads shelves as RSS, the Letterboxd diary feed and the Wayback Machine API.
Free APIs for testing and fun
| API | Example URL | From the browser | Size |
|---|---|---|---|
| JSONPlaceholder | https://jsonplaceholder.typicode.com/todos/1 | Direct | 83 B |
| DummyJSON | https://dummyjson.com/products/1 | Direct | 1.5 KB |
| Fake Store API | https://fakestoreapi.com/products/1 | Direct only | 285 B |
| Reqres | https://reqres.in/api/users/2 | Direct only | 711 B |
| Random User | https://randomuser.me/api/?results=1 | Direct | 1.1 KB |
| PokeAPI | https://pokeapi.co/api/v2/pokemon/pikachu | Direct | 302 KB |
| Rick and Morty API | https://rickandmortyapi.com/api/character/1 | Direct | 2.7 KB |
| SWAPI (Star Wars) | https://swapi.dev/api/people/1/ | Direct | 647 B |
| Open Trivia DB | https://opentdb.com/api.php?amount=1 | Direct | 236 B |
| Dog CEO | https://dog.ceo/api/breeds/image/random | Direct | 87 B |
| xkcd | https://xkcd.com/info.0.json | Via cors.dev | 402 B |
| ZenQuotes | https://zenquotes.io/api/random | Via cors.dev | 151 B |
For test data, JSONPlaceholder serves placeholder /posts, /users and /todos, DummyJSON adds /products, /users and /carts, and Reqres returns sample users. All three send the CORS header, so they work from localhost and from a deployed page alike.
Sports and games APIs
| API | Example URL | From the browser | Size |
|---|---|---|---|
| MLB Stats API | https://statsapi.mlb.com/api/v1/teams?sportId=1&fields=teams,id,name,abbreviation | Direct | 1.7 KB |
| NHL | https://api-web.nhle.com/v1/standings/now | Via cors.dev | 57 KB |
| Jolpica F1 (Ergast) | https://api.jolpi.ca/ergast/f1/current/last/results.json | Direct | 13 KB |
| OpenF1 | https://api.openf1.org/v1/sessions?year=2026&session_type=Race | Direct | 11 KB |
| ESPN | https://site.api.espn.com/apis/site/v2/sports/football/nfl/scoreboard | Direct only | 218 KB |
| Fantasy Premier League | https://fantasy.premierleague.com/api/fixtures/?event=1 | Via cors.dev | 26 KB |
| Chess.com | https://api.chess.com/pub/player/hikaru | Direct | 611 B |
| Lichess | https://lichess.org/api/user/thibault | Direct only | 1.7 KB |
| Steam store | https://store.steampowered.com/api/appdetails?appids=620&filters=basic | Via cors.dev | 6.7 KB |
| Riot Data Dragon | https://ddragon.leagueoflegends.com/api/versions.json | Direct | 5.1 KB |
| Scryfall | https://api.scryfall.com/cards/named?fuzzy=black+lotus | Direct | 5.3 KB |
The NHL API guide covers scores, standings and schedules, and the Steam API guide lists which Steam endpoints need no key. The ESPN API guide shows which ESPN endpoints work with a direct fetch(), and the Fantasy Premier League API guide covers live points, fixtures and mini-league tables.
Finance and crypto APIs
| API | Example URL | From the browser | Size |
|---|---|---|---|
| Frankfurter | https://api.frankfurter.dev/v1/latest?base=USD&symbols=EUR,GBP,JPY | Direct | 98 B |
| ExchangeRate-API open access | https://open.er-api.com/v6/latest/USD | Direct | 2.9 KB |
| Currency API on jsDelivr | https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/eur.json | Direct | 7.3 KB |
| Coinbase | https://api.coinbase.com/v2/prices/BTC-USD/spot | Direct | 61 B |
| Kraken | https://api.kraken.com/0/public/Ticker?pair=XBTUSD | Direct | 309 B |
| CoinGecko | https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum&vs_currencies=usd | Direct only | 52 B |
| Bitfinex | https://api-pub.bitfinex.com/v2/ticker/tBTCUSD | Via cors.dev | 94 B |
| Yahoo Finance | https://query1.finance.yahoo.com/v8/finance/chart/AAPL?range=1d&interval=1d | Via cors.dev | 1.3 KB |
Frankfurter and the jsDelivr currency API return daily rates with a date field, not live quotes. For stock prices and history, see the Yahoo Finance API guide. For exchange tickers, the crypto price API guide tests 29 crypto APIs for CORS, including WebSocket feeds.
Developer and package registry APIs
| API | Example URL | From the browser | Size |
|---|---|---|---|
| GitHub REST API | https://api.github.com/repos/facebook/react | Direct only | 6.4 KB |
| npm registry | https://registry.npmjs.org/react/latest | Direct | 2.1 KB |
| PyPI JSON API | https://pypi.org/pypi/requests/json | Direct | 188 KB |
| crates.io | https://crates.io/api/v1/crates?q=serde&per_page=1 | Direct | 1.0 KB |
| jsDelivr stats | https://data.jsdelivr.com/v1/stats/packages/npm/react?period=month | Direct | 2.1 KB |
| RubyGems | https://rubygems.org/api/v1/gems/rails.json | Direct | 2.1 KB |
| Packagist | https://repo.packagist.org/p2/monolog/monolog.json | Via cors.dev | 83 KB |
| Stack Exchange | https://api.stackexchange.com/2.3/questions?order=desc&sort=activity&site=stackoverflow&pagesize=1 | Direct only | 722 B |
The GitHub REST API sends Access-Control-Allow-Origin: * and allows 60 unauthenticated requests per hour per IP address. Through a shared proxy IP that budget is spent by other users, which is why the proxy got 403. Why GitHub says rate limit exceeded covers the details.
News and feed APIs
| API | Example URL | From the browser | Size |
|---|---|---|---|
| Hacker News API | https://hacker-news.firebaseio.com/v0/topstories.json | Direct | 4.4 KB |
| Hacker News search (Algolia) | https://hn.algolia.com/api/v1/search?query=cors&hitsPerPage=1 | Direct | 1.7 KB |
| hnrss.org | https://hnrss.org/frontpage | Via cors.dev | 17 KB |
| BBC News RSS | https://feeds.bbci.co.uk/news/world/rss.xml | Via cors.dev | 21 KB |
| New York Times RSS | https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml | Direct | 46 KB |
| YouTube channel RSS | https://www.youtube.com/feeds/videos.xml?channel_id=UC_x5XG1OV2P6uZZ5FSM9Ttw | Via cors.dev | 25 KB |
| Bing image of the day | https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-US | Via cors.dev | 921 B |
| Lobsters | https://lobste.rs/hottest.json | Via cors.dev | 14 KB |
More on these: the Hacker News API and RSS feeds, 27 news RSS feeds that need no key, YouTube channel feeds and the Bing image of the day API.
Call each API the right way
Add the https://proxy.cors.dev/ prefix for the hosts that send no CORS header, and send APIs that allow browser calls straight to the API. cors.dev keeps the path and query string, so the URL after the prefix is the same one you would call directly.
// Runs in a module script or the DevTools console
const PROXY = 'https://proxy.cors.dev/';
const NEEDS_PROXY = new Set(['xkcd.com', 'api.deezer.com', 'api-web.nhle.com', 'export.arxiv.org']);
async function getJson(url) {
const { hostname } = new URL(url);
const response = await fetch(NEEDS_PROXY.has(hostname) ? PROXY + url : url, { credentials: 'omit' });
if (!response.ok) {
throw new Error(`${hostname}: ${response.headers.get('X-Cors-Error') ?? response.status}`);
}
return response.json();
}
const [weather, pokemon, comic, songs] = await Promise.all([
getJson('https://api.open-meteo.com/v1/forecast?latitude=52.37&longitude=4.89¤t=temperature_2m'),
getJson('https://pokeapi.co/api/v2/pokemon/pikachu'),
getJson('https://xkcd.com/info.0.json'),
getJson('https://api.deezer.com/search?q=daft%20punk&limit=3'),
]);
console.log(`${weather.current.temperature_2m}${weather.current_units.temperature_2m} in Amsterdam`);
console.log(pokemon.name, pokemon.types.map((slot) => slot.type.name).join(', '));
console.log(`xkcd ${comic.num}: ${comic.safe_title}`, comic.img);
console.log(songs.data.map((song) => `${song.title} by ${song.artist.name}`));When a proxied request fails, cors.dev names the reason in the X-Cors-Error response header, for example response_too_large or upstream_timeout, and the code puts it in the error message. Errors from the API itself, such as 404 or 429, pass through with their own status. To check an API that is not listed here, look for the CORS header yourself:
# access-control-allow-origin: * means fetch() works from any page, no proxy needed
curl -s -o /dev/null -D - -H 'Origin: https://example.com' \
'https://pokeapi.co/api/v2/pokemon/pikachu' | grep -i access-control-allow-origin
# No output: xkcd sends no CORS header, so browser code needs the proxy prefix
curl -s -o /dev/null -D - -H 'Origin: https://example.com' \
'https://xkcd.com/info.0.json' | grep -i access-control-allow-originTested lists by category
These categories have their own page, tested from a browser in October 2026, with free limits, keys and working fetch() code:
- Free weather APIs: 11 tested, 6 need no key
- Free geocoding APIs: 11 tested, 6 need no key
- Free IP geolocation APIs: 11 tested, 10 need no key
- Free currency exchange rate APIs: 12 tested, 8 need no key
- Free stock market APIs: 11 tested, 6 answer fetch() directly
- Free fake APIs for testing: 13 tested, and which ones really save your writes
- Free AI and LLM APIs: 14 tested, 9 work with fetch() as is
- Free translation APIs: 8 tested, 4 need no key
- Free image and stock photo APIs: 12 tested, including canvas reads
- Free movie APIs: TMDB, OMDb, TVmaze and 7 more
- Free sports APIs: 12 tested, with NBA, MLB, Formula 1 and football
- Google Sheets as JSON and Google Calendar ICS feeds
Free APIs that do not work from a browser
These APIs appear in many free API lists but failed from browser JavaScript in our test. Most were down, need a key, use plain HTTP or block requests from servers.
| API | URL | What happened |
|---|---|---|
| REST Countries | https://restcountries.com/v3.1/name/netherlands | v3.1 returns a deprecation error, and v5 needs an API key in an Authorization header |
| ADSB.lol | https://api.adsb.lol/v2/point/52.31/4.76/10 | No CORS header; 2 of 6 requests through the proxy failed |
| SpaceX API | https://api.spacexdata.com/v5/launches/latest | Origin down: 522 direct, 525 through the proxy |
| Quotable | https://api.quotable.io/random | Domain does not resolve; proxy 502 upstream_unreachable |
| WorldTimeAPI | https://worldtimeapi.org/api/timezone/Europe/Amsterdam | Connection reset; the proxy passed on a 525 |
| Jikan (MyAnimeList) | https://api.jikan.moe/v4/anime?q=frieren | Connection timed out; proxy 504 upstream_timeout |
| OpenSky Network | https://opensky-network.org/api/states/all | Allows only its own origin; proxy 504 upstream_timeout |
| NASA APOD | https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY | Needs a key in the URL; DEMO_KEY returned 500 |
| Open Notify ISS | http://api.open-notify.org/iss-now.json | Plain HTTP: HTTPS pages block it as mixed content unless it goes through cors.dev, which fetches http:// targets |
| ip-api.com | http://ip-api.com/json/ | HTTPS answers 403 without a paid key; plain HTTP is blocked as above |
| Universities (Hipo) | http://universities.hipolabs.com/search?name=delft | HTTP only; the HTTPS address does not connect |
| Reddit JSON | https://www.reddit.com/r/programming/top.json | 403 to servers, the proxy and a residential IP |
| NBA live data | https://cdn.nba.com/static/json/liveData/scoreboard/todaysScoreboard_00.json | 403 even from a residential IP; proxy 520 |
| Mojang | https://api.mojang.com/users/profiles/minecraft/Notch | No CORS header; proxy 403 |
| Docker Hub | https://hub.docker.com/v2/repositories/library/nginx/ | No CORS header; proxy 429 |
| Free Dictionary API | https://api.dictionaryapi.dev/api/v2/entries/en/hello | 403 to the proxy and our servers; timed out from a residential IP |
| Fantasy Premier League bootstrap | https://fantasy.premierleague.com/api/bootstrap-static/ | No CORS header; at 1.7 MiB it fits the proxy's 6 MiB cap |
| Roblox games | https://games.roblox.com/v1/games?universeIds=1818 | No CORS header; proxy 502 upstream_unreachable |
| Google Books | https://www.googleapis.com/books/v1/volumes?q=isbn:9780261103344 | 429 without a key from every IP we tried |
Responses up to 6 MiB, like the 1.7 MiB Fantasy Premier League bootstrap file, work on the free tier.
cors.dev limits
- cors.dev free tier: GET and HEAD with no signup or key, 600 requests per minute per client IP, and no daily or monthly quota.
- Responses: any content type for browser code and text types such as JSON, XML and CSV for requests without an Origin, up to 6 MiB, and the API gets 30 seconds to answer. Larger bodies return 502
response_too_large, slow APIs 504upstream_timeout. - Request headers: only
Accept,Accept-Language,If-None-Match,If-Modified-SinceandRangereach the API; other headers are dropped, andAuthorizationand API key headers such asX-Api-Keyreturn 400header_not_allowed. HTTP and HTTPS targets on any port work, and API keys in the URL are forwarded. - [cors.dev Pro](/pricing): $5 per month for 500,000 requests per billing period, with a 7-day trial of 1,000 requests and no card. Adds POST, PUT, PATCH and DELETE,
Authorizationand custom headers, and opt-in caching. - API keys: a secret key in browser code is visible to anyone who opens DevTools, and cors.dev never stores or adds keys for you. Keep secret keys on a server or Worker.
Good questions.
Which free APIs need no API key?
All 70 APIs in the tables above answered without a key or signup in October 2026. Popular picks: Open-Meteo for weather, PokeAPI and the Rick and Morty API for fun data, JSONPlaceholder and DummyJSON for test data, Frankfurter for exchange rates and the Hacker News API for news. All of them send a CORS header, so fetch() works from the browser.
What is a good free API for testing?
JSONPlaceholder (https://jsonplaceholder.typicode.com) returns placeholder posts, users and todos, DummyJSON returns products, users and carts, and Reqres returns sample users. All three send Access-Control-Allow-Origin, so they work from a local dev server and a deployed page without a proxy.
Why does fetch() fail on a free API that works in Postman or curl?
Browsers hand a cross-origin response to your script only when it carries Access-Control-Allow-Origin. Postman and curl skip that check, so the same URL works there and fails in the page. For APIs marked Via cors.dev, prefix the URL with https://proxy.cors.dev/. Postman vs the browser explains the difference.
Should I send every API call through a CORS proxy?
No. If an API sends Access-Control-Allow-Origin, call it directly: it saves a hop and each request comes from the visitor's own IP. The GitHub REST API, CoinGecko, Lichess and ipapi.co answered 403 or 429 through the proxy in our test, because many users share the proxy's IP addresses.
Can I use an API that needs a key from browser JavaScript?
Only if the key is meant to be public. Anything in browser code is visible to anyone who opens DevTools, and cors.dev never stores or adds keys for you. The free tier forwards keys in the URL as-is and Pro forwards Authorization headers, but a secret key still belongs on a server or Worker.
How do I check if an API supports CORS?
Request it with an Origin header and look for Access-Control-Allow-Origin in the response, as in the curl example above, or paste the response headers into the CORS header checker. No header means browser code needs a proxy: prefix the URL with https://proxy.cors.dev/.
Are free public APIs reliable enough for a real project?
Not without a fallback. In this test the SpaceX API, Quotable and WorldTimeAPI were down, and REST Countries moved its current version behind API keys. Cache responses, handle errors and keep each API behind one function you can swap out.