100 free credits. No credit card required.Start building
Logo
Back to blog

Instagram Scraper: 1 Credit, 27 Hashtag Posts

By Friday···18 min read

An Instagram scraper reads a hashtag one page at a time. On 8 November 2026, #coffee recent returned 27 posts for 1 credit, with another page still available.

Instagram Scraper: 1 Credit, 27 Hashtag Posts

The quickest way to scrape Instagram in 2026 is a single GET request to a data API, no browser automation and no logged-in session. Here is the whole thing:

bash
curl "https://www.socialcrawl.dev/v1/instagram/profile?handle=nasa" \
  -H "x-api-key: sc_your_api_key_here"

That returns a normalized profile: follower count, bio, verification, post count, and a computed engagement_rate, for 1 credit. The rest of this guide is the honest version of the question: what the official Instagram API does and does not allow, what building your own scraper actually costs you in maintenance and legal exposure, and how to pull profiles, posts, and comments through a real endpoint with runnable Python, Node, and curl.

Hashtag search is a different request, billed per page. On 8 November 2026, GET /v1/instagram/search/hashtag for coffee with type=recent returned 27 posts for 1 credit, and pagination.has_more was still true. The dated section below is that walk, plus the same morning's TikTok search and the Discover download order.

Stack: Python 3.10+ or Node 18+ · requests / fetch · a SocialCrawl API key (free tier: 100 credits, no card)


Can you get Instagram data from the official API?

Mostly no, and this is the part every honest guide has to lead with.

Instagram's only official API is the Graph API, and it is built for managing accounts you already control, not for reading other people's. To use it you need an Instagram Business or Creator account, a linked Facebook Page, a Meta developer app, and, for most useful permissions, App Review, where Meta inspects your use case before granting access. Even then, the data is scoped to your own account and accounts that explicitly authorize your app. There is no official endpoint that takes an arbitrary username and returns that public profile's followers, posts, or comments. The older Basic Display API, which came closest to a personal-account read, was deprecated in December 2024.

So if your job is competitor analysis, creator discovery, influencer vetting, or feeding public post data into a pipeline, that work sits outside the Graph API's stated scope. The public-handle Instagram API that covers country and join month on About, reels, post stats, a reel transcript, and 404s that name the real path is live-checked in Instagram API reliability.

Should you build your own Instagram scraper?

The DIY route is real, and for some teams it is the right call. It is worth being clear-eyed about what it involves.

Anti-bot reality. Instagram is a heavily defended single-page app. Scraping it yourself means driving a headless browser (Playwright or Selenium) or reverse-engineering the private GraphQL endpoints its web client calls. Both paths run into rate limiting, device and session fingerprinting, challenge screens, and login walls that trip the moment traffic looks automated. Residential proxies and rotating sessions push the success rate up but never to 100 percent, and every improvement Instagram ships to its defenses is a bug you now own.

Maintenance. The private endpoints and the DOM change without notice. A scraper that works today can silently return empty results next week, so you also need monitoring to notice when it breaks. In practice a self-maintained Instagram scraper is a subscription paid in engineering hours rather than dollars.

Legal considerations. Scraping publicly accessible data has repeatedly survived legal challenge in US courts, most notably the hiQ Labs v. LinkedIn line of cases. That is not a blanket permission slip. Instagram's Terms of Use prohibit automated collection, so ToS exposure is real; and the data you collect (profiles, comments) is personal data, which brings GDPR and CCPA obligations depending on your jurisdiction and use case. A data API does not make any of this go away, and no tool can honestly promise it "gets around" Instagram's terms. What a good API does is handle the collection infrastructure and give you a stable contract, so the engineering problem shrinks to the legal and product questions that are actually yours to answer. Read the legal and technical guide to social media scraping before shipping anything commercial.

The rest of this guide takes the third route: a maintained data API that returns public Instagram data in a normalized shape, so you write against a schema instead of a moving target.

Setting up: one key, one request

Get an API key at socialcrawl.dev, sign up, then open Dashboard → API Keys. Keys look like sc_ followed by 32 random bytes and are shown in full once, so copy it immediately. New accounts get 100 free credits that never expire, and an Instagram profile call costs 1 credit, so the free tier covers 100 profile reads before you pay anything.

Keep the key out of source control:

bash
export SOCIALCRAWL_API_KEY=sc_your_api_key_here

If you would rather see the response shape before writing any code, paste an Instagram URL into the Visual Explorer and the unified schema renders instantly.

Scraping an Instagram profile

The endpoint is GET /v1/instagram/profile. It takes one required parameter, handle (the username, no @), and returns the normalized author object plus computed fields.

python
import os
import requests

API_KEY = os.environ["SOCIALCRAWL_API_KEY"]
BASE = "https://www.socialcrawl.dev/v1"

resp = requests.get(
    f"{BASE}/instagram/profile",
    params={"handle": "nasa"},
    headers={"x-api-key": API_KEY},
    timeout=30,
)
profile = resp.json()["data"]["author"]
print(profile["username"], profile["followers"], "followers")

The same call in Node:

js
const res = await fetch(
  "https://www.socialcrawl.dev/v1/instagram/profile?handle=nasa",
  { headers: { "x-api-key": process.env.SOCIALCRAWL_API_KEY } },
);
const { data } = await res.json();
console.log(data.author.username, data.author.followers, "followers");

Here is a real, unmodified response captured with a live dev key in July 2026 (the avatar URL is truncated for readability):

json
{
  "success": true,
  "platform": "instagram",
  "endpoint": "/v1/instagram/profile",
  "data": {
    "author": {
      "id": "528817151",
      "username": "nasa",
      "display_name": "NASA",
      "avatar_url": "https://scontent-bos5-1.cdninstagram.com/...",
      "bio": "Making the seemingly impossible, possible. ✨",
      "verified": true,
      "followers": 104307024,
      "following": 91,
      "posts_count": 4853,
      "url": "https://www.nasa.gov/",
      "private": false
    },
    "computed": {
      "engagement_rate": 0.001932,
      "language": "en",
      "content_category": "other"
    }
  },
  "credits_used": 1,
  "credits_remaining": 184262,
  "request_id": "req-r39sVIBk8ddNwGBl"
}

computed.engagement_rate is calculated on the server from recent posts, so you do not derive it from raw counts. The author fields in this response (username, followers, verified, bio) use those names on the profile endpoints that return them. The catalogue lists 75 platforms as of November 2026.

Scraping Instagram posts and comments

Profiles are the front door. The two follow-on reads most projects need are a profile's posts and a post's comments, and both paginate with a cursor.

GET /v1/instagram/profile/posts lists a public account's posts. You pass handle, read data.items, and pass pagination.next_cursor back as cursor on the next request until it is null:

python
def scrape_instagram_posts(handle: str, max_pages: int = 10) -> list[dict]:
    posts, cursor = [], None
    for _ in range(max_pages):
        params = {"handle": handle}
        if cursor:
            params["cursor"] = cursor  # pass next_cursor back verbatim
        payload = requests.get(
            f"{BASE}/instagram/profile/posts",
            params=params,
            headers={"x-api-key": API_KEY},
            timeout=30,
        ).json()
        if not payload.get("success"):
            raise RuntimeError(payload["error"]["message"])
        posts.extend(payload["data"]["items"])
        cursor = (payload.get("pagination") or {}).get("next_cursor")
        if not cursor:
            break
    return posts

To read the comments on a specific post, GET /v1/instagram/post/comments takes the post url and paginates the same way. Every comment arrives in the canonical comment shape (text, author.username, engagement.likes, published_at), the same object the TikTok, YouTube, and Reddit comment endpoints return, so the export code you write once transfers across platforms.

The max_pages guard is there because each page of profile posts costs 1 credit. A busy account has a long history, so decide the per-account budget before the loop starts. Comment pages are a different price: 5 credits a page, same as follower pages.

Pagination, rate limits, and credits

Three operational facts to build around, all from the live API:

  • Pagination is a cursor contract. The response field is pagination.next_cursor. Pass it back as the cursor parameter, verbatim, with no decoding or arithmetic, and stop when it is null. The parameter name per endpoint is on the pagination page.
  • Two ceilings, both per API key: 600 requests per minute and 50 concurrent requests. Exceed either and you get a 429 envelope (RATE_LIMITED or CONCURRENCY_LIMIT) with no credits charged. A worker pool below 50 that averages under 10 requests a second stays comfortably inside both.
  • Failures refund credits. Errors use the same envelope with success: false and a typed error object. Empty-upstream 404s and transient 502/503s automatically refund the credit, so a retry wrapper never double-spends. The full matrix is in the error handling docs.

Profile reads and pages of profile posts are 1 credit each. A hundred profiles is 100 credits, which the free tier covers. Comment pages and follower pages are 5 credits each. Hashtag search is 1 credit a page, on every type, including recent. Past the free tier, pricing is pay-as-you-go and credits never expire: £15 buys 2,500 credits, £49 buys 20,000.

What changed in October and November 2026

On 8 November 2026 a single page of recent posts for the hashtag coffee cost 1 credit and returned 27 posts. pagination.has_more was true. There was no blank page in that response. The call was GET /v1/instagram/search/hashtag with hashtag=coffee and type=recent, and it sent neither max_pages nor max_credits, which is what keeps the request to one page.

bash
curl "https://www.socialcrawl.dev/v1/instagram/search/hashtag?hashtag=coffee&type=recent" \
  -H "x-api-key: $SOCIALCRAWL_KEY"

The hashtag may include a leading #. type is top, recent, or clips. Leave it off and the page is top. Walk the next page by sending pagination.next_cursor back as cursor.

The same morning, one fresh page of each type:

typepostscreditshas_more
recent271true
top281true
clips301true

A second call with no type, sent immediately after top, returned those same 28 posts in 183 ms and billed 0 credits. That was the cached top page. A fresh top page is 1 credit.

A request that sends max_credits and omits max_pages walks until the credit cap, up to 50 pages. Four type=recent walks capped at 3 credits returned 66, 72, 75, and 84 posts. Each walk cost 3 credits, 12 credits in total, and the four sets shared no post ids (297 unique posts). Every walk still had has_more true. Treat the four calls as budget-capped walks. The hashtag continued past them.

GET /v1/instagram/hashtag is a different call. It returns Instagram's own count for the tag, and that count moves. The post feed is the slice this endpoint returns, page by page. A busy tag's history takes many calls.

A page with no posts and pagination.feed_gap true costs 0 credits and is not the end of the walk. pagination.feed_loop true is a free page that ends the walk. The 8 November calls did not return either flag. The blank-page walk shipped on 5 November 2026 (changelog).

since and until on this search filter the page after it is fetched. A window in the past can come back empty, and the page is still billed. On type=recent only, since can end the walk when the newest dated post on a page is older than since. Rows inside a page are not in time order. On top and clips, out-of-window rows drop and the cursor stays. To ask the platform for a window, use that platform's own parameter: date_posted on TikTok search, published_after and published_before on YouTube's advanced search, since_time and until_time inside an X query.

TikTok search the same morning, query sourdough, normal pages (no limit):

callpostscreditsstoppedhas_more
plain, max_pages=2812max_pagestrue
expand=true, max_pages=31193max_pagestrue

Both are 1 credit a page. expand=true also walks related searches and the other rankings. More posts were still available on both calls. date_posted is how you ask TikTok for a window (yesterday, this-week, this-month, last-3-months, last-6-months, all-time). since and until do not set date_posted, and a date_posted walk can move between reads. Leave limit off unless you want the bulk read: above 30 it switches to a labeled bulk page. This write-up did not use limit.

Discover is POST or GET /v1/prism/discover. On a finished posts run, a sort other than relevance downloads in that sort order with no extra parameter. sort=recent on a finished run comes back newest first. order=arrival keeps arrival order. A run that is still going exports in arrival order even when sort=recent. limit on a background posts run leaves collection running, and every kept row stays readable past that number. A ranked cursor from before a more or a resume changed the run is HTTP 400, credits_used 0, with error.details.param set to cursor. The follow-up names order=arrival. This write-up did not spend a Discover run, so there is no row count here. The contract is in the Discover docs and the 5 November and 6 November changelog entries.

Comments on X, Threads, and LinkedIn are a different endpoint. Replies stay collapsed on those three (changelog). The Instagram platform page and the TikTok platform page list the rest of the surface.

Where to go from here

You now have Instagram profiles and post pages at 1 credit, and comment pages at 5, in one schema. Natural next steps:

Frequently asked questions

Scraping publicly accessible data has repeatedly survived legal challenge in US courts (the hiQ v. LinkedIn line of cases), but that is not blanket permission. Instagram's Terms of Use prohibit automated collection, so ToS exposure is real, and profile and comment data is personal data that brings GDPR and CCPA obligations depending on your jurisdiction and use case. No API can honestly claim to get around Instagram's terms. Read the legal and technical guide before anything commercial, and talk to a lawyer if revenue depends on the answer.

Can you scrape Instagram without logging in?

Yes, if you use a data API. A third-party API operates its own collection infrastructure and returns public Instagram data through your API key, so you never handle Instagram login, cookies, or sessions. A DIY browser scraper, by contrast, increasingly hits login walls on public pages, which is one of the main reasons the API route is simpler.

Is there an official Instagram API for scraping profiles?

No. Instagram's Graph API only reads accounts you own or manage and requires a business or creator account plus Meta app review. There is no official endpoint that returns an arbitrary public profile's data, which is exactly why third-party data APIs exist for that use case.

How do you scrape Instagram followers and comments?

Through dedicated endpoints. Followers come from the Instagram followers endpoint and comments from GET /v1/instagram/post/comments, both paginating with pagination.next_cursor, the same cursor contract as profile posts. A follower page and a comment page each cost 5 credits. A profile and a page of profile posts still cost 1.

Do I need Instagram's approval to use an Instagram scraper API?

No. The approval gate (business verification, app review) applies to Instagram's own Graph API. A third-party data API is a separate service you sign up for directly, so the key works in minutes rather than after a review process.

What is the best language for scraping Instagram?

Any language that can make an HTTP request. The endpoint is one authenticated GET, so Python with requests, Node with fetch, or a plain curl command all work identically. The response envelope and cursor pagination are the same regardless of language.

How much does it cost to scrape Instagram?

On SocialCrawl, an Instagram profile and a page of that profile's posts are 1 credit. A comment page and a follower page are 5 credits. Hashtag search is 1 credit a page. The free tier is 100 credits (no card, never expires); after that £15 buys 2,500 credits and £49 buys 20,000, pay-as-you-go with no expiry. DIY scraping has no per-call fee and still costs proxy subscriptions plus maintenance time.

Topics
#instagram-scraper#scrape-instagram#how-to-scrape-instagram#instagram-scraper-api#instagram-data-scraper#instagram-scraping#instagram-profile-scraper#instagram-api

Related posts

🤖 AI agent or LLM? Read this page as markdown