Skip to content

This API, built in Python, fetches an Instagram user's profile picture URL by providing their username.

Notifications You must be signed in to change notification settings

mrxehmad/Instagram_profile_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Instagram Profile Picture API

Overview

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.

Installation

  1. Clone the repository:
    git clone https://github.com/mrxehmad/Instagram_profile_API.git
  2. Navigate to the project directory:
    cd Instagram_profile_API
  3. Install the required dependencies:
    pip install -r requirements.txt

Usage

  1. Run the Flask application:

    python app.py
  2. 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

Deployment on Heroku

  1. Create a Heroku account and install the Heroku CLI.
  2. Login to Heroku in the terminal:
    heroku login
  3. Create a new Heroku app:
    heroku create
  4. Deploy the application to Heroku:
    git push heroku master
  5. Open the deployed app in the browser:
    heroku open

Contributing

Contributions are welcome! Feel free to open issues or pull requests for improvements or additional features.

License

This project is licensed under the MIT License.

About

This API, built in Python, fetches an Instagram user's profile picture URL by providing their username.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages