Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is there a way to call API not on client side?

Currently in my site, the API Call is in the client-side JavaScript meaning that anyone can spam refresh and use up the limited amount of API Calls (At least I assume that is how it works).

I am new and I want to know if I can call the API Locally and then push that data to the client end.

Here is the format of my API Calls:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

const res = await fetch(`https://link.com`, {
        headers: {
            'X-RapidAPI-Host': "link",
            "X-RapidAPI-Key": "key"
        }, 
    });

I am currently using simple JavaScript with jQuery. Node.js, AWS or some other services may be required for what I want but I am not sure, any help would be amazing. I have tried seeking answers to this question but was not able to find anything that made any sense.

>Solution :

Here’s a helpful article on caching API requests. This method is done client side and should be suitable for your question: https://dev.to/adancarrasco/caching-api-requests-in-javascript-mc4

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading