https://insta-api.now.sh/
"Because getting content from Instagram shouldn't be that frustrating"
GET https://insta-api.now.sh/api/cristiano
{
"username": "cristiano",
"link": "https://www.instagram.com/cristiano/",
"profile_pic": {
"small": "https://...",
"large": "https://..."
},
"verified": true,
"private": false,
"name": "Cristiano Ronaldo",
"bio": null,
"website": "http://www.cristianoronaldo.com/",
"postCount": 2704,
"followers": 191091698,
"following": 445,
"recentPosts": [
{
"id": "B5Xkbb_A3Z9",
"link": "https://www.instagram.com/p/B5Xkbb_A3Z9/",
"image": "https://...",
"thumbnail": {
"small": "https://...",
"large": "https://..."
},
"caption": "Great win at home! Top of the group!💪🏽\n#finoallafine #forzajuve",
"likes": 2348107,
"comments": 8439,
"is_video": false,
"location": null,
"date": "2019-11-27T12:06:34.000Z"
},
...
]
}
You can also opt to host your own instance of the API by following the steps below:
- Install NodeJS (12.12.0 or higher)
- Download the repo on the
self-hosted
branch cd
into the repo directorynpm install
(This may take a few minutes - be patient)npm start
- Visit http://localhost:3000 in your browser
Optionally, settings can be tweaked in api/config.json
- Only supports
GET
requests on Instagram user pages (by design) - Data only updates every 5 minutes (by design - for caching purposes)
- Only includes 12 most recent posts