Free public APIs for programmers

The knowledge of API (Application Programming Interface) is a must these days. APIs allow us to do a request to a remote server and get the response in a standard format (JSON, XML, etc).

Most of the apps use API to get data or post data to the remote resources. In the very beginning, programmers may need some sample APIs to continue the development work. Following are some useful free APIs for developers:

Free public APIs

API NAMEDESCRIPTIONSAMPLE URL
7Timer!Weather forecastshttp://www.7timer.info/bin/api.pl?lon=113.17&lat=23.09&product=astro&output=json
Agify.ioPredict age based on a namehttps://api.agify.io?name=bella
Archive.orgLarge public digital archivehttps://archive.org/metadata/TheAdventuresOfTomSawyer_201303
Binance24 hr crypto datahttps://api2.binance.com/api/v3/ticker/24hr
BoredActivity suggestionshttps://www.boredapi.com/api/activity
Cocktail DatabaseCocktail recipeshttps://www.thecocktaildb.com/api/json/v1/1/search.php?s=margarita
CoinBaseCurrency codes and nameshttps://api.coinbase.com/v2/currencies
CoinDeskBitcoin price indexhttps://api.coindesk.com/v1/bpi/currentprice.json
CoinGeckoExchange rateshttps://api.coingecko.com/api/v3/exchange_rates
CoinMapCrypto ATMshttps://coinmap.org/api/v1/venues/
CoinpaprikaCryptocurrency datahttps://api.coinpaprika.com/v1/coins/btc-bitcoin
CryptingUpCryptocurrency datahttps://www.cryptingup.com/api/markets
Data USAUS public datahttps://datausa.io/api/data?drilldowns=Nation&measures=Population
DogsRandom dog imageshttps://dog.ceo/api/breeds/image/random
ExchangeRate-APIExchange rateshttps://open.er-api.com/v6/latest/USD
FreeGeoIPGeoIP infohttps://freegeoip.app/json/
Genderize.ioPredict gender based on a namehttps://api.genderize.io?name=scott
HTTP CatsCat images for HTTP status codeshttps://http.cat/401
HTTPBinInspect your user agent and headershttp://httpbin.org/get
Image-ChartsChart imageshttps://image-charts.com/chart?cht=p3&chs=700×100&chd=t:60,40&chl=Hello|World&chan&chf=ps0-0,lg,45,ffeb3b,0.2,f44336,1|ps0-1,lg,45,8bc34a,0.2,009688,1
ImgflipPopular memeshttps://api.imgflip.com/get_memes
IP 2 CountryGet country for IP addresshttps://api.ip2country.info/ip?161.185.160.93
IP FastGet your public IP addresshttps://ip-fast.com/api/ip/
IPifyGet your public IP addresshttps://api.ipify.org?format=json
iTunes SearchiTunes and Apple Book Store contenthttps://itunes.apple.com/search?term=radiohead
JikanUnofficial MyAnimeList APIhttps://api.jikan.moe/v3/search/anime?q=naruto
JokeAPIhttps://v2.jokeapi.dev/joke/Any
KrakenCrypto datahttps://api.kraken.com/0/public/Trades?pair=ltcusd
KuCoinCrypto datahttps://api.kucoin.com/api/v1/market/stats?symbol=BTC-USDT
ListlyTop 10 listshttps://list.ly/api/v4/meta?url=http://google.com
MakeupMakeup brands and product infohttp://makeup-api.herokuapp.com/api/v1/products.json?brand=maybelline
MusicBrainzMusic datahttp://musicbrainz.org/ws/2/artist/5b11f4ce-a62d-471e-81fc-a69a8278c7da?fmt=json
Nager.DatePublic holidayshttps://date.nager.at/api/v2/publicholidays/2020/US
Nationalize.ioPredict nationality based on a namehttps://api.nationalize.io?name=michael
OddsmagnetGet odds history from bookmakershttps://data.oddsmagnet.com/history/2021/football/england-premier-league/brentford-v-arsenal/win-market.json
Open LibraryInformation about bookshttp://openlibrary.org/api/volumes/brief/isbn/9780525440987.json
openFDAProduct recalls from the FDAhttps://api.fda.gov/food/enforcement.json?limit=10
Pixel EncounterSVG Monstershttps://app.pixelencounter.com/api/basic/monsters/random
PlacekittenPlaceholder kitten imageshttp://placekitten.com/200/300
Public APIsList public APIshttps://api.publicapis.org/entries
PunkAPIBeer recipeshttps://api.punkapi.com/v2/beers
Random DogsRandom dog imageshttps://random.dog/woof.json
RandomUserFake user data generatorhttps://randomuser.me/api/
ShrtcodeURL Shortenerhttps://api.shrtco.de/v2/shorten?url=example.org/very/long/link.html
TeleportLocation and quality of life datahttps://api.teleport.org/api/urban_areas/teleport%3A9q8yy/scores/