Hello,
We have a step by step guide on how to work with APIs : Corvid: Accessing Third-Party Services with the Fetch API . By following this article you can call a third-party service directly from your client-side code.
Below you can find some examples where you can see code that interfaces with an external API. You can load the examples in your Editor, play with them, learn, and apply to your own site and specific API that you are interested in using:
Expose and Access Site APIs
Use MyApi and MyApiClient to expose and access external APIs.
Send Email with SendGrid NPM Interface
Send an email using the SendGrid NPM library.
Send Email with SendGrid REST Interface
Send an email using the SendGrid REST API.
Stripe Payment Processing
Integrate the Stripe Payment processing system into a site. Three levels of user access are demonstrated: visitor, freemium (registered), and premium (paid).