Docs
Introduction

Introduction

TwittrAPI is a REST API for public Twitter/X data. Send your key in a header, get X's JSON back, pay per call from a prepaid balance.

TwittrAPI is a REST API for public X (Twitter) data: profiles, tweets, followers, search, lists, communities, jobs and trends. You do not need an X developer account. TwittrAPI is not affiliated with X Corp.

How it works

  • Base URL: https://api.twittrapi.com
  • Auth: your API key in the X-API-KEY header. See Authentication.
  • Requests: plain HTTPS. Read endpoints are GET with path and query parameters.
  • Responses: the JSON that X's own web app receives, passed through unchanged, with a few documented exceptions. See Response format.
  • Billing: one call is one billed request, from a prepaid balance. Calls that fail with 400, 407, 408, 409 or a 5xx error are refunded. See Pricing and billing.
  • Limits: a per-key limit in requests per second. See Rate limits.
curl 'https://api.twittrapi.com/user/by/username/jack' \
  --header 'X-API-KEY: YOUR_API_KEY'

Where to go next

What you can and cannot get

The read endpoints return public data only: what a logged-out visitor or any logged-in user could see. Protected accounts and other private content are not available through them.

Write endpoints act on your own X account: post (with media, a poll or a schedule), reply, like, retweet, follow, bookmarks, mute, block, lists, communities, drafts, profile, media upload and direct messages. They need your X session cookie and your own proxy, and cost the same per call as reads. See Account actions.