Instagram Posts Scraper API
Pull an account's feed: captions, like and comment counts, plays on reels and the post date. 12 posts per call, newest first, with a cursor for older ones.
Account
Endpoint
curl "https://api.toolzerhub.com/v2/instagram/user/posts?username_or_id=natgeo" \
-H "x-api-key: $TOOLZERHUB_API_KEY"{
"data": {
"num_results": 12,
"more_available": true,
"next_max_id": "AQHTOmzFfdirkYyPCD_FWoKiK0ZLRMQRsGlMNrb0WjkJES9p3JJLy0VVz94Csg2Y6bXLoHFuzTz_VIAAVio7oya8tQ",
"items": [
{
"id": "4032379434794749057_787132",
"code": "Df147tCiAyB",
"media_type": 8,
"product_type": "carousel_container",
"taken_at": 1794917109,
"caption": {
"text": "National Geographic photographers ventured to places far and wide to capture the year’s most fascinating images. Out of millions of photo…"
},
"like_count": 24475,
"comment_count": 111
},
{
"id": "4017311023166285121_787132",
"code": "DfAWxdIFmVB",
"media_type": 2,
"product_type": "clips",
"taken_at": 1793124003,
"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 @…"
},
"like_count": 47636,
"comment_count": 297,
"play_count": 1820230
},
{
"id": "4012207125530714429_787132",
"code": "DeuOR-CjKE9",
"media_type": 1,
"product_type": "feed",
"taken_at": 1792512390,
"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…"
},
"like_count": 17377,
"comment_count": 301
}
]
}
}- 1
- 12
- $0.14
- $0.08
Inputs
What you send
GET /v2/instagram/user/posts with your key in the x-api-key header.
| Parameter | Example | Notes |
|---|---|---|
| username_or_idrequired | natgeo | Username without the @, or the numeric user ID. |
| count | 12 | 1 to 12 per page. Leave it out for 12. |
| max_id | AQHTOmzF… | next_max_id from the previous page. |
Limits
Good to know
- Accounts can hide like counts; like_and_view_counts_disabled is then true.
- Pinned posts are listed in pinned_profile_grid_items_ids.
How it works
From key to JSON
- 01x-api-key••••••••••Get a key
- 02GET/v2/instagram/user/postsSend a request
- 03{ data, status }200Get JSON
Pricing
1,000 posts cost $0.14
84 calls at 1 credit each is 84 credits: $0.14 on the $5 3K pack, down to $0.08 on the largest plan. The free 100 credits a month cover about 1,200 posts, and failed calls are not charged.
FAQ
Questions
- How far back can I go?
- Are reels included?
- Can I get comments for each post?
Related
Often used with it
Same key, same credits. Every Instagram endpoint is on the Instagram API page.
Try the Instagram Posts API free
Every new workspace gets 100 credits a month. Buy credits only when you need more.
Get free API key(opens in new tab)