API Resources

API Selection

Server-side APIs allow developers to access data that companies and organizations provide through URLs, or endpoints. Developers can create applications that make requests to these endpoints, which respond with the requested data. Developers can then use this data in their own applications.

However, when you're building an application that only has a front end, you can only use APIs that don't require CORS. Cross-Origin Resource Sharing, also known as CORS, is a mechanism that allows a server to restrict which other origins other than its own are permitted to load resources.

For security reasons, browsers restrict cross-origin requests initiated from scripts. For example, the Fetch API follows the same-origin policy, which means that a web application can only request resources from the same origin the application was loaded from unless the response includes the right headers.

Therefore, when you're building a front-end application, you will need to use APIs that don't require CORS.

API List

Here is a list of free APIs that don't require CORS:

Examples

Here are some examples on how to use the APIs using JSFiddle. Open the link in a new tab and then open the console to view the responses.

Additional Resources

Here are some additional API resources and guides:


Source: The Coding BootCamp

Comments:

This was quite an interesting module, for the first time, my front-end project was alive with live data and capable of providing useful information to end users.

Working with API's was certainly interesting and it was curiously easy to comprehend.

Using server side APIs boosts the functionality of your code, it’s such a powerhouse of productivity.

Nice one, Jeff, I needed to read this.

I like the WYISWYG editor

About

The Developer's Tech Blog is your one-stop shop for all news covering Software Development, Cloud Computing, Data Analytics, Machine Learning and Artificial Intelligence tools relevant to every professional in the Information Technology space.