arisawali2014 / igramapi

An unofficial Instagram RESTful API. easy to fetch any feed and interact with Instagram (like, follow, etc.) with JWT implementation.

Home Page:https://igramapi.herokuapp.com/api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Igramapi

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.

Installation

git clone https://github.com/nsmle/igramapi.git

Usage

  • 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 file
    php artisan key:generate
  • Generate JWT_SECRET key in .env file
    php artisan jwt:generate-key
  • Start local server
    php artisan serve
  • Open link http://localhost:8000/api to get all endpoints list on your browser

Endpoints

Method Endpoint Auth
GET /api No
POST /api/auth/login No

Note Replace <BASEURL> in example with your app base url.

Get all list of api endpoints.

  • ENDPOINT
    /api
    
  • METHOD
    GET
    
  • EXAMPLE
    curl -X GET <BASEURL>/api

Login with instagram credentials.

  • 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"}'

Feedback

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!

About

An unofficial Instagram RESTful API. easy to fetch any feed and interact with Instagram (like, follow, etc.) with JWT implementation.

https://igramapi.herokuapp.com/api

License:MIT License


Languages

Language:PHP 84.0%Language:Blade 14.8%Language:Shell 0.9%Language:JavaScript 0.3%Language:Procfile 0.0%