Hey JavaScript developers, In this article I am going to share the Top FREE API which you can use in your projects and try your skills. These Free APIs can be game-changer, for you to increase your skills and to understand the working of API.
Whether you’re working on a personal project or something for a client, the right API can save your time and open up new possibilities. So, in this article, you will get the best free APIs with links that also help you supercharge your code and bring your ideas to life.
1. JSONPlaceholder
JSONPlaceholder is a free online REST API that you can use for testing and prototyping. It's particularly useful for developers who need realistic data without setting up a backend.
Endpoint: jsonplaceholder.typicode.com
Features:
- Provides data for users, posts, comments, albums, and photos.
- Endpoints: /posts, /comments, /albums, /photos, /todos, /users
- Data: Includes user information, posts, comments, albums, and photos
- Use Case: Ideal for front-end development and testing API integrations.
2. OpenWeatherMap
This FREE Weather API offers weather data including current weather, forecasts, historical data, and information. This API helps developers integrate weather data into applications.
Endpoint: openweathermap.org/api
Features: Basic free tier available with limited requests.
- Endpoints: /weather (current weather), /forecast (weather forecasts), /onecall (one call API with multiple weather data).
- Data: Includes temperature, humidity, wind speed, weather conditions, and more.
- Use Case: Perfect for weather-related applications or adding weather data to existing apps.
3. CoinGecko
The CoinGecko API provides cryptocurrency data including prices, market capitalization, and historical data.
Endpoint: coingecko.com/en/api
Features: Free tier with generous request limits.
- Endpoints: /coins/markets, /coins/bitcoin, /coins/bitcoin/market_chart, /coins/bitcoin/market_chart_range, etc.
- Data: Includes information on over 6,000 cryptocurrencies.
- Use Case: Useful for building cryptocurrency trackers or integrating crypto data into financial apps.
4. Cat Facts
This FREE API provides random cat facts via a simple API.
Endpoint: catfact.ninja
Features: Great for adding fun content to your apps.
- Endpoints: /facts (get a random cat fact), /facts/:id (get a specific cat fact).
- Data: Includes a variety of amusing and interesting cat facts.
- Use Case: Perfect for adding fun and engaging content to pet-related apps or websites.
5. JokeAPI
The JokeAPI provides random jokes and humor content and it allows you to customize the jokes based on categories (e.g., programming, general, etc.) and formats (e.g., text, JSON).
Endpoint: jokeapi.dev
Features: Allows for customization of joke categories and formats.
- Endpoints: /joke/Programming, /joke/General, /joke/Any.
- Data: Provides jokes with options for single or multiple jokes, and can filter by type (e.g., single or two-part jokes).
- Use Case: Useful for adding humor and entertainment to apps or websites.
6. REST Countries
The REST Countries API provides information about different countries including names, populations, and currencies and other information about the specified country.
Endpoint: restcountries.com
Features: Useful for apps requiring geographical data.
- Endpoints: /name/{name}, /alpha/{code}, /all.
- Data: Includes data such as country names, population, currency, and languages.
- Use Case: Ideal for geographical applications, travel apps, or any project requiring country data.
7. The Dog API
This API offers random dog images and breed information. This API is a fun and useful API for integrating dog images into websites and web applications.
Endpoint: thedogapi.com
Features: Ideal for pet-related apps and fun projects.
- Endpoints: /breeds/image/random, /breeds/list/all, /breed/{breed}/images.
- Data: Includes random dog images, breed-specific images, and a list of dog breeds.
- Use Case: Great for pet-related apps, dog image galleries, or for adding visual appeal to websites.
8. NASA API
The NASA API provides access to NASA’s data, including images, videos, and information on planets and space missions.
Endpoint: api.nasa.gov
Features: Free access to a wealth of space-related data.
- Endpoints: /planetary/apod (Astronomy Picture of the Day), /neo/rest/v1/neo/browse, /mars-photos/api/v1/rovers/curiosity/photos.
- Data: Includes images, videos, and detailed information about space missions and celestial phenomena.
- Use Case: Ideal for space enthusiasts, educational applications, and integrating space-related data into projects.
9. IP Geolocation API
The IP Geolocation API provides information about the location of an IP address, including country, region, city, and more.
Endpoint: ipgeolocation.io
Features: Free tier with limited requests.
- Endpoints: /ipgeo, /country, /region, /city.
- Data: Provides location data such as country, region, city, latitude, and longitude.
- Use Case: Useful for location-based services, user localization, and personalized content based on user location.