https://api.theadityadubey.com/
This application is a collection of fun and useful APIs built with Node.js, Express, and EJS. It includes features such as jokes, movie suggestions, weather updates, Pokémon info, and more!
- Random jokes from the Official Joke API.
- Weather updates and air quality information using the OpenWeatherMap API.
- Random cat facts and images from CatFact and TheCatAPI.
- Random dog facts and images using Dog CEO API and Dog Facts API.
- NASA space data including Mars weather, near-Earth objects, and astronomy pictures of the day from NASA APIs.
- Pokémon details, evolutions, and type matchups using the PokéAPI.
- Cryptocurrency prices using the CoinGecko API.
- Trivia questions from the Open Trivia Database.
- Latest news articles using the News API.
- NASA's Astronomy Picture of the Day (APOD) using NASA APIs.
To get started with the app, clone the repository and install the necessary dependencies:
git clone https://github.com/yourusername/apiapps.git
cd apiapps
npm install
Create a .env
file in the root of your project and add the following environment variables:
OPENWEATHERMAP_API_KEY=your_openweathermap_api_key
NASA_API_KEY=your_nasa_api_key
BASE_URL=https://api.openweathermap.org/data/2.5
COINGECKO_API_BASE_URL=https://api.coingecko.com/api/v3
NEWS_API_KEY=your_news_api_key
Start the server using the following command:
npm start
The app will run on http://localhost:3000
. You can access the various API endpoints via your browser:
/
- Home page/joke
- Random joke/weather
- Weather update and air quality info (Default city: Delhi)/cat-facts
- Random cat fact and image/dog-fact
- Random dog fact and image/space
- NASA space data/pokemon
- Random Pokémon info/crypto
- Top cryptocurrencies/trivia
- Random trivia questions/news
- Latest news articles (Default query: technology) <