Price alert Hurry up! Google SERP API from $0.03/1K calls — prices likely to rise 10× from December 2026.Hurry up! Google SERP from $0.03/1K — likely 10× from Dec 2026Google SERP $0.03/1K · likely 10× from Dec$0.03/1K · likely 10× in Dec Deposit Now

Track Twitter Followers Over Time: An X Growth Tracker

By Anurag Pathak · · 13 min read

To track X (Twitter) followers over time, save a dated follower count for each account on a schedule and compare the snapshots. No API returns an account's past counts, so history starts the day you start recording. A short Python script, SQLite and one profile call per account per day or week is enough.

Short answer: for your own account only, X's built-in analytics may be enough; for a handful of competitors and a dashboard, a SaaS tool such as Circleboom saves you the code. For many accounts, your own reports or client work, run the small tracker below on a profile API: snapshot accounts under about 100,000 followers daily and larger ones weekly, because large-account counts are rounded to three significant figures (e.g. 42,300,000). On the X profile API it costs $3 a month for 1,000 accounts checked daily.

Why can't you look up an account's follower history?

Because the data you can query is the count right now. twitterapi.io, which sells X data, puts it plainly in its own guide: there is no follower_count_at(timestamp) endpoint, on X's official API or on third-party ones. Nearly every follower chart you have seen was built by someone saving the count on a schedule.

That has two consequences. First, start recording today; a tracker you set up next month will have no data for this month. Second, the history belongs to you, so put it somewhere you control, such as a SQLite file, a CSV or your warehouse.

Older tutorials took the same route. A 2021 DEV post by Michael Hoffmann stored a monthly count in DynamoDB because Twitter Analytics only showed the last 30 days. The idea still holds; the libraries and the API access have changed.

What does one snapshot look like?

One call returns a public profile: name, bio, the three counts, join date, website and the recent posts the profile lists. You send a handle and your key:

curl -G "https://apiserpent.com/api/x/profile" \
  --data-urlencode "handle=example" \
  -H "X-API-Key: $SERPENT_API_KEY"

The fields a tracker needs sit under profile.counts: followers, following and posts. Our X profile docs say any of the three is null when no count is available, so store null as null, never as 0. The body below was built from those documented fields for this tutorial; the values are illustrative.

{
  "success": true,
  "profile": {
    "handle": "example",
    "name": "Example",
    "bio": "Illustrative stub profile.",
    "avatar_url": "https://example.com/avatar.jpg",
    "counts": { "followers": 42300000, "following": 512, "posts": 3100 },
    "joined": "March 2015",
    "website": "https://example.com",
    "recent_posts": []
  }
}

Three documented rules shape the code. The handle is identity-checked, so a profile that turns out to belong to a different handle answers 404 rather than arriving under yours. A 404 for a handle that does not exist is an answer and is charged. And a counts-only call bills the base $0.10 per 1,000 rate; hydrate=true adds detail to the recent posts at 1.5× and a tracker does not need it.

How do you store a snapshot every day?

Call the profile once per handle and write one row per handle per day. The table keeps a status column so a missing account and a failed call never look like a follower drop.

pip install requests matplotlib
export SERPENT_API_KEY=sk_live_your_api_key
"""Daily X follower snapshots: one profile call per handle, stored in SQLite."""
import datetime
import os
import sqlite3

import requests

API = "https://apiserpent.com/api/x/profile"
KEY = os.environ.get("SERPENT_API_KEY", "")

SCHEMA = """CREATE TABLE IF NOT EXISTS snapshots (
  day TEXT, handle TEXT, status TEXT,
  followers INTEGER, following INTEGER, posts INTEGER,
  PRIMARY KEY (day, handle))"""


def snapshot(session, handle):
    r = session.get(API, params={"handle": handle}, headers={"X-API-Key": KEY}, timeout=60)
    if r.status_code == 404:
        return {"status": "not_found"}  # an answer, not an outage: store it
    r.raise_for_status()
    profile = r.json()["profile"]
    if (profile.get("handle") or "").lower() != handle.lower():
        return {"status": "handle_mismatch"}
    counts = profile.get("counts") or {}
    return {"status": "ok", **{k: counts.get(k) for k in ("followers", "following", "posts")}}


def run(db_path, handles, day=None, session=None):
    day = day or datetime.date.today().isoformat()
    session = session or requests.Session()
    con = sqlite3.connect(db_path)
    con.execute(SCHEMA)
    for handle in handles:
        try:
            s = snapshot(session, handle)
        except requests.RequestException as exc:
            print(f"skipped {handle}: {exc}")  # no row, so a failed call never looks like a drop
            continue
        con.execute(
            "INSERT OR REPLACE INTO snapshots VALUES (?,?,?,?,?,?)",
            (day, handle, s["status"], s.get("followers"), s.get("following"), s.get("posts")),
        )
    con.commit()
    return con


if __name__ == "__main__":
    run("followers.db", ["example", "smallbrand"])

The rules in that code, in plain words:

How precise are the counts, and how often should you snapshot?

Large-account counts are rounded to three significant figures (e.g. 42,300,000), so a big account's count moves in steps, not one follower at a time. For 42,300,000 the step is 100,000. If that account gains 6,000 followers a day, a daily snapshot shows the same number for about two weeks and then jumps by 100,000.

That is fine for a trend line and useless for "how many did we gain yesterday". So the tracker treats every count as precise to three significant figures and picks the snapshot cadence from the step size.

Weekly snapshots also cut the bill to 4 calls per account per month instead of 30.

How do you compute growth and spot spikes?

Compare the first and last usable snapshots in a window, and flag a change as "measurable" only when it is at least one step. For spikes, compare each day's change with the account's typical daily change and with the step, so rounding jumps on a big account are not reported as events.

"""Growth, spikes and a chart from the snapshots table."""
import datetime
import sqlite3
import statistics

import matplotlib

matplotlib.use("Agg")
import matplotlib.pyplot as plt


def step(n):
    """Smallest change a count kept to three significant figures can show."""
    return 1 if n < 1000 else 10 ** (len(str(int(n))) - 3)


def series(con, handle, every=1):
    rows = con.execute(
        "SELECT day, followers FROM snapshots WHERE handle = ? AND status = 'ok' "
        "AND followers IS NOT NULL ORDER BY day", (handle,)).fetchall()
    return rows[::every]


def growth(rows):
    (d0, f0), (d1, f1) = rows[0], rows[-1]
    res = step(max(f0, f1))
    change = f1 - f0
    return {"from": d0, "to": d1, "start": f0, "end": f1, "change": change,
            "pct": round(100 * change / f0, 2), "resolution": res,
            "measurable": abs(change) >= res}


def spikes(rows, k=3):
    deltas = [(rows[i][0], rows[i][1] - rows[i - 1][1]) for i in range(1, len(rows))]
    typical = statistics.median(abs(d) for _, d in deltas)
    found = []
    for i, (day, d) in enumerate(deltas):
        floor = max(2 * step(rows[i + 1][1]), k * typical)
        if abs(d) > floor:
            found.append((day, d))
    return found


def chart(rows, handle, path):
    days = [datetime.date.fromisoformat(d) for d, _ in rows]  # real dates, so a missed day leaves a gap
    vals = [f for _, f in rows]
    fig, ax = plt.subplots(figsize=(8, 3.5))
    ax.plot(days, vals, marker="o", markersize=3, color="#0d9488")
    ax.set_title(f"@{handle} followers (counts move in steps of {step(max(vals)):,})")
    ax.ticklabel_format(axis="y", style="plain", useOffset=False)
    fig.autofmt_xdate()
    fig.tight_layout()
    fig.savefig(path, dpi=120)
    plt.close(fig)

To check the logic end to end, the run log drives the tracker through 28 simulated days (26 October to 22 November 2026) for three handles, with only the HTTP call replaced by a stub. The stub's bodies follow the documented fields, with illustrative counts kept to three significant figures: example gains about 6,000 a day from 42,300,000, smallbrand gains about 14 a day from 8,412 with a jump of 640 on day 20, and gone_handle answers 404. On 10 November the stub answers 503 for smallbrand. Output on Python 3.15.2, requests 2.34.2 and matplotlib 3.11.2:

skipped smallbrand: 503 Server Error: None for url: https://apiserpent.com/api/x/profile?handle=smallbrand
rows: (83, 55, 28)

example (every 1 day, 28 points)
 growth: {'from': '2026-10-26', 'to': '2026-11-22', 'start': 42300000, 'end': 42500000, 'change': 200000, 'pct': 0.47, 'resolution': 100000, 'measurable': True}
 spikes: []

example (every 7 days, 4 points)
 growth: {'from': '2026-10-26', 'to': '2026-11-16', 'start': 42300000, 'end': 42400000, 'change': 100000, 'pct': 0.24, 'resolution': 100000, 'measurable': True}
 spikes: []

smallbrand (every 1 day, 27 points)
 growth: {'from': '2026-10-26', 'to': '2026-11-22', 'start': 8410, 'end': 9430, 'change': 1020, 'pct': 12.13, 'resolution': 10, 'measurable': True}
 spikes: [('2026-11-15', 650)]

Read it like this. rows: (83, 55, 28) means 83 rows were stored: 55 with counts and 28 not_found rows for the deleted handle. The 503 day wrote nothing, so smallbrand has 27 points, not 28.

For the big account, the simulated true gain was 162,000, but the counts show 200,000, because each end of the window can be off by up to half a step. Over four weeks that is a fair trend; over one day it would be noise. No spike was flagged, because the 100,000 jumps are rounding steps, not events.

For the small account, growth is measured to the nearest 10 and the jump of 640 on 15 November is flagged as a spike of 650. Spikes like that are the ones worth explaining in a report: a viral post, a mention by a bigger account, or a campaign.

How do you chart it and run it on a schedule?

Call chart() for each handle after the daily run; it writes a PNG you can drop into a report or a Slack message. Real dates on the x axis mean a missed day shows as a gap instead of being squeezed out.

import sqlite3
import report

con = sqlite3.connect("followers.db")
for handle in ["example", "smallbrand"]:
    rows = report.series(con, handle)
    if len(rows) >= 2:
        print(handle, report.growth(rows), report.spikes(rows))
        report.chart(rows, handle, f"{handle}.png")

Then schedule both scripts. On a Linux box, one cron line runs the snapshot at 06:10 UTC and the report after it:

10 6 * * * cd /opt/x-tracker && . ./.env && python tracker.py && python make_report.py >> tracker.log 2>&1

Run it at the same time every day; comparing a 06:00 count with a 23:00 count adds a day's worth of noise. For a long list, spread the calls through the hour rather than sending them all at once, and keep the job idempotent (the INSERT OR REPLACE above already is).

If you track Instagram accounts too, the same pattern works there; see our Instagram profile tracker. For one-off checks of an account rather than a time series, use the X profile snapshot audit.

What does tracking cost?

For 1,000 accounts checked daily, about $3 a month on our profile endpoint, $300 on X's own pay-per-usage API, and between $0.30 and $5.40 on twitterapi.io depending on whether you batch. I read each pricing page on 22 November 2026.

Monthly cost of daily snapshots (30 a month per account), USD, list prices checked 22 Nov 2026
Source and plan100 accounts1,000 accounts10,000 accounts
Serpent API — Default ($10 deposit)$0.30$3$30
Serpent API — Growth ($100 deposit)$0.30$3$30
Serpent API — Scale ($500 deposit)$0.30$3$30
Serpent API — Enterprise ($1,000 deposit)$0.30$3$30
Serpent API — Enterprise Plus ($1,250 deposit)$0.30$3$30
X API pay-per-usage ($0.010 per user read)$30$300$3,000
twitterapi.io, one profile per call ($0.18 per 1,000)$0.54$5.40$54
twitterapi.io, batches of 100+ user ids ($0.01 per 1,000)$0.03$0.30$3

Notes on the comparison. The X profile endpoint is the one rate on our price list with no tier discount, so all five rows are $0.10 per 1,000: from $0.10 per 1,000 — pay as you go, no subscription (pricing). twitterapi.io's batch rate is lower, but its batch endpoint takes numeric user ids, so you resolve handles first. X's own API charges per user read and is the official route if you need X's terms; its pricing page also deduplicates the same resource within a 24-hour UTC window, which does not help a once-a-day snapshot.

For weekly snapshots, divide by 7.5: 1,000 accounts weekly is about $0.40 a month on our endpoint.

Which way should you track?

Tracking posts rather than accounts? Monitoring known post IDs covers that, and free X API options covers the no-budget routes.

How we checked this

Sources: 8 external pages read on 22 November 2026 (X's pricing page, twitterapi.io's pricing page and two of its guides, the 2021 DEV tutorial, a Circleboom guide, and the Matplotlib and Python sqlite3 references), plus our own docs and pricing pages. Moni's follower-history API reference came up in search but returned 404 when opened, so it is not used. Code: the tracker, report and report snippet ran locally on Python 3.15.2 with requests 2.34.2 and matplotlib 3.11.2, through 28 simulated days.

No call went to our API or any paid API. Only the HTTP call was replaced, by stub bodies built from the documented response fields with illustrative counts, so the numbers in the output show the logic, not any real account. Costs are list prices times volume, from a small script kept with the run log.

What we could not verify: the exact count size at which rounding starts (the tracker treats every count as three significant figures, which is safe either way), and the plans and limits of SaaS trackers, which we name but did not price.

Start your follower history today

Public profile data for an X handle in one API call, from $0.10 per 1,000 — pay as you go, no subscription. Try it with 10 free calls.

Get Your Free API Key

Explore: X (Twitter) API · Playground · Docs · Pricing

FAQ

Can I see an X account's follower count history?

Not from an API call. The data you can query is the current count, and twitterapi.io's own guide says there is no follower-count-at-a-date endpoint on X's API or third-party ones. Follower history exists only where someone recorded it, which is why a tracker has to start saving snapshots on day one. Some SaaS tools keep history for accounts they already watch; for any other account, your history begins when your tracker does.

How often should I record follower counts?

Daily for accounts under about 10,000 followers, where a count moves in steps of 10 or less. For bigger accounts, large-account counts are rounded to three significant figures (for example 42,300,000), so a daily snapshot mostly repeats itself; record weekly and read four-week trends. A good rule is to snapshot often enough that the account gains at least two steps in between.

How do I calculate follower growth rate?

Take the first and last usable counts in a window: growth is end minus start, and the rate is that change divided by the start, times 100. Report it only when the change is at least one step of the count's precision; otherwise say "no measurable change". For a monthly rate from weekly snapshots, compare the count four weeks apart rather than adding up weekly changes.

What does it cost to track 1,000 X accounts?

On our X profile endpoint, about $3 a month for daily snapshots and about $0.40 for weekly, at $0.10 per 1,000 calls on every tier. X's own pay-per-usage API lists $0.010 per user read, which is $300 a month for the same daily job. twitterapi.io lists $0.18 per 1,000 single-profile calls and $0.01 per 1,000 in batches of 100 or more ids.

Can I get the list of who followed or unfollowed?

Not from a profile endpoint. Ours returns the follower, following and post counts and never the accounts behind them. Follower lists come from list endpoints, which X prices at $0.010 per follower read on pay-per-usage, so a list for a large account is expensive. If you only need to know how many joined or left, the count snapshots in this guide answer it far more cheaply.

Related Posts