API Hop

गाइड

Threads API क्या है? 12 Endpoints और Pricing

2026 में Threads API क्या है? Meta Graph API limits की तुलना API Hop के 12 read-only endpoints ($0.002/request), pagination bounds और pricing से करें.

समीक्षित:

Meta का official Threads API (graph.threads.net) प्रति call free है, लेकिन इसमें Meta Developer App, App Review और OAuth tokens की ज़रूरत होती है, और यह मुख्य रूप से authorized accounts पर publishing व insights के लिए impression-based rate limits के तहत काम करता है। जो developers बिना App Review के public profiles, posts, comments और keyword search results का self-serve access चाहते हैं, उनके लिए API Hop Threads Data API बिना किसी monthly fee के $0.002/request (2,000 credits) के flat rate पर 12 read-only GET endpoints देता है—जिससे $10 के top-up में 5,000 queries चल जाती हैं।

मुख्य बातें

  • दो अलग कामों के लिए दो अलग रास्ते: Meta का official Threads API (v1.0) authorized publishing (250 posts/24h तक), replies (1,000/24h) और owned analytics के लिए free है, लेकिन इसमें OAuth token rotation (60-day long-lived tokens) और App Review ज़रूरी है।
  • $0.002/call पर 12 self-serve read endpoints: API Hop /v1/threads/web/* के अंतर्गत profiles, posts, reposts, replies, comments और चार search endpoints को $0.002 (2,000 credits) प्रति successful call के uniform rate पर उपलब्ध कराता है।
  • ज़रुरी pagination boundary: छह list और search endpoints (users/posts, users/reposts, users/replies, posts/comments, search/top और search/recent) paginate नहीं करते। end_cursor बिना किसी असर के reserved है, और केवल current batch (~25 items) मिलता है।
  • Failed calls पर credit release होता है; empty arrays billable हैं: Requests 60 seconds में बिना automatic retry के timeout हो जाती हैं और upstream failure पर reserved credits वापस मिल जाते हैं, जबकि valid code=200 empty results को एक billable call गिना जाता है।
  • कम barrier वाली pay-as-you-go billing: किसी international credit card या corporate KYC की ज़रूरत नहीं है। API Hop Pricing page पर $10 का top-up USDT/USDC crypto या regional wallets से 5,000 calls देता है, और credits कभी expire नहीं होते।

Threads API क्या है?

Threads API का अर्थ Meta के text-first सोशल नेटवर्क Threads पर डेटा पढ़ने या पब्लिश करने वाले programmatic interfaces से है, जो आज Meta के official platform API और third-party read-only REST gateways के बीच बँटा हुआ है। graph.threads.net (v1.0) पर मौजूद Meta का official API OAuth और two-step media container workflow का उपयोग करता है ताकि authorized apps threads publish कर सकें, replies संभाल सकें और owned-account metrics निकाल सकें। वहीं API Hop Threads Data API जैसे read-only data gateways brand monitoring, creator research और AI agent retrieval के काम आते हैं—जो बिना OAuth setup के सरल GET calls के ज़रिए public profiles, recent posts, comments और search results लौटाते हैं।

Threads API एक नज़र में

नीचे दी गई तालिका 2026-11-26 तक verified Meta official Threads API और API Hop Threads Data API के प्रमुख specifications की तुलना करती है:

SpecificationMeta Official Threads API (v1.0)API Hop Threads Data API
Base Host / Pathhttps://graph.threads.nethttps://api.apihop.ai/v1/threads/web/*
Auth और OnboardingOAuth 2.0 (1h short token → 60-day refreshable token) + App ReviewAuthorization: Bearer key, तुरंत self-serve, कोई App Review नहीं
Read / Write SupportRead + Write (container publishing, replies, deletions, insights)Read-only GET (12 endpoints; posting या reply writes नहीं)
Pricing Model$0/call (higher quota के लिए कोई paid tier नहीं)$0.002 / successful request (2,000 credits), जीरो monthly fee
Rate और Quota LimitsRolling 24h 4,800 × impressions (min floor 48,000 calls/day), 250 posts/day, 1,000 replies/day, ~2,200 keyword searches/userAccount concurrency limits; 60-day OAuth refresh का झंझट नहीं; 60s timeout बिना auto-retry के
Pagination और DepthGranted scope और search caps के भीतर official cursor paginationSingle ~25-item batch; 6 list/search endpoints paginate नहीं करते
ID Format64-bit numeric / string IDsStrings के रूप में रखना ज़रूरी (JS safe integer range से बड़ा)

Threads API से आप क्या कर सकते हैं: चार Practical Workflows

  1. Brand sentiment और real-time keyword monitoring Product mentions, competitor launches या trending topics के लिए GET /v1/threads/web/search/recent, search/top और search/posts को schedule पर poll करें और results को LLM classifier में भेजें। सीमा: हर call कई साल पुराने archive को paginate करने के बजाय केवल वर्तमान उपलब्ध batch लौटाता है।
  2. Creator profile enrichment और recent post snapshots users/profile से handle को numeric user_id में resolve करें, फिर posting cadence और topic focus मापने के लिए recent posts, reposts और replies (~25 items) निकालें। सीमा: यह पूरा historical export करने के बजाय recurring incremental snapshots के लिए ज़्यादा उपयुक्त है।
  3. Viral thread breakdown और comment analysis किसी भी Threads post का URL या shortcode (जैसे DPVUglOjOUu) GET /v1/threads/web/posts/detail को भेजें, फिर audience feedback clustering के लिए posts/comments से replies fetch करें। सीमा: posts/comments को numeric post_id (detail से प्राप्त) चाहिए और यह एक ही batch लौटाता है।
  4. Owned accounts के लिए scheduled publishing और support automation अगर आपका product connected brand accounts की ओर से posts schedule करता है, carousels publish करता है या auto-reply करता है, तो Meta का official graph.threads.net API इस्तेमाल करें। सीमा: Official access में App Review और लगातार OAuth token management लगता है, और आप unowned competitor reposts आज़ादी से scrape नहीं कर सकते।

Threads API कैसे काम करता है: Container Publishing बनाम Stateless REST

दोनों APIs का architectural अंतर समझने का सबसे आसान तरीका यह देखना है कि वे state कैसे संभालते हैं।

Meta का official Threads API दो चरणों वाले publishing desk की तरह काम करता है: पहले आप POST /{user-id}/threads के ज़रिए draft payload अपलोड करके media container ID लेते हैं (unpublished containers 24 घंटे में expire हो जाते हैं), और फिर उसे live करने के लिए POST /{user-id}/threads_publish भेजते हैं—साथ ही 60-day OAuth tokens refresh करने के लिए cron job चलाते हैं।

इसके विपरीत, API Hop का Threads Data API public web data पर एक stateless GET query gateway की तरह काम करता है। इसमें कोई OAuth redirect URIs, container lifecycles या token renewals नहीं होते: बस documented query parameters के साथ Bearer header भेजें, और gateway string-safe numeric IDs के साथ code/data JSON envelope लौटा देता है।

Threads API और सभी 12 Endpoints को Access कैसे करें

API Hop पर सभी 12 live Threads endpoints नीचे दिए गए हैं (2026-11-26 को verified; एक समान rate $0.002/request):

GroupMethod और Endpoint PathRequired ParamsPaginationमुख्य उपयोग
User InfoGET /v1/threads/web/users/profileusernameSingle itemHandle से profile और numeric user_id निकालना
User InfoGET /v1/threads/web/users/profile/by-iduser_id (^[0-9]+$)Single itemNumeric ID से profile fetch करना
User FeedsGET /v1/threads/web/users/postsuser_id (^[0-9]+$)None (~25 items)यूज़र की recent posts का batch fetch करना
User FeedsGET /v1/threads/web/users/repostsuser_id (^[0-9]+$)Noneयूज़र के recent reposts का batch fetch करना
User FeedsGET /v1/threads/web/users/repliesuser_id (^[0-9]+$)Noneयूज़र के recent replies का batch fetch करना
Post DetailGET /v1/threads/web/posts/by-idpost_id (^[0-9]+$)Single itemNumeric ID से post fetch करना
Post DetailGET /v1/threads/web/posts/detailpost_id या url (anyOf)Single itemShortcode (DPVUglOjOUu) या full URL से post fetch करना
CommentsGET /v1/threads/web/posts/commentspost_id (^[0-9]+$)NonePost के comments का उपलब्ध batch fetch करना
SearchGET /v1/threads/web/search/topqueryNoneTop-ranked discussions search करना
SearchGET /v1/threads/web/search/recentqueryNoneसबसे recent discussions search करना
SearchGET /v1/threads/web/search/postsquerySingle batchMatching posts search करना
SearchGET /v1/threads/web/search/profilesquerySingle batchMatching creator profiles search करना

Post Details और Search के लिए त्वरित Python उदाहरण

API Hop Pricing page पर API key generate करें, APIHOP_API_KEY export करें और पूरे contract rules के लिए Threads API Overview व Threads Endpoint Reference देखें:

import os
import requests

HEADERS = {"Authorization": f"Bearer {os.environ['APIHOP_API_KEY']}"}

# 1. Fetch post detail by shortcode ($0.002)
detail_resp = requests.get(
    "https://api.apihop.ai/v1/threads/web/posts/detail",
    headers=HEADERS,
    params={"post_id": "DPVUglOjOUu"},
    timeout=60,
)
detail_resp.raise_for_status()
detail = detail_resp.json()
assert detail.get("code") == 200 and detail.get("data") is not None
print("Post detail code:", detail["code"])

# 2. Search recent Threads discussions ($0.002)
search_resp = requests.get(
    "https://api.apihop.ai/v1/threads/web/search/recent",
    headers=HEADERS,
    params={"query": "bitcoin"},
    timeout=60,
)
search_resp.raise_for_status()
search_data = search_resp.json()
assert search_data.get("code") == 200 and search_data.get("data") is not None
print("Search request_id:", search_resp.headers.get("X-Request-Id"))

Pricing, Free Tier की हकीकत और Workload Cost Breakdown

  1. Free tier की हकीकत: Meta का official Threads API प्रति call $0 चार्ज करता है, बशर्ते आप Meta App Review पूरा करें, business/app setup करें और impression-scaled quotas (48,000 calls/day floor; प्रति user ~2,200 keyword searches) का पालन करें। बिना corporate verification वाली teams या public monitoring के लिए review समय और OAuth maintenance ही मुख्य लागत हैं।
  2. API Hop pay-as-you-go फ़ॉर्मूला: API Hop कोई monthly fee नहीं लेता और सभी 12 endpoints को $0.002 प्रति successful request पर बिल करता है: $$\text{Total Cost} = \text{Successful Requests} \times $0.002$$
    • 50 brand keywords की रोज़ाना tracking (30 दिन): $50 \times 30 \times $0.002 = \mathbf{$3.00/\text{माह}}$ (1,500 calls)।
    • 100 creator snapshots (profile + recent posts + 1 thread comment check): $300 \times $0.002 = \mathbf{$0.60}$।
    • न्यूनतम entry top-up: API Hop Pricing page पर $10 का prepaid balance 5,000 Threads API calls देता है और कभी expire नहीं होता।
  3. USD credit cards के बिना Global payment access: भारत, इंडोनेशिया, पाकिस्तान, ब्राज़ील, लैटिन अमेरिका, रूस और तुर्की के developers के लिए बने API Hop में किसी international credit card या corporate KYC की ज़रूरत नहीं—यह USDT/USDC crypto के साथ Brazil PIX और Indonesia QRIS, GoPay, DANA सपोर्ट करता है।

Threads API तुलना: Meta Official बनाम Apify बनाम API Hop

तुलना का आधारMeta Official Threads APICloud Scraper Platforms (जैसे Apify)API Hop Threads Data API
Onboarding BarrierMeta Developer App + App Review + OAuthAccount signup + Actor व proxy setupSelf-serve, instant Bearer key
CapabilitiesRead + Write (publish, reply, delete)Read-only scrapingRead-only (12 GET endpoints)
Pricing$0/call (कोई paid tier नहीं)Monthly plan ($19–$199/माह) + event/compute feesPay-as-you-go $0.002/call, कोई monthly fee नहीं, $10 min
LatencySynchronous RESTAsync container cold starts (कुछ सेकंड से दर्जनों सेकंड)Synchronous REST (60s timeout guard)
Pagination DepthOfficial cursor pagination (search caps के भीतर)Actor implementation पर निर्भरSingle ~25-item batch; कोई pagination नहीं
किसके लिए सबसे सहीPosts schedule करना और owned brand accounts संभालनालंबे समय तक चलने वाले custom async scraping jobsLive synchronous keyword monitoring, AI agents और creator snapshots

ज्ञात सीमाएं और क्या Unsupported है

Production में भेजने से पहले इन चार verified सीमाओं को अपने integration में शामिल करें:

  1. API Hop पर कोई write या publishing endpoints नहीं: सभी 12 endpoints सख्ती से GET read-only हैं। Automated posting, reposting, liking या replying के लिए Meta का official container flow ज़रूरी है।
  2. छह list और search endpoints pagination support नहीं करते: users/posts, users/reposts, users/replies, posts/comments, search/top और search/recent पर end_cursor एक reserved no-op field है, और आगे के पेज लाने के लिए next_cursor या has_more पर निर्भर नहीं रहना चाहिए—हर call केवल उपलब्ध ~25-item batch लौटाता है।
  3. HTTP 200 business errors और empty-result billing: Docs के अनुसार success के लिए code == 200 और non-null data ज़रूरी है; upstream error code वाला HTTP 200 payload failure है। Valid empty arrays/objects पर $0.002 लगते हैं, जबकि failed upstream calls पर credit reservation release हो जाती है।
  4. IDs पर JavaScript integer overflow: Numeric user_id (63625256886) और post_id (3349029093483693129) values JS Number.MAX_SAFE_INTEGER से बड़ी हैं और इन्हें शुरू से अंत तक strings ही रखना चाहिए।

आगे क्या देखें

  • Pagination cursor updates: भविष्य में end_cursor multi-page traversal चालू करने वाले किसी भी upstream बदलाव के लिए Threads API Overview देखें।
  • Threads retrieval को LLM summarization से जोड़ना: यही API Hop balance API Hop Data APIs catalog में Instagram, YouTube और X के साथ Claude, GPT और DeepSeek models पर भी काम करता है, जिससे हर 25-post Threads batch को आसानी से summarize किया जा सकता है।

अक्सर पूछे जाने वाले प्रश्न

क्या Threads API free है?

Meta का official Threads API प्रति call free ($0) है, बशर्ते आप Meta Developer App register करें, App Review पास करें, OAuth tokens संभालें और dynamic impression-based quotas (4,800 × impressions calls/day, न्यूनतम 48,000) में रहें। बिना review के public data lookups के लिए API Hop Threads Data API में कोई permanent free tier या monthly subscription नहीं है—API Hop Pricing page पर $10 के top-up से 5,000 requests चल जाती हैं।

API Hop Threads API की लागत कितनी है?

API Hop के सभी 12 endpoints की एक समान कीमत $0.002 प्रति successful request (2,000 credits) है, जो returned items के बजाय प्रति request बिल होती है। पूरे महीने रोज़ाना 50 keywords monitor करने (1,500 requests) की लागत $3.00 आती है। Failed upstream requests और 60-second timeouts पर credit reservation अपने आप release हो जाती है।

क्या Meta Threads API और Instagram Threads API एक ही चीज़ हैं?

हाँ। क्योंकि Threads accounts Instagram से जुड़े होते हैं, developers अक्सर उसी platform interface को खोजने के लिए meta threads api या instagram threads api search करते हैं। तकनीकी रूप से Meta official Threads API को अलग से graph.threads.net पर host करता है, और API Hop भी Threads Data API (12 endpoints) को Instagram Data API (93 endpoints) से अलग रखता है।

end_cursor देने के बाद भी केवल ~25 items क्यों आते हैं? क्या pagination supported है?

नहीं। Threads Endpoint Reference के अनुसार users/posts, users/reposts, users/replies, posts/comments, search/top और search/recent पर end_cursor reserved है और इसका कोई असर नहीं होता, और अतिरिक्त पेज लाने के लिए next_cursor या has_more पर निर्भर नहीं रहना चाहिए। हर call लगभग 25 items का एक batch लौटाता है, जो scheduled incremental polling के लिए उपयुक्त है।

क्या मैं API Hop Threads API से posts publish या comments पर reply कर सकता हूँ?

फ़िलहाल नहीं। API Hop के 12 /v1/threads/web/* endpoints केवल profiles, post details, comments और search के लिए बने read-only GET endpoints हैं। अगर आपको threads publish करने हैं (250/day तक) या replies भेजने हैं (1,000/day तक), तो Meta के official graph.threads.net two-step container endpoints को integrate करें।

क्या मैं बिना U.S. या international credit card के API Hop इस्तेमाल कर सकता हूँ?

हाँ। API Hop बिना international credit cards या corporate KYC के global self-serve top-ups सपोर्ट करता है। API Hop Pricing page पर आप USDT/USDC crypto के साथ-साथ Brazil PIX और Indonesia QRIS, GoPay, DANA जैसे regional wallets से non-expiring pay-as-you-go credits खरीद सकते हैं।

सत्यापन नोट: सभी 12 Threads endpoint paths, $0.002/request दर, pagination limits और Meta official rate caps की जाँच 2026-11-26 को live API Hop documentation और Meta developer docs के आधार पर की गई है (console में account-specific rates लागू होते हैं)।