An unofficial Instagram RESTful API. easy to fetch any feed and interact with Instagram (like, follow, etc.) with JWT implementation.
Warning This project fully uses the pgrimaud/instagram-user-feed library, which has been modified on nsmle/instagram-user-feed and has not been merged. Please consider using the main library once the pull request is approved and merged.
git clone https://github.com/nsmle/igramapi.git
- Open your terminal and go to your working directory.
- Clone this repository
git clone https://github.com/nsmle/igramapi.git
- Go to folder
cd igramapi
- Install dependencies
composer install
- Create environment variable
cp .env.example .env
- Generate key inside
.env
filephp artisan key:generate
- Generate
JWT_SECRET
key in.env
filephp artisan jwt:generate-key
- Start local server
php artisan serve
- Open link
http://localhost:8000/api
to get all endpoints list on your browser
Method | Endpoint | Auth |
---|---|---|
GET |
/api | No |
POST |
/api/auth/login | No |
Note Replace
<BASEURL>
in example with your app base url.
- ENDPOINT
/api
- METHOD
GET
- EXAMPLE
curl -X GET <BASEURL>/api
- ENDPOINT
/api/auth/login
- METHOD
POST
- BODY
{ "username" : "YOUR_INSTAGRAM_USERNAME", "password" : "YOUR_INSTAGRAM_PASSWORD" }
- EXAMPLE
curl -X POST <BASEURL>/api/auth/login -H "Content-Type: application/json" -d '{"username": "YOUR_INSTAGRAM_USERNAME", "password": "YOUR_INSTAGRAM_PASSWORD"}'
I currently made this project for personal purposes. I decided to share it here to help anyone with the same needs. If you have any feedback to improve it, You found a bug, You need a new feature/endpoint. You can create an issue if needed and feel free to make a suggestion, or open a PR!