← All posts

Threads API Guide: Everything Developers Need to Know (2026)

Meta's Threads API gives developers free, full access to publishing, analytics, and reply management on the fastest-growing text platform. With 450M+ monthly users and zero API fees, it's the best opportunity in social since Twitter's early days. Here's everything you need to start building.

1. Threads API Overview

The Threads API launched in June 2024 and has expanded steadily since. It's built on the same infrastructure as Meta's Instagram Graph API but tailored specifically for text-first content.

Here's what you get access to:

API Cost
$0
Post Limit / Day
500
API Calls / Hour
250

The API is RESTful, returns JSON, and uses versioned endpoints under graph.threads.net. If you've worked with the Instagram API or Facebook Graph API, the patterns will feel familiar. If not, it's one of the more straightforward social APIs to integrate.

2. Authentication (OAuth 2.0)

The Threads API uses OAuth 2.0 Authorization Code flow. There's no API key-only option — every request requires a user access token obtained through the consent flow.

The authentication flow:

  1. Create a Meta App — register at developers.facebook.com and add the Threads use case to your app
  2. Redirect the user — send them to Meta's authorization URL with your app ID, redirect URI, and requested scopes
  3. User grants permission — they see a consent screen listing the permissions your app requests
  4. Receive the authorization code — Meta redirects back to your app with a short-lived code
  5. Exchange for a short-lived token — POST the code to the token endpoint to get an access token (valid for 1 hour)
  6. Exchange for a long-lived token — swap the short-lived token for one that lasts 60 days
  7. Refresh before expiry — long-lived tokens can be refreshed to maintain uninterrupted access

One critical detail: long-lived tokens expire after 60 days and cannot be refreshed after expiry. Your app needs to refresh tokens proactively. Most developers set a cron job to refresh at the 50-day mark.

Token Lifespans
Short-lived: 1 hour · Long-lived: 60 days · Refreshable: yes (before expiry)

Unlike the X API, which offers multiple auth methods (OAuth 1.0a, OAuth 2.0, Bearer tokens), Threads keeps it simple with a single OAuth 2.0 flow. This reduces complexity but means every integration requires a server-side component to handle the token exchange securely.

3. Key API Endpoints

All endpoints use the base URL https://graph.threads.net/v1.0. Here are the endpoints you'll use most:

EndpointMethodDescription
/meGETFetch authenticated user profile (id, username, bio, followers count)
/me/threadsGETList all media objects (posts) for the authenticated user
/me/threads_publishing_limitGETCheck remaining publishing quota for the current 24-hour window
/{thread-id}GETRetrieve a single post with its metadata and text
/{thread-id}/insightsGETGet engagement metrics: views, likes, replies, reposts, quotes
/{thread-id}/repliesGETList all replies to a specific post
/{thread-id}/conversationGETGet the full conversation tree for a post
/me/threadsPOSTCreate a media container (step 1 of publishing)
/me/threads_publishPOSTPublish the media container (step 2 of publishing)

The two-step publishing flow

Publishing on Threads is a two-step process. First, you create a media container that holds your content. Then you publish it. This design allows Meta to validate media (especially images and videos) before the post goes live.

  1. Create container — POST to /me/threads with media_type, text, and optional image_url or video_url. Returns a container ID.
  2. Publish — POST to /me/threads_publish with the creation_id. The post goes live immediately.

For carousel posts, the flow adds an extra step: create individual item containers first, then create a carousel container referencing them, then publish the carousel.

Supported media types: TEXT, IMAGE (JPEG, PNG), VIDEO (MP4, MOV, up to 5 minutes), and CAROUSEL (up to 10 items). All media must be hosted at a publicly accessible URL — the API doesn't accept direct file uploads.

Skip the API complexity

Replia handles authentication, publishing, and analytics for you. AI-powered content creation built on the Threads API — so you can focus on growing, not coding.

Try Replia Free →

4. Rate Limits

Rate limits on the Threads API are per-user and per-app. They're returned in response headers so you can track usage in real time.

Limit TypeThresholdWindow
API calls per user250 requestsPer hour
API calls per app1,000 requestsPer hour
Publishing per user500 postsPer 24 hours
Reply reads per user250 requestsPer hour
Insights per user250 requestsPer hour

The rate limit headers you'll see in every response:

When you hit a rate limit, the API returns a 429 Too Many Requests status. Best practice: implement exponential backoff and check the publishing limit endpoint before batch-publishing.

Pro Tip
Call /me/threads_publishing_limit before every batch to avoid wasting API calls on rejected publishes

5. Permissions & Scopes

The Threads API uses granular scopes to control what your app can do. Users must explicitly approve each scope during the OAuth consent flow.

ScopeAccess LevelWhat It Grants
threads_basicReadRead user profile, list posts
threads_content_publishWriteCreate and publish posts (text, image, video, carousel)
threads_manage_insightsReadAccess engagement metrics and analytics
threads_manage_repliesRead/WriteRead, hide, and respond to replies
threads_read_repliesReadRead replies and conversations (without write access)

Request only the scopes you need. Requesting excessive permissions lowers your approval rate during the consent flow. If your app only reads analytics, don't ask for publishing permissions.

To move your app from development mode (limited to 25 test users) to production, you need to complete Meta's App Review. This involves submitting a screencast demo showing how your app uses each requested permission. Approval typically takes 3-5 business days.

6. Building a Threads App

Here's the step-by-step process to go from zero to a working Threads integration:

Step 1: Set up your Meta Developer account

Go to developers.facebook.com, create a new app, and select "Other" as the app type. Then add the "Threads" use case from the product list. This gives you an App ID and App Secret.

Step 2: Configure OAuth

Add your redirect URI in the Threads settings panel. For local development, use https://localhost:3000/callback (HTTPS is required, even locally). Add test users to your app — they'll be the only ones who can authenticate until you pass App Review.

Step 3: Implement the auth flow

Build the OAuth redirect, token exchange, and token refresh logic. Store long-lived tokens securely (encrypted in your database, never in local storage or client-side code). Set up a background job to refresh tokens before the 60-day expiry.

Step 4: Start with read endpoints

Before building publishing features, start with read-only calls. Fetch the user profile, list their posts, and pull insights. This validates your auth flow and helps you understand the data model without any risk of creating unintended posts.

Step 5: Implement publishing

Build the two-step create-then-publish flow. Start with text-only posts, then add image support, then video, then carousel. Each media type adds complexity around URL validation and processing time.

Step 6: Submit for App Review

Record a screencast showing your app's user experience for each requested permission. Be specific — Meta reviewers want to see exactly how the data is used and displayed. Include error handling and edge cases in your demo.

The entire process from account creation to production approval typically takes 1-2 weeks for a straightforward integration.

7. Threads API vs. X (Twitter) API

The comparison between the Threads API and the X API comes down to one thing: accessibility. Meta made fundamentally different choices about developer access.

FeatureThreads APIX (Twitter) API
CostFree$100/mo (Basic) / $5,000/mo (Pro)
Post limit500/day per user1,500/month (Free) / 3,000/month (Basic)
Read accessFree, includedPaid tiers only (read was free until 2023)
AnalyticsFree, per-post insights$5,000/mo Pro tier
Auth methodOAuth 2.0 onlyOAuth 1.0a + OAuth 2.0 + Bearer
Media typesText, image, video, carouselText, image, video, polls, spaces
Search APINot yet availableAvailable (paid tiers)
StreamingNot yet availableAvailable ($5,000/mo Pro)
App reviewRequired (Meta review)Not required

The pricing gap is staggering. A Threads AI tool developer gets full publishing and analytics access for free. The same features on X cost $60,000/year. For indie developers and startups, Threads is the only realistic option for building a social product without a significant API budget.

Where X still wins: search and streaming. The Threads API doesn't yet offer a search endpoint or real-time streaming. If you need to monitor keywords or track conversations at scale, you'll need to use the reply and conversation endpoints as a workaround — or wait for Meta to ship search (widely expected in 2026).

8. Use Cases

Here's what developers are actually building with the Threads API in 2026:

Scheduling and automation tools

The most common use case. Tools like scheduling apps use the publishing endpoints to let creators queue posts ahead of time. The two-step publishing flow makes it easy to prepare content and publish on a schedule. Automation platforms combine scheduling with AI-generated content to run entire content calendars hands-free.

Analytics dashboards

The insights endpoints provide per-post metrics (views, likes, replies, reposts, quotes) and account-level data (follower count over time). Third-party dashboards aggregate this into trend charts, best-posting-time analysis, and content performance comparisons that go beyond what Threads shows natively.

AI content creation

Apps like Replia combine LLMs with the Threads API to generate posts in a creator's voice, score content for virality potential, and suggest optimal posting times. The API's publishing endpoints become the delivery mechanism for AI-written content — the creator reviews and approves, the API handles the rest.

Reply management

The reply and conversation endpoints let developers build tools that surface important replies, auto-hide spam, and draft responses. Given that replies are the primary growth lever on Threads, reply management is one of the highest-value integrations.

Cross-posting and syndication

Content management systems use the Threads API alongside other platform APIs to publish across multiple networks from a single interface. The key is adapting content per platform — Threads favors conversation starters and questions, while LinkedIn rewards professional insights.

Build on Threads without building the infrastructure

Replia gives creators the power of the Threads API — publishing, analytics, AI replies — in a simple app. No code required.

Join the Waitlist →

9. Frequently Asked Questions

Is the Threads API free to use?
Yes. The Threads API is completely free for all developers. There are no paid tiers, no per-request fees, and no premium endpoints. This is a major advantage over the X (Twitter) API, which charges $100/month for basic access and $5,000/month for pro-level features.
What can you build with the Threads API?
You can build scheduling tools, analytics dashboards, content management systems, AI-powered writing assistants, reply management tools, and social listening platforms. The API supports publishing text, images, videos, and carousels, retrieving post insights, managing replies, and reading user profile information.
How do you authenticate with the Threads API?
The Threads API uses OAuth 2.0 with the Authorization Code flow. You redirect users to Meta's authorization URL, they grant permissions, and you exchange the returned code for a short-lived token (1 hour). Then exchange it for a long-lived token (60 days) and refresh it before expiry to maintain access.
What are the Threads API rate limits?
The Threads API allows 250 API calls per user per hour and 1,000 calls per app per hour. Publishing is limited to 500 posts per 24 hours per user. Rate limit headers are included in every response so you can track usage in real time.
Does the Threads API support posting images and videos?
Yes. The API supports text posts, single image posts (JPEG, PNG), single video posts (MP4, MOV, up to 5 minutes), and carousel posts with up to 10 items. Media must be hosted at a publicly accessible URL. Publishing uses a two-step create-then-publish flow.

Ready to build on Threads?

Replia handles the Threads API so you can focus on growth. AI-powered content, analytics, and replies in one app.

Join the Waitlist
Keep Reading
7 Best AI Tools for Threads in 2026 (Tested & Ranked) Threads Automation Guide: Save Time and Grow Faster How to Schedule Threads Posts: The Complete Guide