Is there a library to interact with multiple APIs through a single interface?

0
6
Asked By TechExplorer321 On

Hey everyone! I'm on the hunt for a library that lets me interact with various APIs using one unified interface. For instance, I'd like to send data to AWS SES without the hassle of detailed setup. Basically, I'd want to call it programmatically in a simple format like this: `requests.post(library_endpoint, {vendor: 'ses', params: params})`.

I'd also want to do the same for Mailgun: `requests.post(library_endpoint, {vendor: 'mailgun', params: params})`. Essentially, my goal is to access multiple APIs, each having different signatures, all from a single library.

Two key requirements are:
1. It should be a REST API or have unified PyPi/NPM endpoints.
2. There must be comprehensive and regularly updated API documentation included in the library.

I'm fine if the request goes through a server, as long as that server doesn't store or cache my data. I'd love to generate functions with AI, but searching for up-to-date documentation and API signatures online can be a hassle, as AIs often don't have the latest info. So, does such a library exist? Free or open-source options would be great too. Thanks!

2 Answers

Answered By APIWhizKid78 On

I doubt you can fully rely on AI for this—API documentation can be tricky to capture accurately, even with solid references. You might want to set up an API Gateway like Tyk OSS. That way, you can compile API specs for the services you're interested in and create proxy endpoints. I do something similar for APIs lacking an SDK or Client library. If the API provider offers a Swagger or OpenAPI 3.0 spec, you can use tools like [OpenAPI Generator](https://openapi-generator.tech/) to create your own modules or libraries.

CuriousDev90 -

I get what you're saying! I'm looking for that library because it would already have the updated information inside. Once it's installed, it could just pull all the latest API signatures for me. I'll definitely check out Tyk and the OpenAPI link, sounds useful!

Answered By MCPFan92 On

You might want to check out what an MCP (Multi Cloud Platform) offers. It's designed for handling multiple APIs without the headache.

StrugglingCoder47 -

Could you give me a bit more detail on that? I've tried to dig into MCPs but I'm totally lost!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.