Skip to content
OSINTtools.io

X API

Verified today

X's official API: look up users and posts, search public posts back to 2006 and stream matches, paid per resource returned.

API · Paid · Social media intelligence · developer.x.com

Takes
Username · Name · URL
Pricing
Paid
Footprint
Passive · no contact with target
Account
Needed for full results
API
Yes
Last verified
Nov 29, 2026
Summary

X's official API: look up users and posts, search public posts back to 2006 and stream matches, paid per resource returned. It takes username, name and URL. Read the cons before you build a workflow on it.

What it does

The X API is the official programmatic interface to X, formerly Twitter. Its v2 REST endpoints return posts, user profiles, timelines, followers, lists, Spaces and trends by location. Recent search covers the last 7 days, full-archive search goes back to 2006, and the filtered stream delivers posts that match up to 1,000 rules in near real time.

Investigators use it to pull an account's profile and timeline, search posts with operators such as from:, to:, url: and lang:, and follow a topic as it develops. You sign in to the Developer Console with an X account, accept the developer agreement, create an app and use its Bearer Token for app-only reads of public data. The current docs describe no free tier: pricing is pay-per-usage, with credits bought upfront and charged per post or user returned, deduplicated within a 24-hour UTC day. Pay-per-usage accounts are capped at 3 million post reads per monthly billing cycle; more needs an Enterprise plan.

Footprint is passive: it reads its own index or third-party records and does not contact the target. An account is needed for full results. There is an API.

Pros
  • +The official source, with the whole public archive searchable
  • +Search operators for users, keywords, links, language and media
  • +No subscription or minimum spend
  • +Per-endpoint rate limits are published
Cons
  • −No free tier: every post or user read is charged from prepaid credits
  • −Pay-per-usage is capped at 3 million post reads a month; more needs Enterprise
  • −Needs an X account and a developer app

When to use it

  1. 01Use it when you need an account's posts or profile as structured data straight from X.
  2. 02Use it when you want to search the full public archive for a keyword, link or account.
  3. 03Use it when you need to follow a topic in near real time with filter rules.
Key featuresUser lookup by username or IDPost lookup and user timelinesRecent search (7 days) and full-archive search (back to 2006)Filtered stream with up to 1,000 rulesPost counts for a queryTrends by location and Spaces lookupOfficial Python, TypeScript, Java and C# SDKs

Next steps from this result

Suggested from the inputs X API takes
  • Found a resultConfirm it with a second, independent source before you record it
  • Found a new identifierPivot on it only if your scope covers the new target
    Depends
  1. 01Open X API and sign in.
  2. 02Paste the username and run the lookup.
  3. 03Record the result with the date and the exact query; results change over time.

X API API

  • Bearer token
  • 2 endpoints documented

Every endpoint with its parameters, example responses, requests in cURL, Python, JavaScript and Go, and Try it with your own key.

Read the API reference

Technical details

Listing verified by an editor on Nov 29, 2026
API
Yes, see the vendor docs for auth and limits
Account
Needed for full results
Footprint
Passive · no contact with target
Pricing
Paid · Pay-per-usage: prepaid credits charged per post or user returned; no free tier described; Enterprise plans for higher volume
Platforms
API
Listed
Nov 29

Reviews

No reviews yet

Written by signed-in members. Each review appears here after an editor has read it.

Used X API? Sign in to say what you used it for and how it went.

Sign in to review

Alternatives to X API

Listed tools that take the same inputs, closest match first.

X APIPaid · API · verified today
Visit developer.x.com (opens in new tab)