This Python API enables users to retrieve an Instagram profile picture URL by providing a username. It is designed for simplicity and ease of integration into various applications. The API can be hosted for free on platforms like Heroku, making it accessible for developers seeking a lightweight solution.
- Clone the repository:
git clone https://github.com/mrxehmad/Instagram_profile_API.git
- Navigate to the project directory:
cd Instagram_profile_API
- Install the required dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Access the API at http://localhost:80/get_profile_pic with the following query parameter:
username
: The Instagram username for which you want to retrieve the profile picture.
Example:
http://localhost:80/get_profile_pic?username=example_user
- Create a Heroku account and install the Heroku CLI.
- Login to Heroku in the terminal:
heroku login
- Create a new Heroku app:
heroku create
- Deploy the application to Heroku:
git push heroku master
- Open the deployed app in the browser:
heroku open
Contributions are welcome! Feel free to open issues or pull requests for improvements or additional features.
This project is licensed under the MIT License.