Skip to content

Twitter exporter

A Twitter exporter saves X data to a file. Choose what to export: an account's tweets, its followers or following, the replies to a post, who reposted it, or search results. Each one has a free browser tool, and the API handles the same exports for larger jobs.

Export an account's tweets now, no signupThen export followers and replies the same way.
Twitter exporter: a packer filling labelled crates with small blue paper birds on a quay.

The job

X lets you export your own full archive from your account settings. This page covers exporting public data from any account for research, outreach or reporting.

Pick the export that fits your data. Tweets and replies work for analysis, follower and following lists for audience work, and search results for topic research. To save results as a dataset, read how to build a Twitter dataset. For follower lists, see export followers from Twitter.

How it works

  1. Choose the data

    Tweets, followers, following, replies, reposts or search results.

  2. Run the free tool

    Type a handle or a post link and download the result.

  3. Use the API for big jobs

    Loop the endpoint with the cursor and write rows to CSV.

Endpoints that do it

EndpointWhat it's forCredits
List user tweetsGET /v1/x/users/{handle}/tweetsExport an account's posts.2 credits
List followersGET /v1/x/users/{handle}/followersExport followers.2 credits per page (20 rows by default)
List followingGET /v1/x/users/{handle}/followingExport who an account follows.2 credits per page (20 rows by default)
List repliesGET /v1/x/tweets/{id}/repliesExport replies to a post.2 credits
List retweetersGET /v1/x/tweets/{id}/retweetersExport who reposted a post.2 credits

Free tools for the same job

Try the job in a browser first. These tools call the same endpoints, and you don't need a key or any code.

A follower export call

This returns one page of followers. Loop with the cursor and write the rows to CSV.

curl "https://api.chatterapi.com/v1/x/users/levelsio/followers" \
  -H "Authorization: Bearer $CHATTERAPI_KEY"
response, first 2 rows
{
  "data": [
    {
      "id": "197785542",
      "handle": "dannypostma",
      "name": "Danny Postma",
      "bio": "Founder of HeadshotPro, a Singapore-based AI photography company.",
      "followers": 187346,
      "following": 739,
      "tweets": 29627,
      "verified": false,
      "blueVerified": true,
      "canDm": true,
      "protected": null,
      "location": null,
      "url": null,
      "avatarUrl": "https://pbs.twimg.com/profile_images/1587046912490090496/kuBUqNkb_normal.jpg",
      "createdAt": "2010-10-02T13:11:54.000Z",
      "profileUrl": "https://x.com/dannypostma",
      "bannerUrl": "https://pbs.twimg.com/profile_banners/197785542/1762514596",
      "likesGiven": null,
      "mediaCount": null,
      "pinnedTweetIds": null
    },
    {
      "id": "24179991",
      "handle": "dvassallo",
      "name": "Daniel Vassallo",
      "bio": "🚀 https://t.co/X5QMm3wlHe \n🏭 https://t.co/ZvHZp55zso \n🕹️ https://t.co/vHWIhHxTv6",
      "followers": 205470,
      "following": 2449,
      "tweets": 55084,
      "verified": false,
      "blueVerified": true,
      "canDm": false,
      "protected": null,
      "location": "WA, USA",
      "url": null,
      "avatarUrl": "https://pbs.twimg.com/profile_images/2008284492210085888/-aEKwo9U_normal.jpg",
      "createdAt": "2009-03-13T14:34:10.000Z",
      "profileUrl": "https://x.com/dvassallo",
      "bannerUrl": "https://pbs.twimg.com/profile_banners/24179991/1604969845",
      "likesGiven": null,
      "mediaCount": null,
      "pinnedTweetIds": null
    }
  ],
  "page": {
    "nextCursor": "AcPt…",
    "hasMore": true
  }
}

Recorded from a live call on . Long text is shortened and the cursor is cut. A live key is charged 2 credits per page (20 rows by default) for this call. A test key returns this same sample for 0 credits.

What it won't do

  • Only public data. Protected accounts are not returned.
  • The free tools show the first rows of a result. For full exports, use the API.
  • Check the rules that apply to the data you export.

Questions

How do I export tweets from an account?
Use the free X timeline scraper, or call the account posts endpoint and save the rows.
Can I export my own Twitter archive?
X provides that in your account settings. This page covers public data from any account.
Can I export search results?
Yes. Call x.search and page through the results. See search tweets by date.

More ways to use the API

Build it with one API key

Try it free for 7 days with 1,000 credits.