{"id":23248138,"url":"https://github.com/itzdiv/api_proj","last_synced_at":"2026-04-11T06:03:59.462Z","repository":{"id":268716269,"uuid":"905232511","full_name":"itzdiv/api_proj","owner":"itzdiv","description":"A city info tool that retrieves AQI, weather, timezone, sunrise/sunset, and nearby places using OpenCage, Open-Meteo, and Wikipedia APIs. Built with Express.js, Axios, and EJS for dynamic content rendering.","archived":false,"fork":false,"pushed_at":"2024-12-18T13:10:52.000Z","size":1727,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T07:19:44.507Z","etag":null,"topics":["api-integration","aqi","backend","ejs","expressjs","javascript","open-meteo","opencage","restful-api","sunrise-sunset","timezone","weather","wikipedia-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itzdiv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-18T12:20:33.000Z","updated_at":"2024-12-18T13:10:55.000Z","dependencies_parsed_at":"2024-12-18T14:32:53.516Z","dependency_job_id":null,"html_url":"https://github.com/itzdiv/api_proj","commit_stats":null,"previous_names":["itzdiv/api_proj"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzdiv%2Fapi_proj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzdiv%2Fapi_proj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzdiv%2Fapi_proj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzdiv%2Fapi_proj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itzdiv","download_url":"https://codeload.github.com/itzdiv/api_proj/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419870,"owners_count":20936013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-integration","aqi","backend","ejs","expressjs","javascript","open-meteo","opencage","restful-api","sunrise-sunset","timezone","weather","wikipedia-api"],"created_at":"2024-12-19T08:12:15.866Z","updated_at":"2025-12-30T23:07:06.972Z","avatar_url":"https://github.com/itzdiv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# City Information Finder 🌍\n\nThis project is a **City Information Finder** web application that fetches and displays detailed information about a city. Users can input the name of a country, state, and city, and get data including AQI, weather conditions, timezone, sunrise and sunset times, and famous places nearby.  \n\nThis application demonstrates the power of RESTful APIs and integrates multiple third-party APIs for fetching real-time data.  \n\n---\n\n## Features 🚀\n\n- **AQI Data**: Displays PM10 and PM2.5 levels with health impact descriptions.\n- **Weather Data**: Current temperature, daily high, and low temperatures.\n- **Timezone Information**: Displays the timezone of the queried location.\n- **Sunrise and Sunset Times**: Provides accurate local times.\n- **Nearby Famous Places**: Retrieves notable places using the Wikipedia GeoSearch API.\n\n---\n\n## Why This Project is Awesome? 💡\n\n1. **RESTful API Integration**:\n   - Implements **OpenCage Geocoding API** to convert city, state, and country into geographic coordinates.\n   - Uses **Open-Meteo API** to fetch weather and air quality data.\n   - Integrates **Wikipedia GeoSearch API** to find famous places near the coordinates.\n   - Handles multiple API responses with robust error handling.\n\n2. **Dynamic and Interactive Interface**:\n   - Built with **Express.js** for backend processing.\n   - **EJS templates** for rendering dynamic content on the frontend.\n\n3. **Scalable Codebase**:\n   - Designed with middleware and modular API calls for better maintainability.\n\n---\n\n## Installation \u0026 Setup 🛠️\n\nFollow these steps to set up the project locally:\n\n### 1. Clone the Repository\n```bash\ngit clone https://github.com/your_username/api_proj.git\ncd api_proj\n```\n### 2. Install Dependencies\n```bash\nnpm install\n```\n### Step 2: Set Up API Keys\n - Get your OpenCage API key from https://opencagedata.com/\n - Update the OPEN_CAGE_API_KEY variable in index.js with your API key.\n\n### Step 3: Start the Server\nnode index.js\n\n#### The application will run at http://localhost:3000\n\n### Usage:\n 1. Open the application in your browser at http://localhost:3000.\n 2. Fill in the Country, State, and City fields in the form.\n 3. Click Get Information to see:\n    - Air quality data\n    - Weather details\n    - Timezone information\n    - Sunrise and sunset times\n    - Famous places nearby.\n\n## Screenshots 📸\n\n- Homepage:\n ![Homepage](render/img1.png)\n\n- Results Page:\n ![Results Page](render/img2.png)\n\n### Contribution 🤝\n- Contributions are welcome!\n- Feel free to submit issues or pull requests to improve the application.\n\n### License 📜\n- This project is licensed under the MIT License.\n\n### Author ✨\n - Developed with ❤️ by Divyansh Malani.\n - \"Turning data into insights, one API call\"\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzdiv%2Fapi_proj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzdiv%2Fapi_proj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzdiv%2Fapi_proj/lists"}