Free APIs you can call from the browser

180 services, checked weekly

These free APIs allow calls from JavaScript in a web page on any site (CORS), so a static site, a CodePen or a browser extension can use them without a server of its own. Each was tested with a real request. Keep any API key out of public pages: a key in browser code can be read by anyone.

ServiceCategoryAPI keyFormatsFree use
Cohere APIAI models and chatNeeded, freeJSONFree trial key without a time limit, limited to 1,000 calls per month and a per-minute rate limit; production use needs a paid key.
GitHub ModelsAI models and chatNeeded, freeJSONFree for every GitHub account, with daily and per-minute request limits per model that depend on your Copilot plan; paid usage is available for more.
Google Gemini APIAI models and chatNeeded, freeJSONFree tier for most text, speech and embedding models with a free API key and rate limits; content sent on the free tier may be used by Google to improve its products, so use the paid tier for private data.
Groq APIAI models and chatNeeded, freeJSONFree plan with a free API key and rate limits per model; paid plans for higher limits.
OpenRouterAI models and chatNeeded, freeJSONFree models are limited to 20 requests per minute and 50 per day, or 1,000 per day once you have bought at least 10 credits; other models are paid per token.
Z.ai API (GLM Flash models)AI models and chatNeeded, freeJSONFree with a free API key for the Flash models: GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash.
Jina ReaderAI search and web readingNot needed–Free without an API key at a lower rate limit per IP address; a new free API key comes with 10 million free tokens and higher limits.
Voyage AI APIEmbeddings and rerankingNeeded, freeJSONFree with a free API key for the first 200 million tokens per account on most current models; paid per token after that.
ElevenLabs APISpeech, image and audioNot neededJSONFree plan with 10,000 credits per month (about 10 minutes of speech), for non-commercial use only and with attribution to ElevenLabs; paid plans for commercial use.
Pollinations.aiSpeech, image and audioNot needed–Free, works without a key or sign-up; registering gives higher limits.
bible-api.comBooks and researchNot neededJSONFree and open source, no key needed.
Crossref REST APIBooks and researchNot neededJSONFree, no key needed; add your e-mail address to requests to use the faster 'polite' pool.
Google Books APIBooks and researchNot neededJSONFree; a free API key is strongly recommended, as the shared quota without a key is often used up.
GutendexBooks and researchNot neededJSONFree and open source, no key needed; it is a community service without uptime guarantee, so you can host it yourself for heavy use.
Internet Archive Advanced SearchBooks and researchNot neededJSON, XMLFree, no key needed.
ISBNdbBooks and researchNeeded, paid plans onlyJSONPaid plans with a free trial.
Open Library APIBooks and researchNot neededJSONFree, no key needed; identify your app with a User-Agent and keep traffic reasonable, and use the bulk data dumps for large jobs.
OpenAlexBooks and researchNot neededJSONFree, no key needed for basic use; a free key gives higher limits and is needed for deep paging.
PoetryDBBooks and researchNot neededJSONFree and open source, no key needed.
Semantic Scholar APIBooks and researchNot neededJSONFree; without a key all users share one rate limit, so request a free API key for regular use.
Wikidata Query ServiceBooks and researchNot neededJSON, XMLFree, no key needed; data is CC0.
Wikipedia REST APIBooks and researchNot neededJSONFree, no key needed; send a User-Agent that identifies your app.
Brevo (Sendinblue) email APICommunicationNeeded, freeJSONThe free plan allows 300 e-mails per day; paid plans remove that limit.
Discord webhooksCommunicationNeeded, freeJSONFree; for two-way interaction use the full Discord bot API.
InterFaxCommunicationNeeded, freeXMLPaid per page, with a free developer account for testing.
ntfyCommunicationNot needed–Free on ntfy.sh, and open source so you can host it yourself.
Telegram Bot APICommunicationNeeded, freeJSONFree.
Bluesky APISocial mediaNot neededJSONFree, no key needed for public data.
Lemmy APISocial mediaNot neededJSON, RSSFree, no key needed for reading.
Mastodon APISocial mediaNot neededJSONFree, no key needed for public data; posting needs an OAuth token from the server.
Tumblr APISocial mediaNeeded, freeJSONFree.
Alpha VantageCurrency and financeNeeded, freeJSON, CSVFree with a free API key and a small daily request limit; premium plans for more requests.
CoinGecko APICurrency and financeNot neededJSONThe free Demo plan needs a free API key and has a monthly call limit; paid plans offer more calls and data.
ECB Data Portal APICurrency and financeNot neededJSON, XML, CSVFree, no key needed; cite the ECB as the source.
ExchangeRate-API (open access)Currency and financeNot neededJSONFree, with attribution required; the keyed plans give more frequent updates, conversion endpoints and historical data.
FinnhubCurrency and financeNeeded, freeJSONFree plan with a free API key and a per-minute limit; paid plans for more data and markets.
FrankfurterCurrency and financeNot neededJSONFree, no key needed and no usage limits.
Free Currency Exchange Rates API (fawazahmed0)Currency and financeNot neededJSONFree.
Kraken Spot REST API (public market data)Currency and financeNot neededJSONFree, no key needed for the public market data endpoints, within Kraken's rate limits.
Open Exchange RatesCurrency and financeNeeded, freeJSONFree with a free API key, for 1,000 requests a month with hourly updated rates.
PayPal REST APICurrency and financeNeeded, freeJSONFree to use; PayPal charges a fee per transaction.
TimeAPI.ioCurrency and financeNot neededJSONFree, no key needed.
World Bank Indicators APICurrency and financeNot neededJSON, XMLFree, open data, no key needed.
Coin Boss APIFinanceNot neededJSONThe documented endpoints are currently free to use.
Abstract IP Geolocation APIIP to location APIsNeeded, freeJSONFree plan with a monthly request limit; paid plans for more requests and features.
country.isIP to location APIsNot neededJSONFree and open source, no key needed.
HostIP.info APIIP to location APIsNot needed––
ip-apiIP to location APIsNot neededJSONFree for non-commercial use without a key, at up to 45 requests per minute over HTTP; commercial use and HTTPS need the paid Pro plan.
ipapi.coIP to location APIsNot neededJSON, XML, CSVFree without a key up to about 1,000 requests per day; paid plans for more.
ipifyIP to location APIsNot neededJSONFree and open source, no key and no usage limit.
ipinfo.ioIP to location APIsNeeded, freeJSONA free account with a token raises the limits; paid plans add details such as privacy detection (VPN, proxy, Tor) and company data.
IPInfoDB IP Location APIIP to location APIsNeeded, freeJSON, XMLFree with a free API key.
ipquery.ioIP to location APIsNot neededJSON, XMLFree, no key needed, within a rate limit.
ipwho.isIP to location APIsNot neededJSONFree without a key for non-commercial use; the paid ipwhois.io plans are for commercial use and higher volumes.
BigDataCloud Free Reverse Geocode to City APILocation InformationNot neededJSONFree, no key needed, under a fair use policy: client-side calls with the device's own location only.
GeoapifyLocation InformationNeeded, freeJSONFree with a free API key, for 3,000 credits a day, also for commercial use; attribution to Geoapify and the data sources is required.
GeoNamesLocation InformationNeeded, freeJSON, XMLFree with a free GeoNames account (username) and a daily credit limit; paid premium service for heavy use.
Google Places APILocation InformationNeeded, freeJSONFree only with billing turned on (a payment method is required), up to a monthly cap per type of request: 10,000 for Essentials calls such as autocomplete and basic place details, 5,000 for Pro and 1,000 for Enterprise; above the cap, paid per request.
Nager.Date public holidaysLocation InformationNot neededJSONFree and open source, no key needed.
Nominatim (OpenStreetMap)Location InformationNot neededJSONThe public server is free to use but has a strict usage policy: at most one request per second, a User-Agent or Referer that identifies your app, no bulk geocoding, and attribution to OpenStreetMap.
OSRM demo serverLocation InformationNot neededJSONFree for reasonable non-commercial use, no key needed, at most one request per second.
Overpass APILocation InformationNot neededJSON, XMLFree on the public servers with fair use; heavy users should run their own instance.
PhotonLocation InformationNot neededJSONThe public server at photon.komoot.io is free for fair use; for heavy use you can host Photon yourself, as it is open source.
Postcodes.ioLocation InformationNot neededJSON–
REST CountriesLocation InformationNeeded, freeJSONThe current version (v5) needs an API key and has a free tier for small apps; the old keyless v3 API was retired.
Sunrise-SunsetLocation InformationNot neededJSONFree, no key needed; the provider asks for a link back.
Zippopotam.usLocation InformationNot neededJSONFree, no key needed.
Bright SkyWeather forecastsNot neededJSONFree for all purposes, no key needed; the DWD terms of use apply to the data.
MET Norway Weather APIWeather forecastsNot neededJSONFree, also for commercial use, under an open licence that asks for attribution; send a User-Agent that identifies your app and cache the results.
National Weather Service APIWeather forecastsNot neededJSONFree and no key needed; send a User-Agent that identifies your app.
NOAA Tides and Currents APIWeather forecastsNot neededJSON, XML, CSVFree, public domain, no key needed.
Open-MeteoWeather forecastsNot neededJSONFree for non-commercial use; commercial use needs a paid plan.
OpenWeatherMapWeather forecastsNeeded, freeJSON, XMLFree plan with a limit per minute and per month; paid plans for more calls and features.
RainViewer Weather Maps APIWeather forecastsNot neededJSONFree for personal and educational use, no key needed; credit RainViewer with a link.
USNO Astronomical Applications APIWeather forecastsNot neededJSONFree, no key needed.
World Weather Online Local Weather APIWeather forecastsNeeded, freeJSON, XML, CSVFree with a free API key and no card, up to 100 requests a day, for personal, educational and research use; paid plans for commercial use.
World Weather Online Marine Weather APIWeather forecastsNeeded, freeJSON, XMLFree with a free API key, up to 500 calls a day; paid plans for more.
wttr.inWeather forecastsNot needed–Free and open source, no key needed.
Colormind APIGraphicsNot neededJSONFree for personal and non-commercial use, no key needed; commercial use by arrangement.
icon.horseGraphicsNot needed–Free on the Hobby plan, 1,000 icons a month with no account; paid plans raise the limit and add custom fallbacks.
Iconify APIGraphicsNot needed–Free, no key needed; the server is open source and can be self-hosted.
placehold.coGraphicsNot needed–Free, no key needed.
RoboHashGraphicsNot needed–Free, no key needed; images are CC-BY, so credit RoboHash.
The Color APIGraphicsNot neededJSONFree, no key needed.
UI AvatarsGraphicsNot needed–Free, no key needed and no sign-up.
Image-ChartsChart APIsNot needed–The free plan is free forever with unlimited charts, but adds a small 'image-charts.com' watermark; paid plans remove it.
KrokiChart APIsNot needed–Free public server; open source, so you can also run it yourself.
mermaid.inkChart APIsNot needed–Free and open source, no key needed.
QuickChartChart APIsNot needed–Free plan with a monthly limit; paid plans for more charts.
Art Institute of Chicago APIImage and photoNot neededJSONFree, no key needed.
DiceBear avatarsImage and photoNot neededXMLFree and open source, no key needed.
Flickr APIImage and photoNeeded, freeJSON, XMLFree for non-commercial use with a free API key; commercial use needs permission.
goQR.me QR code APIImage and photoNot needed–Free, no key needed.
GrabzItImage and photoNeeded, free–Free to try.
Gravatar APIImage and photoNot neededJSON, XMLFree; avatars need no key, the profile API uses a free API key.
Imgur APIImage and photoNeeded, freeJSONFree for non-commercial use with a free client ID; commercial use needs an agreement with Imgur.
Lorem PicsumImage and photoNot needed–Free, no key needed.
MicrolinkImage and photoNot neededJSONThe free plan allows 50 requests per day without a key; paid plans offer more.
Pexels APIImage and photoNeeded, freeJSONFree with an API key, limited to 200 requests per hour and 20,000 per month, and apps must show a link to Pexels and credit photographers where possible.
Pixabay APIImage and photoNeeded, freeJSONFree with a free API key; results must be cached and hotlinking full images is not allowed.
Rijksmuseum APIImage and photoNot neededJSONFree, no key needed; most images are in the public domain.
The Metropolitan Museum of Art Collection APIImage and photoNot neededJSONFree, no key needed.
Unsplash APIImage and photoNeeded, freeJSONFree; a new app starts in demo mode with 50 requests per hour and can apply for a higher limit.
Wikimedia Commons APIImage and photoNot neededJSONFree, no key needed; check the licence of each file before you use it.
Dailymotion APIVideoNot neededJSONFree; reading public data needs no key.
OMDb APIVideoNeeded, freeJSON, XMLFree with a free API key, 1,000 requests a day.
PeerTube APIVideoNot neededJSONFree and open source, no key needed for public data.
TMDB APIVideoNeeded, freeJSONFree for non-commercial use with a free API key and attribution to TMDB; commercial use needs a licence.
TVmaze APIVideoNot neededJSONFree, no key needed, with a rate limit of a few dozen calls per 10 seconds; the data is licensed under Creative Commons BY-SA.
Vimeo APIVideoNeeded, freeJSONFree with a Vimeo account; some features need a paid Vimeo plan.
YouTube Data APIVideoNeeded, freeJSONFree with a Google API key and a daily quota of 10,000 units; each call costs a number of units, searches costing the most.
DatamuseLanguage and textNot neededJSONFree, no key needed, up to 100,000 requests per day.
Free Dictionary APILanguage and textNot neededJSONFree and open source, no key needed.
Google Cloud Translation APILanguage and textNeeded, freeJSONFree only with billing turned on (a payment method is required), for the first 500,000 characters a month; above that, paid per character.
Merriam-Webster Dictionary APILanguage and textNeeded, freeJSONFree with a free API key for non-commercial use, up to 1,000 queries a day for two reference APIs; commercial use needs Merriam-Webster's approval.
Microsoft TranslatorLanguage and textNeeded, freeJSONFree tier of 2 million characters per month with an Azure account; paid above that.
MyMemory Translation APILanguage and textNot neededJSONFree, no key needed: 5,000 characters a day anonymously, or 50,000 a day when you add a valid email address in the de parameter.
PurgoMalumLanguage and textNot neededJSON, XMLFree, no key needed.
RhymeBrain APILanguage and textNot neededJSONFree, no key needed, up to 350 requests an hour, with a link back to rhymebrain.com required.
Wordnik APILanguage and textNeeded, freeJSONFree with a free API key for nonprofit or research use, up to 100 calls an hour; commercial use needs a paid plan.
Currents APINews feeds and APIsNeeded, freeJSONThe free plan gives 250 requests per day with a free API key and may be used commercially, with attribution and a link to the original article.
GDELT DOC 2.0 APINews feeds and APIsNot neededJSON, CSV, RSSFree, no key needed; limit requests to one every five seconds.
GNewsNews feeds and APIsNeeded, freeJSONThe free plan needs a free API key, has a daily request limit and is meant for development and non-commercial use.
Hacker News APINews feeds and APIsNot neededJSONFree.
Hacker News Search API (Algolia)News feeds and APIsNot neededJSONFree, no key needed, up to 10,000 requests an hour per IP address.
Launch Library 2News feeds and APIsNot neededJSONFree without a key with a low hourly request limit; supporters get higher limits.
NewsData.ioNews feeds and APIsNeeded, freeJSONThe free plan needs a free API key, gives a daily number of credits and may be used commercially.
Spaceflight News APINews feeds and APIsNot neededJSONFree and open source, no key needed.
The New York Times APIsNews feeds and APIsNeeded, freeJSONFree, with a free API key and a daily request limit.
The News API (thenewsapi.com)News feeds and APIsNeeded, freeJSONFree with a free API key: 100 requests a day and 3 articles per request; the headlines endpoint and larger limits are paid.
World News APINews feeds and APIsNeeded, freeJSONFree with a free API key: 50 points a day, one request per second and one month of history, with a link back to worldnewsapi.com required; paid plans remove the link and raise the limits.
Carbon Intensity API (GB)OtherNot neededJSONFree, no key needed.
CBS Open Data (Statistics Netherlands)OtherNot neededJSON, XMLFree, no key needed.
Deck of Cards APIOtherNot neededJSONFree, no key needed.
Dog CEO Dog APIOtherNot neededJSONFree and open source, no key needed.
Genderize, Agify and NationalizeOtherNot neededJSONFree up to 100 names per day; paid plans for more.
JokeAPIOtherNot neededJSON, XMLFree, no key needed, with a limit of about 120 requests per minute.
NASA APIsOtherNeeded, freeJSONFree; the shared DEMO_KEY works for trying things out, and a free personal key gives much higher limits.
Open Brewery DBOtherNot neededJSONFree and open source, no key needed.
Open Food Facts APIOtherNot neededJSONFree, open data, no key needed; send a User-Agent that identifies your app.
Open Trivia DatabaseOtherNot neededJSONFree, no key needed; the questions are licensed under Creative Commons BY-SA.
openFDAOtherNot neededJSONFree; works without a key, and a free API key raises the daily limit.
PokéAPIOtherNot neededJSONFree and open source, no key needed.
Police API (data.police.uk)OtherNot neededJSONFree, no key needed, up to 15 requests a second; the data is under the Open Government Licence.
TheMealDBOtherNot neededJSONThe test key '1' is free for development and education; public apps are asked to become a supporter for a small fee.
USGS Earthquake APIOtherNot neededJSONFree, public domain data, no key needed.
Where the ISS at?OtherNot neededJSONFree, no key needed, with a limit of about one request per second.
GitHub REST APIWeb development servicesNot neededJSONFree; unauthenticated requests are limited to 60 per hour, a free personal access token raises that to 5,000.
HQAPIWeb development servicesNeeded, freeJSON–
jsDelivr Data APIWeb development servicesNot neededJSONFree, no key needed; contact jsDelivr before sending more than about 100 requests per minute for long periods.
PagerDutyWeb development servicesNeeded, freeJSONFree plan for up to 5 users with one on-call schedule and 100 SMS or phone notifications per month; paid plans for larger teams.
SentryWeb development servicesNeeded, freeJSON–
Wufoo Form Builder APIWeb development servicesNeeded, freeJSON, XMLFree with a Wufoo account; the limits depend on your Wufoo plan.
DEV Community API (Forem)Blogs and publishingNot neededJSONFree.
WordPress REST APIBlogs and publishingNot neededJSONFree and part of WordPress.
DNS over HTTPS (Google Public DNS)Data validatorsNot neededJSONFree, no key needed.
Kickbox Open disposable email checkData validatorsNot neededJSONFree, no key needed; full email verification is a separate paid Kickbox service.
LanguageTool APIData validatorsNot neededJSON–
Nu HTML Checker (W3C)Data validatorsNot needed–Free and open source; for heavy use, run your own copy of the checker.
numverifyData validatorsNeeded, freeJSONThe free plan gives 100 requests per month with a free API key, without a time limit; paid plans give more requests.
OpenIBANData validatorsNot neededJSONFree and open source, no key needed.
Amazon Elastic Compute Cloud (EC2)Hosting and storageNeeded, freeXMLPaid, with a 12-month free tier for new AWS accounts.
Amazon Simple Storage Service (S3)Hosting and storageNeeded, freeXMLPaid, with a 12-month free tier for new AWS accounts.
UploadcareHosting and storageNeeded, freeJSON, XML–
crt.sh certificate searchSecurity related servicesNot neededJSONFree, no key needed; avoid very heavy automated use.
MDN HTTP Observatory APISecurity related servicesNot neededJSONFree, no key needed.
OSV APISecurity related servicesNot neededJSONFree, no key needed.
Pwned Passwords APISecurity related servicesNot needed–Free, no key needed.
RDAP (WHOIS)Security related servicesNot neededJSONFree, no key needed.
Shodan InternetDBSecurity related servicesNot neededJSONFree for non-commercial use, no key needed; commercial use needs a Shodan enterprise license.
Google PageSpeed Insights APISEO and site checksNeeded, free–Free; a free API key raises the request limits.
Open PageRank APISEO and site checksNeeded, freeJSONFree with a free API key that works from one IP address; paid plans remove that limit.
Wayback Machine Availability APISEO and site checksNot neededJSONFree, no key needed; the CDX API offers a full list of snapshots.
DummyJSONTesting and mock dataNot neededJSONFree, no key needed.
httpbinTesting and mock dataNot neededJSONFree and open source, no key needed; you can also run it yourself in Docker.
JSONPlaceholderTesting and mock dataNot neededJSONFree, no key needed.
ReqResTesting and mock dataNot neededJSONFree, no key needed for the demo endpoints, with a per-IP rate limit; a free account with its own API key stores your data, and paid plans raise the limits.
Bitly APIURL shortenersNeeded, freeJSONFree plan with a monthly limit on links; paid plans for more links, custom domains and full statistics.
da.gd URL shortenerURL shortenersNot needed–Free, no key needed.
v.gd APIURL shortenersNot neededJSON, XMLFree, no key needed, with hourly limits per IP address.

Questions

What does CORS mean for an API?

CORS (Cross-Origin Resource Sharing) is how a server tells browsers that JavaScript on other websites may read its answers. Without it, a fetch() from your page fails in the browser, even though the same request works from a server or with curl.

Can I put my API key in browser JavaScript?

Only for keys that are meant to be public, such as keys limited to your own domain. Anyone can read a key in a web page, so for other keys call the API from your own server.