Instagram API

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.

  • No card needed
  • Failed calls are free
  • Pack credits never expire
Account
Endpoint
curl "https://api.toolzerhub.com/v2/instagram/user/posts?username_or_id=natgeo" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
200 OK
Real response, 27 Nov 2026, trimmed to a few items.
{
  "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
credit per call
12
posts per call
$0.14
per 1,000 posts on the 3K pack
$0.08
per 1,000 posts on the largest plan

Last 7 days: 5,495 of 5,497 calls succeeded (27 Nov 2026).

Inputs

What you send

GET /v2/instagram/user/posts with your key in the x-api-key header.

ParameterExampleNotes
username_or_idrequirednatgeoUsername without the @, or the numeric user ID.
count121 to 12 per page. Leave it out for 12.
max_idAQHTOmzF…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

  1. 01x-api-key••••••••••Get a key100 free credits a month, no card
  2. 02GET/v2/instagram/user/postsSend a requestAny HTTP client, no SDK needed
  3. 03{ data, status }200Get JSONFailed calls cost nothing

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.

All plans and packs

FAQ

Questions

How far back can I go?
Keep passing next_max_id until more_available is false. Every page is one credit, so a 600-post account is 50 calls.
Are reels included?
Yes. Reels come back with media_type 2 and product_type clips, alongside photos and carousels.
Can I get comments for each post?
Take the code of each post and call the comments endpoint with it, one credit per 15 comments.

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)