This Python project fetches geolocation data (latitude, longitude, city, etc.) for a list of Indian PIN codes using the RapidAPI - India Pincode with Latitude and Longitude service, and saves the results into a CSV file.
- Fetches location data for Indian PIN codes
- Uses the RapidAPI endpoint for real-time information
- Automatically stores the data into a CSV (
Pincode.csv) - Skips invalid or unresponsive PIN codes
Install them using:
pip install pandas requests python-dotenvCreate a .env file in your project directory and add your API key:
API_KEY=your_rapidapi_key_here⚠️ Make sure to exclude.envfrom version control by adding it to.gitignore.
- Add your list of PIN codes
- Add your API Key
- Run the Jupyter Notebook
Pincode.csv— Contains all the collected geolocation data
This project is open source and free to use under the MIT License