Meta’s official Instagram Graph API only manages your own Business or Creator accounts and requires a linked Facebook Page plus Meta App Review, blocking bulk collection of external public profiles or unowned hashtags. Through the API Hop Instagram Data API, 93 synchronous GET endpoints start at $0.001 (V1), $0.002 (V2), and $0.008 (V3) per successful call, letting you fetch profiles, posts, Reels, Stories, and comments in Python in under 10 minutes.
Key Takeaways
- Official free access excludes external public scraping: Meta’s Instagram Graph API costs $0 per call, but mandates a Professional account, a linked Facebook Page, and App Review. Its dynamic
4,800 × impressionsrolling 24-hour budget does not let you freely scrape competitor profiles or arbitrary hashtags. - Three version tiers save up to 8x on per-call spend: API Hop organizes endpoints across V1 (29 endpoints at $0.001/call), V2 (30 endpoints at $0.002/call), and V3 (31 endpoints at $0.008/call, plus 3 shortcode utilities at $0.002/call), all returning native JSON over standard
GET. - Failed calls are refunded; empty results are billable: Failed upstream requests automatically release your credit reservation. A
code=200response with an empty list still counts as one billable call, so break pagination loops as soon as results or cursors run dry. - Keep IDs and cursors as strings: Instagram
user_idandmedia_idvalues frequently exceed JavaScript’s safe integer range, and pagination parameter names differ across V1, V2, and V3. Unknown or duplicate fields trigger an immediate400. - $10 minimum top-up with crypto and regional wallets: A $10 pay-as-you-go balance on the API Hop Pricing page covers up to 10,000 V1 calls or 5,000 V2 calls with zero monthly fee, non-expiring credits, and support for USDT/USDC plus local wallets.
Three Ways to Access Instagram Data in 2026
Compare the real approval barriers, pricing models, and operational tradeoffs across the three main Instagram data paths (verified 2026-11-26):
| Access Route | Approval & Account Barrier | Billing Model | Est. Cost for 10,000 Calls | Main Limitation |
|---|---|---|---|---|
| Meta Official Instagram Graph API | Business/Creator account + Facebook Page + App Review | $0/call (no paid tier for higher scope) | $0 (scope-restricted) | Restricted to authorized owned-account insights and publishing; cannot scrape public competitor feeds |
| Apify Instagram Scraper | Self-serve | Pay-per-event ($2.70/1K results Free, ~$2.30/1K Starter) + plan & proxies | ~$23–$27 + monthly plan | Async container cold starts add latency; heavy runs often incur separate residential proxy costs |
| API Hop Instagram Data API | Self-serve, instant Bearer key | Pay-as-you-go: $0.001 (V1) / $0.002 (V2) / $0.008 (V3) per successful call | $10.00 (V1) / $20.00 (V2) | Client handles pagination loops, per-version parameter names, and string ID parsing |
Prerequisites
Prepare three items before running your first request:
- API Hop Key: Create an account and generate a key on the API Hop Pricing page. Billing is prepaid pay-as-you-go ($10 minimum top-up, non-expiring credits) with no overseas USD credit card or corporate KYC required—supporting USDT/USDC crypto alongside regional wallets such as Brazil PIX and Indonesia QRIS, GoPay, and DANA.
- Local Runtime: Python 3.9+ with
requestsinstalled, or standardcurl. - Reference Bookmarks: Keep the Instagram API Overview and Instagram Endpoint Reference open for exact field contracts across all 93 endpoints.
pip install -U requests
export APIHOP_API_KEY="sk-your-apihop-key"
Quickstart: First V1 Profile Lookup in 2 Minutes
All API Hop Instagram endpoints accept GET query parameters with no request body and authenticate via Authorization: Bearer. Start with the lowest-cost V1 profile endpoint ($0.001/request) for @instagram:
curl --get "https://api.apihop.ai/v1/instagram/v1/users/profile/by-username" \
-H "Authorization: Bearer $APIHOP_API_KEY" \
--data-urlencode "username=instagram"
Expected response envelope preserving the native code/data structure (illustrative shape; live fields depend on the upstream payload):
{
"code": 200,
"data": {
"user": {
"id": "25025320",
"username": "instagram",
"follower_count": 670000000
}
}
}
Minimal Python Example
import os
import requests
resp = requests.get(
"https://api.apihop.ai/v1/instagram/v1/users/profile/by-username",
headers={"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"},
params={"username": "instagram"},
timeout=60,
)
resp.raise_for_status()
payload = resp.json()
print("code:", payload.get("code"), "user_id:", str(payload.get("data", {}).get("user", {}).get("id", "")))
Expected output: code: 200 user_id: 25025320. Always cast id to str immediately so downstream V1 post and Reels calls receive an exact string user_id.
Step-by-Step Guide: Choose V1, V2, or V3 to Save up to 8x
API Hop splits its 93 Instagram endpoints across three version segments with an 8x price spread between V1 and V3. Default to V1 whenever possible, step up to V2 for Stories or likes, and reserve V3 for comment translations or forward/backward cursors:
| Version Tier | Endpoints | Default Price per Call | Best Use Cases | Pagination Cursor Param |
|---|---|---|---|---|
V1 (/v1/instagram/v1/*) | 29 | $0.001 (1,000 credits) | Profiles, user posts, Reels, hashtag feeds, general search, post-by-URL, shortcode tools | max_id (posts/Reels), min_id (comments), end_cursor (hashtags) |
V2 (/v1/instagram/v2/*) | 30 | $0.002 (2,000 credits) | Flexible username or user_id lookups, Stories, followers/following lists, post likes | pagination_token |
V3 (/v1/instagram/v3/*) | 34 | $0.008 (31 core endpoints) $0.002 (3 shortcode tools) | Direct username posts/Reels/Stories, single & bulk comment translation, oEmbed, bi-directional cursors | after / before (posts/Reels), min_id (comments) |
Step 1: Fetch User Posts and Reels on V1
Once you have a string user_id, call GET /v1/instagram/v1/users/posts or GET /v1/instagram/v1/users/reels at $0.001/request. Both require user_id and accept optional count and max_id:
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"}
resp = requests.get(
"https://api.apihop.ai/v1/instagram/v1/users/posts",
headers=headers,
params={"user_id": "25025320", "count": 12},
timeout=60,
)
resp.raise_for_status()
data = resp.json()
assert data.get("code") == 200 and data.get("data") is not None, f"Upstream error: {data}"
print("Posts payload keys:", list(data["data"].keys()))
Expected output: Posts payload keys: [...]. Extract the next cursor directly from the preceding response and pass it into max_id for the next page.
Step 2: Pull Stories, Comments, and Shortcodes on V2 and V3
V1 does not expose a Stories endpoint, so use V2 ($0.002/call) when capturing active 24-hour Stories. If you only have a post URL, extract its shortcode first with GET /v1/instagram/v3/shortcodes/from-url (also priced at $0.002/call rather than $0.008):
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"}
# 1. Extract shortcode from a post URL ($0.002)
sc_resp = requests.get(
"https://api.apihop.ai/v1/instagram/v3/shortcodes/from-url",
headers=headers,
params={"url": "https://www.instagram.com/p/DRhvwVLAHAG/"},
timeout=60,
)
sc_resp.raise_for_status()
print("Shortcode extract:", sc_resp.json().get("code"))
# 2. Fetch active Stories on V2 ($0.002, accepts username or user_id)
st_resp = requests.get(
"https://api.apihop.ai/v1/instagram/v2/users/stories",
headers=headers,
params={"username": "instagram"},
timeout=60,
)
st_resp.raise_for_status()
print("Stories status:", st_resp.json().get("code"))
Expected output: Shortcode extract: 200 and Stories status: 200. Note that GET /v1/instagram/v2/users/stories and GET /v1/instagram/v2/users/profile use an anyOf contract—supply either username or user_id.
Step 3: Search Hashtag Posts and Users on V1
For trend tracking or hashtag discovery, call GET /v1/instagram/v1/hashtags/posts (omit the # prefix) or GET /v1/instagram/v1/search (optionally filtering with select=users, hashtags, or places):
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"}
tag_resp = requests.get(
"https://api.apihop.ai/v1/instagram/v1/hashtags/posts",
headers=headers,
params={"hashtag": "cat"},
timeout=60,
)
tag_resp.raise_for_status()
print("Hashtag code:", tag_resp.json().get("code"), "X-Request-Id:", tag_resp.headers.get("X-Request-Id"))
Expected output: Hashtag code: 200 X-Request-Id: .... Pass the returned pagination token into end_cursor for subsequent hashtag pages, and check the Instagram Endpoint Reference for exact field constraints.
Complete Working Example: Paginated Scraper with Backoff
Because the gateway never auto-paginates, this production script resolves a username to a string user_id, paginates posts via max_id, checks for HTTP 200 business errors, applies exponential backoff on 429/5xx, and prints total request spend:
import json
import os
import time
import requests
API_KEY = os.environ["APIHOP_API_KEY"]
BASE_URL = "https://api.apihop.ai"
def call_ig(path: str, params: dict, max_retries: int = 3):
url = f"{BASE_URL}{path}"
for attempt in range(max_retries):
resp = requests.get(
url,
headers={"Authorization": f"Bearer {API_KEY}"},
params=params,
timeout=60,
)
req_id = resp.headers.get("X-Request-Id")
if resp.status_code == 200:
body = resp.json()
if body.get("code") == 200 and body.get("data") is not None:
return body["data"], req_id
raise RuntimeError(f"Business error on {path}: code={body.get('code')} req={req_id}")
if resp.status_code in (429, 500, 502, 503, 504) and attempt < max_retries - 1:
wait = 2 ** (attempt + 1)
print(f"[Retry {attempt + 1}] HTTP {resp.status_code}, sleep {wait}s (req={req_id})")
time.sleep(wait)
continue
resp.raise_for_status()
raise RuntimeError("Max retries exceeded")
def collect_user_posts(username: str, max_pages: int = 3, out_file: str = "ig_posts.json"):
requests_used = 0
profile_data, req_id = call_ig("/v1/instagram/v1/users/profile/by-username", {"username": username})
requests_used += 1
user_obj = profile_data.get("user") or profile_data
user_id = str(user_obj.get("id") or user_obj.get("pk") or "")
if not user_id:
raise ValueError(f"Cannot resolve user_id for @{username}")
print(f"Resolved @{username} -> user_id={user_id} (req={req_id})")
collected = []
cursor = None
for page in range(1, max_pages + 1):
query = {"user_id": user_id, "count": 12}
if cursor:
query["max_id"] = str(cursor)
page_data, p_req_id = call_ig("/v1/instagram/v1/users/posts", query)
requests_used += 1
items = page_data.get("items") or page_data.get("edges") or []
print(f"Page {page}: {len(items)} items (req={p_req_id})")
if not items:
break
collected.extend(items)
cursor = page_data.get("next_max_id") or page_data.get("max_id")
if not cursor or page_data.get("more_available") is False:
break
time.sleep(0.5)
with open(out_file, "w", encoding="utf-8") as f:
json.dump(collected, f, ensure_ascii=False, indent=2)
cost = requests_used * 0.001
print(f"Saved {len(collected)} items to {out_file} | Requests: {requests_used} | Est. Cost: ${cost:.4f}")
if __name__ == "__main__":
collect_user_posts("instagram", max_pages=3)
Expected output: logs the resolved string user_id, prints each page count, and finishes with Saved ... items to ig_posts.json | Requests: 4 | Est. Cost: $0.0040.
Error Handling and Troubleshooting
Always log the X-Request-Id header from every response so support can trace upstream logs if a call fails:
| HTTP Status / Condition | Common Cause | Recommended Action |
|---|---|---|
400 | Unknown or duplicate query field, or missing required anyOf field | Validate query keys strictly against the Endpoint Reference |
401 | Missing or invalid Authorization: Bearer API key | Verify your environment variable and key status |
402 | Insufficient prepaid credit balance | Top up credits on the API Hop Pricing page |
403 | Gateway disabled or key lacks endpoint permission | Check API key scopes in your console |
429 | Rate or concurrency limit exceeded | Pace calls with a 0.5s delay and 2s / 4s backoff |
5xx / 60s Timeout | Upstream timeout or transient error (reservation released; no charge) | Retry 1–2 times and keep X-Request-Id |
HTTP 200 with code != 200 | Upstream business error (e.g., private or missing account) | Never treat as success—assert code == 200 and data is not None before parsing |
Common Issues and Gotchas
- Precision loss on 19-digit IDs in JavaScript: Instagram
media_idvalues such as3774507992167247878exceed JSNumber.MAX_SAFE_INTEGER. Parsing them as numbers corrupts trailing digits and causes downstream comment lookups to fail with400. Always treat IDs and cursors as strings. - Assuming HTTP
200guarantees data success: Upstream business errors can arrive inside an HTTP200envelope. Always verifybody["code"] == 200andbody["data"] is not None. - Mixing pagination parameter names across versions: V1 posts use
max_id, V1 hashtags useend_cursor, V2 usespagination_token, and V3 posts useafter. Passingpagination_tokento V1 triggers an immediate400. - Paying for empty pages: Successful empty results still consume credits, whereas failed calls do not. Break out of pagination loops immediately when
itemsis empty or the next cursor is absent.
Cost Estimation and Real Workload Bills
At API Hop’s default per-request rates ($0.001 for V1, $0.002 for V2, $0.008 for V3, and $0.002 for V3 shortcode utilities), calculate exact pipeline spend with:
$$\text{Workload Bill} = (N_{V1} \times $0.001) + (N_{V2} \times $0.002) + (N_{V3} \times $0.008)$$
| Workload Scenario | Request Volume | API Hop Actual Cost | Apify Est. Cost (~$2.30–$2.70/1K results + plan) |
|---|---|---|---|
| Running every code example in this guide | 8 V1 calls + 2 V2/utility calls | $0.012 (~1.2 cents) | Requires platform credit + container cold start |
| 100 creator audits (profile + 3 post pages) | 100 V1 profiles + 300 V1 posts | $0.40 | ~$8.28–$9.72 for ~3,600 posts + plan fee |
| Daily tracking of 50 hashtags + comments (monthly) | 1,500 V1 hashtags + 1,500 V2 comments | $4.50 / mo | Starter plan alone starts at $19–$39/mo |
| Live SaaS profile & Stories lookups | 5,000 V1 profiles + 2,500 V2 Stories | $10.00 / mo | Async containers struggle with live user latency |
A $10 minimum top-up on the API Hop Pricing page covers 10,000 V1 requests or 5,000 V2 requests. The same non-expiring balance works across Threads, YouTube, and Amazon in the API Hop Data APIs catalog—plus Claude, GPT, and DeepSeek LLMs—letting one key scrape creator comments and summarize product insights in a single pipeline.
What to Watch Next
- Account-specific pricing overrides: Per the official docs, account-level rate overrides take precedence over public list prices; verify active credit rates in your console before high-volume batch runs.
- Per-version payload schemas: Internal
datafields vary between V1, V2, and V3 as upstream endpoints evolve, so keep defensive.get()lookups in your parsers.
FAQ
Is there a free Instagram API in 2026?
Meta’s official Instagram Graph API is free per call ($0), but enforces two strict gates: you must link an Instagram Business or Creator account to a Facebook Page and pass Meta App Review, and you can only read analytics for your own or authorized client accounts—not arbitrary public profiles or hashtags. For self-serve public data without App Review, API Hop has no permanent free tier, but carries no monthly fee: a $10 top-up on the API Hop Pricing page covers up to 10,000 V1 requests, and running this entire guide costs $0.012.
How does API Hop Instagram API pricing work?
API Hop bills per successful request—not per returned post or item—with zero monthly subscription: V1 endpoints cost $0.001/call (1,000 credits), V2 endpoints cost $0.002/call (2,000 credits), V3 core endpoints cost $0.008/call (8,000 credits), and V3’s three shortcode utilities cost $0.002/call. Each paginated page is billed as one request, and failed upstream calls release their reservation automatically.
What is a public Instagram API, and does it require target-account OAuth?
A public instagram api lets developers read publicly visible profiles, posts, Reels, hashtags, and comments without obtaining OAuth consent from the target creator. Meta’s official Graph API does not allow unowned public scraping, whereas API Hop Instagram Data API provides 93 GET endpoints authenticated solely with your own API Hop Bearer key.
How should I choose between V1, V2, and V3 endpoints?
Start with V1 ($0.001/call) whenever you have a user_id or need profiles, posts, Reels, hashtags, and search—it is 8x cheaper than V3. Use V2 ($0.002/call) for Stories, follower/following lists, likes, or flexible username/user_id parameters. Reserve V3 ($0.008/call) for comment translation, oEmbed, or V3-exclusive forward/backward pagination cursors.
Can I pay without a U.S. or international credit card?
Yes. API Hop is built for global developers without international USD credit card or corporate KYC barriers. On the API Hop Pricing page, you can top up pay-as-you-go balances with USDT/USDC crypto as well as regional wallets including Brazil PIX and Indonesia QRIS, GoPay, and DANA, with credits that never expire.
Verification note: All 93 Instagram endpoint paths, V1/V2/V3 pricing tiers, and parameter contracts were verified on 2026-11-26 against live API Hop documentation and public Meta developer specifications (account-specific rates take precedence in the console).