this post was submitted on 08 Sep 2023
17 points (100.0% liked)

Free and Open Source Software

17934 readers
74 users here now

If it's free and open source and it's also software, it can be discussed here. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

Greetings,

I am interested in creating a website that offers free APIs for use in various projects. For instance, you could use the API to obtain search results or access the MyIP API. I am open to suggestions for other APIs that would be helpful.

There is only one restriction I will impose, which is a limit on the number of requests per second.

If I proceed with this idea, would you be interested in using it? Please note that any financial support would be voluntary donations (No Stupid Memberships, Credits, or any pay-to-use)

Thank you.

top 20 comments
sorted by: hot top controversial new old
[–] Dr_Cog@mander.xyz 138 points 1 year ago

... what?

This sounds like the pitch of a tech bro who just heard someone use the term API but doesn't actually know what it is

[–] Penguincoder@beehaw.org 83 points 1 year ago (1 children)

I think they mean an API-aggregating API that would be called “100% API” with loads of services supported but no idea how to pay for all that.

[–] MJBrune@beehaw.org 54 points 1 year ago* (last edited 1 year ago)

No, I do not want or need a middleman whose only job is to pass my data through to another API. It's a huge security risk and potentially a violation of my and my user's privacy. Pretending everything is perfect, it's still another point of failure. Your API service could become unavailable. Your API service could simply wrap others in a huge library and still that means some of them are going to be outdated.

There is no strong reason to do this unless you are binding these services together to create a new platform, like what game engines typically do. They take a rendering library, physics engine, etc., tie them all together with an implementation, and allow you to build the higher-level stuff. If that's your idea but for web development or something then I could see the use but just "everything goes in this monolithic API" is not only a terrible idea, it's a dangerous one.

[–] ulkesh@beehaw.org 26 points 1 year ago

There is only one reason to use an API — a developer has a use-case for it. Setting aside all of the security concerns, the existence of some API proxy is not useful in and of itself. Not only is it dead simple to set something like that up, by oneself, thus eliminating the security risks of relying on a third party, it’s just not going to gain traction if it doesn’t add something that makes it more useful than simply calling the endpoint API.

It’s cool you’re looking to try things, but perhaps coming up with a novel service would be a better use of time and effort.

I wish you luck.

[–] mojo@lemm.ee 25 points 1 year ago
[–] moog@lemm.ee 22 points 1 year ago

why would i not just use the api your api hits ? are you talking about footing the bill for paid apis? then no because youre going to stop paying for those at some point.

[–] Scary_le_Poo@beehaw.org 14 points 1 year ago

Bro wut?

I bet every dollar I have that you don't have the foggiest idea of wtf you're talking about.

[–] Veraticus@lib.lgbt 14 points 1 year ago (1 children)

This place exists already; it is called GitHub.

[–] MJBrune@beehaw.org 22 points 1 year ago

they are talking about an API that wraps all other APIs so you only need to include one API. It's like the opposite of microservices. Monolith services by force.

[–] shnizmuffin@lemmy.inbutts.lol 12 points 1 year ago
[–] AdminWorker@lemmy.ca 9 points 1 year ago (1 children)

Did you just get the idea for zapier?

[–] kglitch@kglitch.social 5 points 1 year ago

...or maybe rapidapi.com

[–] elauso@feddit.de 9 points 1 year ago

Honestly I would probably not use it. One if the most important things I'm looking for in an API is reliability - and a project that has no financing is really just waiting to have its plug pulled.

You might be highly motivated right now to keep it going for many years. But without a steady income it might just be a burden to keep it going at some point.

(Nothing personally obviously, I don't know you and wish you all the best!)

[–] blah@lemmy.1204.org 7 points 1 year ago

Here is a possible case study for you. https://OpenRouter.ai.

They are doing what you think of doing, for the various LLM APIs. Three reasons why they offer added value:

  1. Some people cannot access some of these APIs directly (GPT-4 in the advanced settings, Anthropic’s Claude is still close access)
  2. They abstract the way these API are accessed so that the code to use different models does not have to change much.
  3. For some reason, they cost the same as the original API
[–] mrGarbanzo@beehaw.org 5 points 1 year ago (1 children)

I'll carry the odd opinion here and say there's actually a way this could be useful. You have to add value to a product to make it worth your time and effort, increase adoption, and make it at least self-sustainable. Find reasons to justify why this should exist. For a start - This could save time on projects where similar data has to be loaded on a page from multiple api endpoints but it doesn't match. - an old example, but one that I fought once - looking up the time zone of a city from one api, then the time offset from UTC from another api, and trying to relate it all together. That meant my functions had to match that data up on the client side because there were imperfect text matches.

As a second example, if you were able to cache or keep record of data from upstream endpoints that often takes a while to gather because they can't/won't, you might offer a performance advantage or datasets which were previously unavailable to a user without monitoring data coming from that API over an extended period of time.

There's more you can do, but that hinges again on what I previously said, find your pitch and solve problems that the others have created and won't fix.

[–] erwan@lemmy.ml 6 points 1 year ago

It still sounds like a solution looking for a problem

[–] synae@lemmy.sdf.org 1 points 1 year ago (1 children)
[–] amio@kbin.social 3 points 1 year ago

It could work if you aggregated incompatible providers in the same category (such as weather) into one big aggregate API. That way, people wouldn’t need to refactor if their favorite API provider ramps up pricing or dies. But how would I trust you to keep offering the same service at a good price point instead of an established meteorological institution? Also, I think weather aggregators already exist.