twarc and twarc2 in 2026: What Still Works and a Command-by-Command Twitter (X) API Map

By TwitterAPI.io Team•16 min read
Map of twarc2 commands (search, timeline, followers, following, hydrate, mentions, quotes, conversation) to the official X API v2 paths twarc calls and to the matching twitterapi.io endpoints
Each twarc2 command wraps one official X API v2 call; the right column is the REST endpoint that returns the same kind of data with an X-API-Key header. Study data collected in 2026.
TL;DR
  • twarc / twarc2 is DocNow's MIT-licensed CLI and Python library for archiving Twitter (X) JSON through the official X API; it has no data source of its own.
  • Its README now says it is no longer actively supported after X's API quota changes; the PyPI release is 2.14.1 and the code still installs and runs --help.
  • Re-run through twitterapi.io: 600 search tweets in 30 requests for $0.09 (X rate card: $3.00); 1,000 followers in 5 requests for $0.01 (X: $10.00).
  • Per 1,000 tweets: $0.15 here vs $5.00 on X pay-per-usage (about 33x). Per 1,000 followers on 200-user pages: $0.01 vs $10.00.
  • Timelines need dedupe by id: 15 pages of /twitter/user/last_tweets returned 40 repeated rows per account, and one account's pages jumped 1,412 days.
  • For hydrating a tweet-ID dataset (twarc2 hydrate), use the dedicated guide; this page covers the tool itself and its search, timeline and follower commands.

This page is about twarc itself: what the tool is, what happened to it, what its commands do and how to replace each one. If your job is specifically turning a file of tweet IDs back into tweets (twarc2 hydrate), our hydrate tweets guide owns that task, with a 1,900-ID survival test, so it is linked rather than repeated here.

twarc was widely taught as a research collector: university library workshops, Carpentries lessons and research-computing guides taught twarc2 configure and twarc2 search as the first step of a project. Those tutorials still rank for the name, and many of them assume the Academic Research product track, which X's current API docs no longer list. Below we separate what still holds from what does not, using the project's own README, the twarc2 command reference, a fresh install of the package and the current X API pricing and search docs.

Then we re-ran three classic twarc2 jobs (a hashtag search, two organization timelines and a follower list) through REST endpoints and published what came back: 2,679 items, 91 requests, which fields are filled, where the gaps are, and what each job cost at both rate cards.

Three twarc2 jobs re-run through REST endpoints

2,679 items in 91 requests for $0.26; the same items cost $18.40 at X's pay-per-usage rate card (collected in 2026). 1,000 followers: $0.01 vs $10.00.

01 — Section

What twarc and twarc2 are

twarc is described in its README as "a command line tool and Python library for collecting and archiving Twitter JSON data via the Twitter API." It is maintained under the DocNow organization on GitHub (github.com/DocNow/twarc), is MIT-licensed and has roughly 1.4k stars. The package ships two commands: twarc for the old v1.1 API and twarc2 for the X API v2, and the docs tell new users to start with twarc2.

What we ran. We installed the package from PyPI into a throwaway virtual environment (Python 3.14) and ran only pip show and the --help screens. pip installed twarc 2.14.1 (PyPI lists it as released October 31, 2025, requiring Python 3.13 or newer) plus the twarc-csv plugin. The first time you run any data command, twarc prompts for a Bearer Token and sends you to the X developer portal to "create a project and an app". We did not enter a token and made no X API calls with it.

The command set. twarc2 --help lists 29 subcommands (28 of twarc's own plus csv from the twarc-csv plugin). The ones research projects lean on are these:

twarc2 commandWhat it collects
search QUERYPosts matching a query (--archive for the full archive)
timeline USER / timelinesRecent posts of one or many users (X caps this at the last 3,200)
followers USER / following USERFollower and following profiles, 1,000 per page by default
hydrate / dehydrateTweet IDs to full JSON, and back
conversation IDA reply thread, via search on conversation_id
mentions, quotes, liking-users, retweeted-byEngagement around a user or a post
stream, stream-rules, sampleLive filtered or sampled stream
countsHow many posts match a query, per time bucket

Where it points. In the installed source (twarc/client2.py), every call goes to https://api.twitter.com/2/...: tweets/search/recent, tweets/search/all, users/{id}/followers, tweets/{id}/quote_tweets and so on. twarc adds rate-limit sleeping, pagination, retries and a JSONL file per job; the data, the quota and the bill all come from X.

02 — Section

What happened to twarc, and what still works with a paid key

The status notice. Both the GitHub README and the PyPI page now open with the same sentence: "twarc is no longer actively supported after changes to Twitter's API quotas made it unusable." The repository is not archived and installs cleanly, but there is no promise of fixes when X changes a response.

The Academic track is gone from the docs. The twarc2 reference still describes --archive as "Use the full archive (requires Academic Research track)" and timeline --use-search as needing "Academic Product Track access". X's current search docs (docs.x.com/x-api/posts/search/introduction) describe two endpoints instead: recent search, "Search Posts from the last 7 days", up to 100 posts per request, available to all developers; and full-archive search back to 2006, up to 500 posts per request, "Available to pay-per-use and Enterprise customers."

The host still answers. We sent one unauthenticated request to api.twitter.com/2/tweets/search/recent (the host twarc uses) and to api.x.com: both returned HTTP 401 Unauthorized, which means the old host is still served and a valid token would be checked. We did not test twarc with a paid token, so we cannot confirm every command still parses today's responses.

What it costs now. With a pay-per-usage key, twarc's commands become metered reads. X's pricing page (docs.x.com/x-api/getting-started/pricing) lists $0.005 per post read, $0.010 per user read and $0.010 per follower or following read, with pay-per-usage "capped at 3 million Post reads per monthly billing cycle" and Enterprise above that. Resources are deduplicated within a 24-hour UTC window, which helps a re-run on the same day but not a one-pass collection. New accounts get $20 in X API credits after saving a first payment card, plus a match of the first auto-recharge up to $50.

twarc2 jobItemsX pay-per-usagetwitterapi.io
search hashtag archive100,000 posts$500$15
search large collection1,000,000 posts$5,000$150
timelines 50 accounts x 3,200160,000 posts$800$24
followers of a 500,000-follower account500,000 users$5,000$5

Our column uses 15 credits per tweet returned ($0.15 per 1,000, minimum 15 credits per request) and 1 credit per follower on 200-user pages (1 to 3 credits per user depending on page size); $1 = 100,000 credits. The X column is the rate card above with no deduplication discount. Neither column includes the X API's free signup credits or ours (free starter credits, no card, one per person or network, expiring after 31 days; see the pricing page for the amount).

03 — Section

The command-by-command map: twarc2 to REST endpoints

Every twarc2 job is a query plus a paginator. The table maps each command to the endpoint that returns the same kind of data. All are plain GET requests to https://api.twitterapi.io with an X-API-Key header; no X developer account, project or Bearer Token is needed for reads.

twarc2 commandtwitterapi.io endpointKey parametersRows per page
search (incl. --archive)/twitter/tweet/advanced_searchquery, queryType=Latest or Top, cursor20
timeline/twitter/user/last_tweetsuserName or userId, includeReplies, cursor20
followers/twitter/user/followersuserName, pageSize, cursorup to 200
following/twitter/user/followingsuserName, pageSize, cursorup to 200
hydrate/twitter/tweetstweet_ids (comma-separated)per ID
user / users/twitter/user/info, /twitter/user/batch_info_by_idsuserName; userIds1; per ID list
mentions/twitter/user/mentionsuserName, sinceTime, untilTimepaged
quotes / retweeted-by/twitter/tweet/quotes, /twitter/tweet/retweeterstweetId, cursorpaged
conversation/twitter/tweet/advanced_searchquery=conversation_id:ID20
lists tweets / members/twitter/list/tweets, /twitter/list/memberslistId, cursorpaged

Date flags. twarc2's --start-time and --end-time become operators inside the search query: since_time:<unix seconds> and until_time:<unix seconds>. Unlike X's recent search, there is no 7-day wall, so the same syntax covers a week or several years. --sort-order relevancy maps to queryType=Top.

No direct equivalent. liking-users and liked-tweets have no read endpoint in our API reference, and counts has no counts endpoint (count rows from a search instead). stream and stream-rules map to a different model: filter rules you add with /oapi/tweet_filter/add_rule, checked on an interval and pushed to your webhook, covered in the real-time guides rather than here. compliance-job is X-specific: if your data management plan requires X's batch compliance, keep an X account for that step.

Output shape. twarc2 writes X's v2 response envelope (data plus an includes block that holds users and media), and twarc2 flatten moves those expansions inline. Our responses are already flat: each tweet object carries its author object, entities, extendedEntities.media and counts like likeCount, retweetCount, viewCount and bookmarkCount as top-level fields. That makes the JSONL easier to load into pandas, but twarc-csv will not read it unchanged; map the columns you need once.

python
# twarc2 search "#OpenScience" --start-time 2025-01-01 --end-time 2025-02-01
# becomes one advanced_search query with since_time / until_time (Unix seconds, UTC):
import os, requests
from datetime import datetime, timezone

BASE = "https://api.twitterapi.io"
HEADERS = {"X-API-Key": os.environ["TWITTERAPI_IO_KEY"]}

start = int(datetime(2025, 1, 1, tzinfo=timezone.utc).timestamp())
end = int(datetime(2025, 2, 1, tzinfo=timezone.utc).timestamp())
q = f"#OpenScience since_time:{start} until_time:{end}"

r = requests.get(f"{BASE}/twitter/tweet/advanced_search",
                 params={"query": q, "queryType": "Latest", "cursor": ""},
                 headers=HEADERS, timeout=60)
r.raise_for_status()
page = r.json()
for t in page.get("tweets") or []:
    print(t["createdAt"], t["lang"], t["likeCount"], t["author"]["userName"])
print("more pages:", page.get("has_next_page"), page.get("next_cursor"))
04 — Section

Re-run 1: twarc2 search "#OpenScience"

The classic first twarc job is a hashtag search. We ran the equivalent of twarc2 search "#OpenScience" as /twitter/tweet/advanced_search with queryType=Latest: 30 requests returned 600 tweets, 20 per request, 600 unique, no empty pages, and the last page still reported has_next_page: true.

How far back 30 pages reach. Only 92 of the 600 were from the 7 days before the newest result, the full window X's recent search covers, and 104 from the latest 30 days. The 30 pages reached back to 2021, a span of 1,958 days, with one gap of 334 days between two consecutive results. A hashtag that once carried conference backchannels is now a low-volume tag on X, which is itself a finding worth checking before you plan a study around it.

Measure#OpenScience search
Tweets / requests600 / 30
Originals / quotes / replies81.5% / 11.2% / 7.3%
Distinct authors394
Languages17 (89.3% English)
With a link / with media58.5% / 58.0%
viewCount above 032.0%
Median likes7
Cost here / at X's rate card$0.09 / $3.00

Fields. lang, conversationId, author.followers and bookmarkCount were present on 100% of rows. viewCount was present on every row but above zero on only 32.0%, because many results are older posts that show no view count, so treat a zero as missing rather than as no views. The sample had no retweets: the Latest search returned originals, quotes and replies.

Bar chart on a log scale: cost of each re-run twarc2 job at twitterapi.io rates versus the X API pay-per-usage rate card. Search of 600 tweets $0.09 vs $3.00, NASA and WHO timelines of 300 tweets $0.045 vs $1.50 each, 1,000 followers $0.01 vs $10.00
Each twarc2 job re-run, priced at both rate cards. Tweets: $0.15 vs $5.00 per 1,000. Followers: $0.01 vs $10.00 per 1,000 on 200-user pages. Collected in 2026.
05 — Section

Re-run 2: twarc2 timeline NASA and WHO

twarc2 timeline maps to /twitter/user/last_tweets. We pulled 15 pages for two organization accounts, NASA and WHO, with the default (replies excluded): 300 rows each for $0.045 per account, versus $1.50 at X's rate card. NASA's 300 rows were 54.0% originals and 46.0% retweets, with a median of 606,513 views and 2,216 likes per post.

Repeated rows. Both timelines returned 40 repeated rows in 300 (260 unique per account). twarc's JSONL would have kept them too, since it writes what the API returns. Deduplicate by id before counting anything; the collector below does it as it writes.

Gaps. NASA's 260 unique posts covered 91 days with no gap longer than 3.8 days. WHO's covered 1,508 days, but that span is misleading: 140 posts came from the latest 30 days, then the pages jumped 1,412 days back to posts from 2022. A naive "posts per day" over that span would be wrong by an order of magnitude.

Cross-check with search. We then ran from:NASA and from:WHO through /twitter/tweet/advanced_search (12 pages each, Latest), which also returns replies. from:WHO returned 239 unique posts over 41.5 days with no gap longer than 2.0 days and no repeats. from:NASA returned 220 unique posts (20 repeats, 27.1% replies) over 244 days, but with one 154-day gap. Neither endpoint is a guaranteed complete archive.

Endpoint, accountRowsUniqueSpan (days)Longest gap (days)
last_tweets, NASA300260913.8
from:NASA search240220244154.1
last_tweets, WHO3002601,5081,411.5
from:WHO search23923941.52.0

The practical rule. For "the latest N posts of an account", last_tweets is the direct twarc2 timeline replacement. For a defined study window, run from:<account> with since_time and until_time, dedupe by id, list every gap longer than a few days, and re-query those windows on their own. The snippet in this section does the gap listing. X's own timeline endpoint has a different limit: twarc's help notes it is limited to the last 3,200 posts unless you switch to full-archive search.

python
# Completeness check for a timeline: dedupe by id, then list gaps longer than N days.
import json
from datetime import datetime

rows = [json.loads(l) for l in open("nasa.jsonl")]
when = sorted(datetime.strptime(t["createdAt"], "%a %b %d %H:%M:%S %z %Y") for t in rows)
gaps = [(b - a).total_seconds() / 86400 for a, b in zip(when, when[1:])]
print(len(rows), "unique posts from", when[0].date(), "to", when[-1].date())
for i, g in enumerate(gaps):
    if g > 7:
        print(f"gap of {g:.1f} days after {when[i].date()}: re-collect that window with")
        print(f"  from:NASA since_time:{int(when[i].timestamp())} until_time:{int(when[i + 1].timestamp())}")
Stacked bar chart of unique versus repeated rows: NASA last_tweets 260 unique plus 40 repeated over 91 days, NASA from: search 220 plus 20 with a 154.1-day gap, WHO last_tweets 260 plus 40 with a 1,411.5-day gap, WHO from: search 239 plus 0 over 42 days
Timeline completeness: unique rows, repeated rows, span and longest gap for each endpoint and account. Collected in 2026.
06 — Section

Re-run 3: twarc2 followers internetarchive

twarc2 followers maps to /twitter/user/followers (and following to /twitter/user/followings). With pageSize at 200, 5 requests returned 1,000 unique profiles of the Internet Archive's followers for $0.01. The same 1,000 follower reads cost $10.00 at X's $0.010 per follower read, which makes follower graphs the job where the two rate cards differ by the widest margin: $5 versus $5,000 for a 500,000-follower account.

The response is snake_case, one object per user: id, screen_name, name, description, location, created_at, followers_count, following_count, statuses_count, favourites_count, protected, verified, can_dm and the profile image and URL. That covers the columns researchers usually pull from twarc's user objects for network and audience analysis.

Follower fieldShare filled or true
description non-empty64.1%
location non-empty47.9%
url present20.7%
protected12.0%
zero posts (statuses_count = 0)11.9%
under 10 followers43.5%

What a raw follower list looks like. The median follower in the sample had 18 followers and 99.5 posts; 272 of the 1,000 accounts were created in 2026. Follower lists of large organizations carry many new and inactive accounts, so decide your filter (minimum posts, minimum age, non-protected) before computing audience statistics, and report it in your methods. Location is filled on fewer than half of profiles and is free text, so geographic claims from it need care.

Following and bulk profiles. The same loop works for /twitter/user/followings (response key followings). For a list of user IDs, /twitter/user/batch_info_by_ids returns camelCase profiles (userName, followers, statusesCount); for one account, /twitter/user/info returns data with the profile. Profiles cost 18 credits each ($0.18 per 1,000), against $0.010 per user read on X.

python
# twarc2 following NASA / twarc2 users: same pattern, different endpoints
# /twitter/user/followings   userName=NASA, pageSize=200 -> top-level "followings"[]
# /twitter/user/batch_info_by_ids  userIds=<comma-separated ids> -> "users"[] (camelCase)
# /twitter/user/info         userName=NASA -> "data"{ followers, statusesCount, createdAt, ... }
import os, requests

BASE = "https://api.twitterapi.io"
HEADERS = {"X-API-Key": os.environ["TWITTERAPI_IO_KEY"]}

r = requests.get(f"{BASE}/twitter/user/followings",
                 params={"userName": "NASA", "pageSize": 200},
                 headers=HEADERS, timeout=60)
r.raise_for_status()
page = r.json()
for u in page.get("followings") or []:
    print(u["screen_name"], u["followers_count"], u["created_at"])
Bar chart of account creation year for 1,000 followers of the Internet Archive: small counts from 2007 to 2021, 70 in 2022, 54 in 2023, 80 in 2024, 87 in 2025 and 272 in 2026
1,000 followers of @internetarchive by account creation year: 272 were created in 2026, so filter new and inactive accounts before analysis. Collected in 2026.
07 — Section

Migrating a twarc project: config, files and methods text

Credentials. twarc2 configure stores a Bearer Token (or consumer key and secret) in a config file. The replacement is a single environment variable holding your API key, sent as the X-API-Key header. Keep it out of notebooks and shared repositories the same way you kept the twarc config out.

Pacing. twarc sleeps on X's 15-minute rate windows. Here the limit is requests per second: 0.2 requests per second before your first payment, 20 once paid, 50 on the Scale plan and 500 on Business, with higher limits on request. A fixed pause between requests is enough; the collector on this page uses 5 seconds and you can lower it once paid.

Files. Keep twarc's convention of one JSONL file per job, one object per line. Write the raw objects, dedupe by id, and derive CSVs from the JSONL rather than storing only CSVs, so you can re-derive columns later. If your old pipeline used twarc2 flatten and twarc-csv, replace that step with a small mapping from our field names to your column names.

Sharing data. X's developer terms still shape how you share: research datasets are typically shared as tweet IDs that others re-hydrate, which is exactly what twarc2 dehydrate produced. Our hydrate guide covers turning those ID files back into tweets and how many IDs still resolve.

Methods text. Describe the endpoint, the query string (including since_time and until_time), the queryType, collection year, the dedupe rule and the gap check. Say plainly that the data came from a third-party API reading public X data rather than from X's official API, and that coverage can have gaps like the ones measured above. Reviewers will ask; answering in the paper is easier.

Writes are separate. twarc is read-only. If a project also needs to post or follow from an account it controls, that runs through an authenticated session: one /twitter/user_login_v2 login ($0.10, with a proxy you supply) returns login_cookies, and each post or follow is then 60 credits ($0.0006) per successful call; calls that return status: error are not charged. Such calls act as that account, so X can rate-limit, lock or suspend it; keep a normal human pace, and expect the session to need a fresh login now and then.

08 — Section

twarc, the X API or a REST alternative: choosing

Keep twarc with an X key when your institution has an X Enterprise agreement, when a funder or ethics board requires data from X's official API, or when you need X's batch compliance jobs. Budget at $0.005 per post read and $0.010 per follower read, mind the 3 million post-read monthly cap on pay-per-usage, and accept that the tool is unsupported.

Use the official X API without twarc when you want the official source but a maintained client; the request shapes are the same v2 calls twarc made, so any HTTP client works.

Use a REST API priced per item returned when the budget is the constraint and the data is public: search, timelines, followers, profiles, mentions, quotes and threads, with no X developer account. On our rate card that is $0.15 per 1,000 tweets and about $0.01 per 1,000 followers on full pages, pay only for the data returned. The trade-offs are the ones measured above: repeated rows and gaps to check, and a field schema that differs from X v2.

R users can stay in R; our rtweet page shows the same endpoints from R. Python users moving from Tweepy rather than twarc have their own migration guide.

09 — Section

How we collected this

Question: if a researcher re-runs three classic twarc2 jobs (a hashtag search, a user timeline, a follower list) through REST endpoints instead of the official X API, how many requests and items does each job take, what time span does it cover, which fields come back filled, and what would the same item count cost at both rate cards?

Accounts and query: search for #OpenScience (queryType=Latest, 30 pages); timelines of two organization accounts, NASA and WHO (/twitter/user/last_tweets, 15 pages each, replies excluded); followers of the Internet Archive (/twitter/user/followers, 5 pages of 200). Added after seeing repeated timeline rows: from:NASA and from:WHO through advanced search, 12 pages each.

Window and sample: the latest items available at collection time, collected in 2026: 2,679 items in 91 requests through a rate-limited, read-only client, costing $0.26 in credits. Two of those requests went to a wrong handle for the planned follower target (the DocNow project's own account could not be verified from its README) and are excluded from job costs; the job was re-run on the Internet Archive, an organization in the same archiving field.

Pricing basis: our cost is 15 credits per tweet (minimum 15 per request) and 1 credit per follower on 200-user pages, $1 = 100,000 credits; the X column uses docs.x.com/x-api/getting-started/pricing as fetched for this page ($0.005 per post read, $0.010 per follower read).

What the sample cannot show: one hashtag, two accounts and one follower list are not a coverage audit. We did not run twarc against X's API with a token, so we cannot compare the two sources row for row. The repeated rows and gaps describe these runs, not a fixed rate you can expect on every account. Follower ordering and page composition can change between runs.

Privacy: aggregates only. Search results and follower lists are mostly private individuals: their raw pages stayed on a temporary disk and were not kept; the published sample holds de-identified rows (no IDs, URLs, text, handles or names). Only organization accounts are named.

python
# twarc_lite.py: three classic twarc2 jobs (search, timeline, followers) over plain HTTP.
# Usage:
#   python twarc_lite.py search "#OpenScience" search.jsonl --limit 600
#   python twarc_lite.py timeline NASA nasa.jsonl --limit 300
#   python twarc_lite.py followers internetarchive followers.jsonl --limit 1000
# Output: one JSON object per line, deduplicated by id, like twarc2 + `twarc2 flatten`.
import argparse, json, os, time
import requests

BASE = "https://api.twitterapi.io"
HEADERS = {"X-API-Key": os.environ["TWITTERAPI_IO_KEY"]}
PAUSE = 5  # seconds between requests: 0.2 requests/s before the first payment; lower it once paid


def search(query, limit):
    cursor = ""
    while True:
        r = requests.get(f"{BASE}/twitter/tweet/advanced_search",
                         params={"query": query, "queryType": "Latest", "cursor": cursor},
                         headers=HEADERS, timeout=60)
        r.raise_for_status()
        page = r.json()
        for t in page.get("tweets") or []:
            yield t
        if not page.get("has_next_page") or not page.get("next_cursor"):
            return
        cursor = page["next_cursor"]
        time.sleep(PAUSE)


def timeline(user, limit):
    cursor = ""
    while True:
        r = requests.get(f"{BASE}/twitter/user/last_tweets",
                         params={"userName": user, "cursor": cursor},
                         headers=HEADERS, timeout=60)
        r.raise_for_status()
        page = r.json()
        for t in (page.get("data") or {}).get("tweets") or []:
            yield t
        if not page.get("has_next_page") or not page.get("next_cursor"):
            return
        cursor = page["next_cursor"]
        time.sleep(PAUSE)


def followers(user, limit):
    cursor = ""
    while True:
        r = requests.get(f"{BASE}/twitter/user/followers",
                         params={"userName": user, "pageSize": 200, "cursor": cursor},
                         headers=HEADERS, timeout=60)
        r.raise_for_status()
        page = r.json()
        for u in page.get("followers") or []:
            yield u
        if not page.get("has_next_page") or not page.get("next_cursor"):
            return
        cursor = page["next_cursor"]
        time.sleep(PAUSE)


def main():
    ap = argparse.ArgumentParser(description="twarc2-style collector for twitterapi.io")
    ap.add_argument("command", choices=["search", "timeline", "followers"])
    ap.add_argument("target", help="query for search, user name for timeline / followers")
    ap.add_argument("outfile")
    ap.add_argument("--limit", type=int, default=1000)
    a = ap.parse_args()
    job = {"search": search, "timeline": timeline, "followers": followers}[a.command]
    seen, written = set(), 0
    with open(a.outfile, "w", encoding="utf-8") as out:
        for item in job(a.target, a.limit):
            key = str(item.get("id"))
            if key in seen:
                continue  # timelines can repeat rows across pages: keep the first copy
            seen.add(key)
            out.write(json.dumps(item, ensure_ascii=False) + "\n")
            written += 1
            if written >= a.limit:
                break
    print(f"{a.command} {a.target}: {written} unique rows -> {a.outfile}")


if __name__ == "__main__":
    main()

Researching this?Free starter credits cover end-to-end testing — Google sign-in, no card. Get a key.

10 — Questions

Questions readers ask

Does twarc still work in 2026?

It installs (twarc 2.14.1 on PyPI) and its commands still call api.twitter.com/2/..., which still answers, but the README says twarc is no longer actively supported after X's API quota changes made it unusable. It needs an X developer Bearer Token, and every read is billed at X's rate card ($0.005 per post read on pay-per-usage). We did not test it with a paid token.

What is the difference between twarc and twarc2?

Both commands ship in the same twarc package. twarc targets the old v1.1 API and twarc2 targets the X API v2 (search, timelines, followers, hydrate, streams). The docs tell new users to use twarc2.

Can twarc2 still search the full archive?

twarc's --archive flag calls X's full-archive search. twarc's help still says it requires the Academic Research track; X's current docs say full-archive search is available to pay-per-use and Enterprise customers. Each post returned is a metered read. Recent search without --archive covers only the last 7 days.

What is a good twarc alternative?

If you need X's official data, call the X API v2 directly with any HTTP client. If budget matters and the data is public, a REST API priced per item returned keeps the twarc workflow (query, cursor pagination, JSONL) at $0.15 per 1,000 tweets here versus $5.00 on X pay-per-usage. The command map on this page lists the endpoint for each twarc2 command.

How do I hydrate a tweet ID dataset without twarc?

Send the IDs in batches to /twitter/tweets with tweet_ids as a comma-separated list, match results by id and log the IDs that come back missing. Our hydrate tweets guide has a resumable script and a survival test on a public dataset.

How many tweets can twarc2 timeline get?

X's user timeline endpoint returns up to the latest 3,200 posts, per twarc's own help text; going further needed full-archive search. With from:<account> in advanced search plus since_time and until_time, you can walk any window, but dedupe by id and check for gaps.

Is twarc output compatible with twitterapi.io output?

Not field for field. twarc2 writes X's v2 envelope with an includes block; our tweets are flat objects with author, entities and counts like likeCount and viewCount at the top level. Write a small column mapping once and keep JSONL as the raw format.

Do I need an X developer account to replace twarc?

Not for reads. Search, timelines, followers, profiles and hydration on twitterapi.io use an API key in the X-API-Key header. New accounts get free starter credits (no card, one per person or network, expiring after 31 days); the pricing page has the amount.

11 — Further reading

Continue

Sources & further reading
More from this series

Writing about something you built with TwitterAPI.io? Our community rewards program pays API credits for honest tutorials, build logs and videos.

Build it

Stop reading. Start building.

Starter credits cover real testing on real data. Google sign-in, no card, no application queue.

Get an API key

Already building with TwitterAPI.io? Publish an honest tutorial or build log about it and earn up to $200 a month in API credits.