InstaAPI is a simple Python Wrapper for interacting with the Instagram Downloader API via RapidAPI. This Wrapper allows you to easily fetch download links and thumbnails for Instagram posts.
Warning
We are not affiliated with Instagram in any way. Use this tool responsibly and adhere to Instagram’s Terms of Service. This tool is meant to work with publicly available Instagram content.
- Fetch Instagram post download links and thumbnails.
- Securely store and use your RapidAPI key.
Before you start, you'll need:
- A RapidAPI account: If you don’t have one, you can create it at RapidAPI.
- The Instagram Downloader API key: You can subscribe to it here.
-
Clone the repository:
git clone https://github.com/farhaanaliii/InstaAPI.git
-
Navigate to the project folder:
cd InstaAPI
-
Install required Python packages:
pip install requests
-
Store your RapidAPI key securely:
- Open the
config.py
file in the project. - Replace
"your_rapidapi_key_here"
with your actual RapidAPI key.
RAPIDAPI_KEY = "your_rapidapi_key_here" # Replace with your actual API key
- Open the
-
Running the Test: After setting up the API key in
config.py
, run themain.py
script:python main.py
This will fetch the Instagram post's thumbnail and download link and display them in the terminal.
In main.py
, you can change the post_url
to any Instagram post URL you want to fetch data from. Here's the default example:
post_url = "https://www.instagram.com/coding.np/p/DCyqv53Sa8R/"
The script will fetch and display the thumbnail and download link.
Feel free to fork this repository and contribute by submitting issues and pull requests.
- Farhan Ali
- GitHub: @farhaanaliii
This project is open source and available under the MIT License.