return to table of content

A Collection of Free Public APIs That Is Tested Daily

KMnO4
8 replies
20h14m

What I really want is isoddapi.xyz.

Just like the npm package, all it should do is call isevenapi.xyz and invert the result.

pimlottc
3 replies
18h32m

I'd like to see isfizzbuzz.xyz.

Ideally, before 11:30 AM ET this Friday.

ikari_pl
0 replies
9h51m

so many coding interviews will change forever

yakshaving_jgt
0 replies
19h56m

I hope someone sets up isthirteenapi.xyz.

drexlspivey
0 replies
6h56m

And then isevenapi.xyz should call isoddapi.xyz and invert the result to offload all the work to them.

another2another
0 replies
8h41m

Putting the 'micro' into microservices one bit of logic at-a-time :)

Medox
0 replies
19h30m

isprimeapi.xyz would be helpful.

sva_
3 replies
18h22m

But what do I do if I need to know if a number is odd?

zamadatix
0 replies
18h8m

Launch a startup!

yashspr
0 replies
9h34m

If a number isn't even, you can easily tell that it's odd.
ramon156
0 replies
8h1m

Yeah that's a hole in the market, I'm stealing it

bitwrangler
2 replies
21h14m

I love their pricing options include larger ranges of numbers, and enterprise class also includes negative numbers. ha ha.

Best part is that 'sign up' links to https://archive.org/donate/

darknavi
1 replies
20h40m

I think their ad placement is even better than their pricing.

API Result:

GET https://api.isevenapi.xyz/api/iseven/6/

{"ad":"Buy isEvenCoin, the hottest new cryptocurrency!","iseven":true}

lelandfe
0 replies
20h5m

    {"ad":"Looking for someone to do yard work. Must have a hoolahoop. 760-555-7562","iseven":true}
    {"ad":"FOR SALE - collection of old people call 253-555-7212","iseven":true}
    {"ad":"Auto Repair Service: Free pick-up and delivery. Try us once, you'll never go anywhere again. Email dave57@qotmail.com","iseven":true}

    $ curl https://api.isevenapi.xyz/api/iseven/9999999
    {"error":"Number out of range. Upgrade to isEven API Premium or Enterprise."}

    $ curl https://api.isevenapi.xyz/api/iseven/2e21
    {"error":"what is this I don't even"}

giarc
1 replies
22h20m

I Seven API vs is Even API. Can't say I saw it the right way at first.

fragmede
0 replies
14h13m

that makes me want to make an is seven API.

Lerc
1 replies
21h21m

I feel like one of the categories they are missing is 'APIs that can be done in one line of JavaScript"

I'm not saying these shouldn't exist, I think they're pretty funny, but everything in its place.

dhosek
0 replies
21h16m

These come in handy in an instructional context—being able to have a simple predictable API that you can point students at so they can learn how to call an API and process its data.

kopirgan
0 replies
18h57m

This made my day..

hebocon
0 replies
19h42m

It was the first one I searched for. What a silly tool: Parity as a Service.

rozenmd
9 replies
23h19m

(This doesn't apply to every API in the list, but) having made the mistake of using a public API (that later went offline) for examples in a book of mine, never again.

These days I keep an API deployed on a subdomain I control.

dotancohen
4 replies
9h44m

  > having made the mistake of using a public API (that later went offline) for examples in a book of mine
Literally a tale as old as time. The Old Testament references a command from God, that is not contained in the Old Testament itself.

singpolyma3
1 replies
6h7m

Do you have an example for this? Just curious

HideousKojima
0 replies
2h15m

Not sure which specific example they're referring to, but another example is that, according to tradition, the prophet Isaiah was martyred by placing him inside a hollow tree that was then sawn down. This appears to be referenced by the Apostle Paul in Hebrews 11:37 even though there is no description of Isaiah's death in the Old Testament:

"They were stoned, they were sawn asunder, were tempted, were slain with the sword: they wandered about in sheepskins and goatskins; being destitute, afflicted, tormented;"

block_dagger
0 replies
1h45m

Not literally a tale as old as time. Time existed for billions of years before humans.

082349872349872
0 replies
8h27m

That explains Mel Brooks' 5 missing commandments. Where's the undef ref?

Lerc
3 replies
21h24m

The possibility of an internet resource disappearing exists regardless of the resource type. Running an API Forwarder that could act as a common target for all your APIs might work. Give it the request, and it passes it on, records success, optionally sends a notification if an endpoint that previously succeeded is now failing.

Add a fancy feature of redirection with format changing to handle replacing dead APIs with new ones transparently.

If anybody makes one of these, they should totally make it a free public API. I'd use it, and I'm not certain if that would just be ironically.

dotancohen
1 replies
9h49m

  > Running an API Forwarder that could act as a common target for all your APIs might work.
That just sounds like adding another point of failure into the chain.

Gasp0de
0 replies
6h8m

I'd say it only makes sense if you control the forwarder.

shakna
0 replies
4h44m

Maybe we can convince IANA to host a simple API, on example.com as well.

flavaz
6 replies
20h50m

An API for polling data would be cool, one can dream

mdaniel
2 replies
15h52m

Polling is a fool's errand, in my experience, since I'd guess a ton of the "how about now?" responses are "nope"

IMHO sitemap.xml and/or ActivityPub are sleeper approaches to helping the sites with the adversarial relationship they have with scrapers. In my experience, there are two schools of thought: play the very expensive game of cat and mouse (expensive for BOTH sides) of trying to verify the human-ness of visitors, or make it so the inevitable bots don't eat up very expensive and valuable resources that can be spent serving actual humans

Imagine how much less nonsense would have to go on if Amazon had ActivityPub that CamelCamelCamel could subscribe to, or similar for Craigslist

I'm not saying "all information wants to be free," so if Amazon wants to focus its energies on hoarding the review content, since that's arguably its moat, fantastic - let the bot and anti-bot people war over that content, instead of arguably factual data found on the product listing pages

martyvis
1 replies
13h40m

Maybe there is a language issue here. In Australia, a full on election is also called a poll. The government electoral commission does the polling, the voters do the voting.

I think you getting confused with opinion polling.

mdaniel
0 replies
2h50m

Ah, that's quite possible - since it was a thread about APIs, I interpreted the question as "a way to programmatically await data arrival" - the verb "polling" in API context is repeatedly invoking a status endpoint to ask if new information is available either in absolute terms or in terms of since the last request

I stand by my rant :-D but obviously stand corrected on the question being asked

its-summertime
1 replies
15h58m

Not so much for polling data, but some governments do allow access to coarse election data.

Australia's was enough that the unfortunately complicated math of their election system was repeatable and verifiable (Can't find the post about it, however)

flavaz
0 replies
11h18m

Good point. However, in my experience messing around with choropleth maps, I often find myself resorting to web scraping in the end when I want something more current (opinion polling). Despite this data being seemingly everywhere, and companies often wanting you to use it (with attribution) so they can get advertising for other services, they never seem to have an API.

remram
0 replies
16h35m

What do you mean?

its-summertime
4 replies
16h51m

Not having a free public API for this site is a bit of a joke.

ramon156
1 replies
8h0m

What's the use case?

bcjordan
0 replies
18m

Examples page for an app that generates an app given any API

nofollow
0 replies
6h14m

a syndication feed would probably suffice

nkozyra
0 replies
1h20m

It would never load due to infinite recursion.

debo_
4 replies
21h22m

I'm relieved to know the Rick and Morty API is in such good health.

jonathrg
3 replies
20h59m

I don't really understand why one would build an HTTP API for this. I can't imagine the database being more than a few megabytes, the whole thing could probably be served as a JSON file.

thi2
2 replies
19h5m

I assume it's intended to be used in an educational context. Learning how to work with a simple API is more fun that way.

082349872349872
1 replies
8h53m

The last category on the left sidebar is "FHGR", which I'm guessing stands for Fachhochschule Graubünden, and indeed under IM2 we find:

APIs handpicked by the University of Applied Sciences of Grisons for their IM2 JavaScript programming course...
thaliaarchi
0 replies
4h5m

That explains why there’s so many Swiss APIs.

RicoElectrico
4 replies
22h41m

Paraphrasing a known saying, "there's no API, it's just someone else's computer".

I wish programmers would internalize this. They often seem to take APIs uncritically, not questioning whose resources they're using and where does the data come from as well as its quality beyond obvious cases. APIs are leaky abstractions as all abstractions are.

croes
1 replies
22h5m

API doesn't mean someone's else's computer.

amiga386
0 replies
17h59m

But all the APIs in this collection of free public APIs are on someone else's computer.

Hence testing them daily to see if the someone else is still offering them.

ruthmarx
0 replies
16h3m

APIs are leaky abstractions as all abstractions are.

Not all abstractions are leaky. Not at all.

qup
0 replies
21h38m

APIs can be hosted locally. In fact, I think most of them are.

wg0
3 replies
22h13m

Whatever happened to programmable web?

dingensundso
0 replies
13h7m

On February 3, 2023 Mulesoft announced that after 17 years in operation, it had shut down Programmable Web.

pests
0 replies
15h31m

Honestly, Web3 is partially it now. If you remove the hype and buzzwords, you are left with a bunch of individually addressable contracts that can all be composed and integrated together seamlessly under a single web frontend.

I remember years ago doing something as simple as getting a coin onto an alt-chain was a 20 step process. Get the gas coin on the target chain, find the right contract address, bridge the assets over, do a bunch of conversions, finally to get the token on the chain I wanted.

These days its a single click. Different tools or companies have sprung up, and while they use the same exact contracts I would have manually interacted with before, they script them all together into one transaction to save time and gas fees. A simple UI to select destination chain and coin and it handles all the swaps, gas, bridging, etc needed.

You don't need permission and a lot of standards have developed to keep things running smooth.

It's not just coins and crypto either. No reason not to develop other things off the chain too.

I've been working on my own PIM (personal information management) suite and using web3 has been amazing. No need to worry about a server or a database. Just deploy my code to the chain and store all my data encrypted on chain as well. The altchains are extremely cheap and this storage is already backed up, replicated, distributed, and can be local with a self-ran node. I will never lose it and I can bootstrap my data from scratch anywhere in the world as long as I can sync the chain or reach an API. I have todo lists, notes, contact management, and more in the pipeline and I've never felt so safe about my infrastructure or data before.

veqq
3 replies
17h51m

Tangentially, what APIs do you guys actually pay for? (Personally or through work)

ranger_danger
0 replies
16h46m

easypost and taxjar

navigate8310
0 replies
11h46m

Algo trading requires expensive APIs that fetch almost realtime bids. There are platforms that provide UPSI as APIs, which these traders use.

fragmede
0 replies
14h32m

AWS is arguably an API, and I shovel a ton of money their way. Stripe is another one, though that ends with me getting paid, so I guess that technically doesn't count unless I start losing money using it. There's also the APIs backing all the apps I pay for, since I don't talk to them via a webpage. But then, if we look at every web page that hits an API to get a list of items to display, instead of that list coming over on the html itself, that'd be an API, technically. ChatGPT is an API I hit a bunch via non-web browser clients that I pay for.

webwanderings
2 replies
20h28m

Regarding APIs, what is a recommend good and free tool, other than Postman, that allows for importing and exporting of saved collections?

wonderwonder
0 replies
20h7m

I’ve always liked Insomnia

qskousen
0 replies
17h36m

I just recently (today) started using Bruno, seems pretty good so far. I like that it has a flat file structure that can be included in a git repo.

wackget
2 replies
15h47m

All of the API titles have been replaced by emojis () for me. Is this a bug or is it intentional?

grozmovoi
0 replies
14h58m

same

Retr0id
0 replies
15h6m

Same here. (U+1F979 Face Holding Back Tears)

justinator
2 replies
3h39m

"are" tested daily.

Not to QC the link title, but ;)

somethingisgoin
1 replies
3h34m

I had exactly the same thought at first but then realised they're referring to the collection rather than the APIs. Therefore singular is correct.

justinator
0 replies
3h9m

Ah! You are right!

dudus
2 replies
21h42m

The key here is tested daily. The last time I wanted some sample data api it took me way too long to find one because all the ones that were recommended to me were deprecated. It's really tough to keep a free api up, because there's no incentives. You can't sell ads on it.

arjvik
1 replies
21h34m

You can't sell ads on it.

Maybe you could! Perhaps a sample data API that creates users like "John Chocolate Oreos," address "100 Pack Street", age 19.99, email "visit<at>oreo.com"

lobsterthief
0 replies
6h20m

I don’t think Oreo would want to commit ad spend to that—it would perform worse than the display network, and worse than the Outbrain/Taboolas of the world.

blumomo
2 replies
22h31m

Free IP Geolocation API - lookup any IP address. Provides geolocation data based on the input IPv4/IPv6 address or domain name

Where does one get a geo location for an IP address from?

louky
1 replies
22h16m

In this particular case they seem to pull from https://www.maxmind.com/en/home

There's a bunch of IP/GPS and physical address lookup sites, services, and databases out there.

mrmuagi
1 replies
18h44m

Anyone know of a decent (doesn't have to be realtime) stock API for stocks? I didn't find any under the finance category besides one crypto related.

__gcd
0 replies
18h41m

for basic high-low-open-close daily data, I like yfinance for daily data and polygon.io for minute by minute data

ehnto
1 replies
13h22m

I tried to build something years ago on a similar foundation, and I found maintaining the API list to be impossible as a solo dev. In a pool of say 30 APIs, at least one would break their "contract" as a public resource daily. Shifting endpoints, revoked public tokens, changing outputs.

I was quite disappointed because I loved the product, a dashboard for arbitrary live data sourced from APIs, but the cost of maintaining it was too high.

ozim
0 replies
12h41m

I would say that would be my use case for LLMs. These should be easily fixed by automation that can reason about documentation and could spit out code fixes.

Of course I assume there is documentation that is updated before new changes go live which might be too much to ask :)

xtiansimon
0 replies
6h14m

Odd layout. After entering a search in the text field, the next element is a title: “Search for an API” and a subheading: “Searching for APIs…”. The results were below the fold on my phone. This title made me think the query was not yet submitted, so I’m sure I submitted the form a bunch of times.

wwoessi
0 replies
9h53m

Most of them are useless play apis, but it's a fun dataset maybe. Also I guess most don't use the OpenAPI standard.

sexy_seedbox
0 replies
17h15m

This site is very slow when accessed from Asia. And I can't open each card in a new tab. Slow server and/or bad Nuxt implementation?

nikisweeting
0 replies
19h55m

I did a similar deep dive to find all the specifically Music-related APIs that are available a few years ago. I've since moved on to other projects but maybe someone will find it useful / maybe OP can add the entries in my list to FreePublicAPIs.com!

https://docs.sweeting.me/s/music-apis

jasonbourne4
0 replies
18h21m

Wanted to add AISstream but didn't work. Does it accept websocket APIs? wss://stream.aisstream.io/v0/stream https://aisstream.io/documentation

ifeja
0 replies
20h19m

less is more get rid of the joke ones

dmje
0 replies
23h18m

This is great - bookmarked!

datavirtue
0 replies
21h40m

Me likes, however the first API I looked for was not found. USPS address verification

dankwizard
0 replies
16h6m

No right click -> New tab / Middle click is a killer in 2024.

atoav
0 replies
23h19m

Very cool site and a good reminder that we need more common/shared infrastructure like that.

One nitpick: why can I not open like KS to API sub-pages in a new tab? Are Hyperlinks unfashionable now?

PLenz
0 replies
18h15m

I think most of these would be better off as files

Lerc
0 replies
21h2m

I like this, not only does it let people find the APIs but having a collection like this encourages others to make APIs and to keep them running.

There's not a lot of incentive to create a service if you feel like no-one will ever know about it. I have had a few thoughts for services that I might have developed if I thought anyone would ever see it.

There's probably an argument for sponsorship here as well, not as a vehicle for advertising, but just companies paying for (or supplying resources) to cover the ongoing costs of the service as a public good. I wish I could make something that worked and could put it somewhere and commit zero mindspace to billing, server maintenance etc. and just have it keep running, forever.

CommanderData
0 replies
19h49m

Great resource, with a nice UI (Love to know how it's built).

Found public resources I always wished existed.