Instagram Posts API
Get the first 12 posts on a public profile's grid (reels, photos, videos and carousels): code, URL, media type, caption, display image and date, with the user. Only the first 12 are available signed out: next_max_id is always null and passing one returns 400; more_available says whether the profile has more. Like, comment and play counts are not in the signed-out grid; /v1/instagram/user/reels has counts for reels and /v1/instagram/post for any post. Post dates (taken_at, taken_at_timestamp, created_at) are read from the media id, which encodes its upload time; they can differ from the time Instagram shows by a few minutes.
Quick start
cURL
curl --request GET 'https://api.fetchproof.com/v2/instagram/user/posts?handle=natgeo' \
--header 'x-api-key: YOUR_API_KEY' JavaScript
const response = await fetch("https://api.fetchproof.com/v2/instagram/user/posts?handle=natgeo", {
method: 'GET',
headers: {
'x-api-key': process.env.FETCHPROOF_API_KEY,
},
});
const data = await response.json();
console.log(data); Python
import os
import requests
response = requests.get(
"https://api.fetchproof.com/v2/instagram/user/posts?handle=natgeo",
headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]},
)
print(response.json()) Go
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.fetchproof.com/v2/instagram/user/posts?handle=natgeo", nil)
req.Header.Set("x-api-key", os.Getenv("FETCHPROOF_API_KEY"))
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
} PHP
<?php
$ch = curl_init("https://api.fetchproof.com/v2/instagram/user/posts?handle=natgeo");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
'x-api-key: ' . getenv('FETCHPROOF_API_KEY'),
],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response; {
"success": true,
"credits_remaining": 100,
"credits_charged": 1,
"num_results": 12,
"more_available": true,
"items": [
{
"pk": "4024784204432119856",
"id": "4024784204432119856_787132",
"taken_at": 1794011687,
"created_at": "2026-11-07T00:34:47.000Z",
"media_type": 2,
"code": "Dfa5-jix5gw",
"caption": {
"text": "From harsh conditions to rival predators, these wolves face danger at every turn. But one of their greatest struggles may also be the simplest: finding enough food to survive.\n\n#WolvesUpClose with @bertiegregory is now streaming on @Disn..."
},
"display_uri": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-15/888458173_18716743837019133_2210754818807639947_n.jpg?stp=dst-jpg_e35_s640x640_tt6&ccb=7-5&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pb...",
"user": {
"id": "787132",
"pk": "787132",
"username": "natgeo"
},
"image_versions2": {
"candidates": [
{
"url": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-15/888458173_18716743837019133_2210754818807639947_n.jpg?stp=dst-jpg_e35_s640x640_tt6&ccb=7-5&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pb..."
}
]
},
"product_type": "clips",
"url": "https://www.instagram.com/p/Dfa5-jix5gw/",
"accessibility_caption": "Video by National Geographic on November 07, 2026. May be an image of wolf and text."
},
{
"pk": "4017311023166285121",
"id": "4017311023166285121_787132",
"taken_at": 1793120814,
"created_at": "2026-10-27T17:06:54.000Z",
"media_type": 2,
"code": "DfAWxdIFmVB",
"caption": {
"text": "Even a moment’s rest on Everest can come with a reminder of just how unpredictable the mountain can be.\n\nFrom Oscar®-winning filmmakers @chaivasarhelyi and @jimmychin, EVEREST: THE OTHER SIDE, only in theaters and IMAX worldwide on Octob..."
},
"display_uri": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-15/865525088_18712762651019133_8954025122327073428_n.jpg?stp=dst-jpg_e35_s640x640_tt6&ccb=7-5&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pb...",
"user": {
"id": "787132",
"pk": "787132",
"username": "natgeo"
},
"image_versions2": {
"candidates": [
{
"url": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-15/865525088_18712762651019133_8954025122327073428_n.jpg?stp=dst-jpg_e35_s640x640_tt6&ccb=7-5&efg=eyJlZmdfdGFnIjoiQ0xJUFMuYmVzdF9pb..."
}
]
},
"product_type": "clips",
"url": "https://www.instagram.com/p/DfAWxdIFmVB/",
"accessibility_caption": "Video by National Geographic on October 27, 2026. May be an image of ski, glasses, ski slope and text."
},
{
"pk": "4012207125530714429",
"id": "4012207125530714429_787132",
"taken_at": 1792512382,
"created_at": "2026-10-20T16:06:22.000Z",
"media_type": 1,
"code": "DeuOR-CjKE9",
"caption": {
"text": "Some of the best reasons to travel in 2027 are far from the usual destinations. 🌎\n\nNational Geographic’s picks for Best of the World 2027 are here and features 25 destinations across six continents. \n\nWhether you're drawn to places stee..."
},
"display_uri": "https://scontent-iad3-2.cdninstagram.com/v/t51.82787-15/858921974_18710195065019133_277441153414192961_n.jpg?stp=dst-jpg_e35_s640x640_tt6&ccb=7-5&efg=eyJlZmdfdGFnIjoiRkVFRC5iZXN0X2ltYW...",
"user": {
"id": "787132",
"pk": "787132",
"username": "natgeo"
},
"image_versions2": {
"candidates": [
{
"url": "https://scontent-iad3-2.cdninstagram.com/v/t51.82787-15/858921974_18710195065019133_277441153414192961_n.jpg?stp=dst-jpg_e35_s640x640_tt6&ccb=7-5&efg=eyJlZmdfdGFnIjoiRkVFRC5iZXN0X2ltYW..."
}
]
},
"product_type": "feed",
"url": "https://www.instagram.com/p/DeuOR-CjKE9/",
"accessibility_caption": "Photo by National Geographic on October 20, 2026. May be an image of outdoors and text."
}
],
"next_max_id": null,
"user": {
"pk": "787132",
"username": "natgeo",
"full_name": "National Geographic",
"is_private": false,
"id": "787132",
"is_verified": true,
"profile_pic_url": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_9051036240972105113_n.jpg?stp=dst-jpg_s150x150_tt6&ig_cache_key=GAKLvih9nsRnYEVCAJlFVLiBvZt9bmNDAQAB1501500j-ccb7-5&ccb=7-5&efg=...",
"fbid": "17841400573960012"
}
} {
"success": true,
"credits_remaining": 100,
"credits_charged": 0,
"error": "forbidden",
"errorStatus": 403,
"message": "Profile is age restricted"
} {
"success": true,
"credits_remaining": 100,
"credits_charged": 0,
"error": "not_found",
"errorStatus": 404,
"message": "Profile is private"
} What it returns
- success boolean
- credits_remaining integer
- credits_charged integer
- profile_grid_items null
- profile_grid_items_cursor null
- pinned_profile_grid_items_ids null
- special_empty_state null
- num_results integer
- more_available boolean
- items array
Parameters
The Instagram username, with or without @
Accepted for compatibility and ignored: the signed-out grid has no counts.
Set to true for a trimmed response.
Not supported: signed-out pagination is closed, so only the first 12 posts are returned. Passing one returns 400.
Use cases
- Pull a profile's 12 most recent posts
- Monitor a competitor's new posts
- Collect post links and captions for a content audit
- See whether an account posts reels, photos or carousels
Billing
Errors cost zero credits. Empty results follow this operation’s rules.
Default: 1 credit
An empty result costs 0 credits.
How charges are determined
Cost is decided per call, not per endpoint: the same operation can cost different amounts depending on what it returns.
A call that fails costs 0 credits. A result served from cache costs 0 credits.
`default` is the cost when no rule matches. Rules are evaluated in order and the first whose conditions all hold wins.
A `when` condition is one of: `param` (the request parameter is true), `outcome` (the classifier's outcome), `empty` / `nonEmpty` (a response field is empty and absent, or a non-empty array or string), `flag` (a response field is exactly true).
A cost of `{ perStartedMinute: n, of: [fields] }` is n x max(1, ceil(seconds / 60)), so even a short result bills at least one minute.
Related Instagram endpoints
FAQ
How much does the Instagram Posts API cost?
A call costs 1 credit by default. Errors cost 0 credits. New accounts get 100 free credits with no card. After that, credits come in one-time packs that never expire: 25,000 for $27 and 500,000 for $297 (plus any tax). There is no subscription.
What do I need to call it?
An API key in the x-api-key header, plus handle. You don't need a Instagram account or developer app.
What does it return?
Typed JSON. Top-level fields include profile_grid_items, profile_grid_items_cursor, pinned_profile_grid_items_ids, special_empty_state, num_results and more_available. The full schema and a real sample response are on this page and in the API reference.
Is this an official Instagram API?
No. Fetchproof is an unofficial API that returns public Instagram data only.