How to Scrape Kick with Python: Channel Stats, Live Viewers, Clips, and a SQLite Tracker (2026)

●6 ●15
calendar_today • schedule14 min read

Kick has turned into the second streaming platform a lot of people actually watch. Big creators moved over, Slots and IRL took off, and anyone in marketing, esports, or creator analytics now gets the same questions about Kick that they used to get about Twitch. How many followers does this streamer have? Are they live right now, and with how many viewers? Which clips are taking off? Which categories are growing?

You can answer most of that with a short Python script. In this tutorial we'll build one with requests and the standard library's sqlite3. It:

  1. Reads Kick's robots.txt, including its query-string rules
  2. Pulls channel stats: followers, verification, live status, current viewers, category
  3. Lists past broadcasts (VODs) and clips, with cursor pagination
  4. Ranks categories by live viewers
  5. Saves snapshots to SQLite and reports follower growth and peak viewers

Everything below ran against the live site on October 28, 2026, from a cloud server in a datacenter. The outputs are real. The snippets all come from one file, kick_scraper.py (about 320 lines), with a small command-line interface: channel, vods, clips, clip, categories, track, and report.

The Kick API situation: official vs. what the website uses

When people search for "kick api," they usually mean one of two things.

The official Kick API (https://api.kick.com/public/v1/..., documented at docs.kick.com) is a real, supported developer API. You register an app and get an OAuth token, either a user token or an app token through the client-credentials flow, then call endpoints like GET /public/v1/channels?slug=xqc. Without a token, every endpoint answers 401 {"message":"Unauthorized"}. I tried it. It's built for bots and integrations: chat, events, updating your own stream. Its channel object covers the category, stream title, live status, and viewer_count. It does not include follower counts, and it has no endpoints for clips or a channel's past broadcasts.

The website's own JSON API (https://kick.com/api/v1/... and /api/v2/...) is what kick.com's frontend calls to render channel pages. It's undocumented and needs no login. It also covers exactly the gaps above: followers, VOD history, clips, and category viewer totals. This tutorial uses it, carefully.

If the official API covers your use case, use it. It's the stable, sanctioned option. Everything below is for the public numbers it leaves out.

Step 0: robots.txt has rules about query strings

This is Kick's robots.txt today, trimmed:

User-Agent: *
Disallow: /login$
Disallow: /oauth/
...
Disallow: /*?*sort=
Disallow: /*?*languages=
Disallow: /*?*tags=
Disallow: /*?*clip=
Disallow: /*?*query=
Disallow: /*?*range=
Disallow: /*?*filter=

Two things stand out. First, /api/ is not disallowed. Second, most of the rules target query parameters: any URL with sort=, query=, filter= and so on. So the same path can be fine with one query string and off-limits with another. The clips endpoint accepts a sort=view parameter (the website uses it for "most viewed"). By these rules, you shouldn't send it.

Python's built-in urllib.robotparser doesn't handle * wildcards, so it would get almost every rule in this file wrong. Here's a small matcher that uses Google's "longest matching rule wins" logic, run against the full path plus query string:

def load_robots():
    txt = session.get(BASE + "/robots.txt", timeout=TIMEOUT).text
    rules, active = [], False
    for line in txt.splitlines():
        line = line.split("#")[0].strip()
        if ":" not in line:
            continue
        key, val = (s.strip() for s in line.split(":", 1))
        key = key.lower()
        if key == "user-agent":
            active = val == "*"
        elif active and key in ("allow", "disallow") and val:
            rx = "^" + re.escape(val).replace(r"\*", ".*")
            rx = rx[:-2] + "$" if rx.endswith(r"\$") else rx
            rules.append((key, val, re.compile(rx)))
    return rules

def allowed(path_and_query, rules):
    hits = [(len(raw), kind == "allow") for kind, raw, rx in rules if rx.match(path_and_query)]
    # longest rule wins; on a tie, Allow beats Disallow; no match means allowed
    return max(hits)[1] if hits else True

python3 kick_scraper.py robots:

/xqc                                             allowed=True
/api/v2/channels/xqc                             allowed=True
/api/v2/channels/xqc/clips                       allowed=True
/api/v2/channels/xqc/clips?sort=view&time=all    allowed=False
/api/v2/channels/xqc/clips?cursor=abc            allowed=True
/browse?query=gta                                allowed=False
/login                                           allowed=False

That's why the scraper below lists clips in the default order (newest first) and does its own ranking. robots.txt is a crawl policy, not a license, so also read Kick's terms of service before you build anything commercial on this. My own rules for this project: no login, public counters only, nothing about individual viewers, and no more than one request every 1.5 seconds.

Step 1: A polite fetcher

Kick sits behind Cloudflare. While testing, I made 40 back-to-back requests to a channel endpoint and got 40 200s. The default curl and Python-urllib user agents got through too. That doesn't mean it will always work. The main website (/xqc, the HTML page) behaves differently from the JSON endpoints, and Cloudflare can start serving its "Just a moment..." challenge page at any time. Write the fetcher so it notices that and stops, and never try to solve the challenge yourself.

import requests, time, sys

BASE = "https://kick.com"
DELAY = 1.5
TIMEOUT = 20

session = requests.Session()
session.headers.update({
    "User-Agent": "Mozilla/5.0 (compatible; kick-research-script/1.0; +mailto:*Emails are not allowed*)",
    "Accept": "application/json",
})
_last = 0.0

class NotFound(Exception): pass
class Blocked(Exception): pass

def get_json(path, params=None, tries=4):
    global _last
    url = BASE + path
    for attempt in range(tries):
        time.sleep(max(0.0, DELAY - (time.time() - _last)))
        _last = time.time()
        r = session.get(url, params=params, timeout=TIMEOUT)
        ctype = r.headers.get("content-type", "")
        if r.status_code == 200 and "json" in ctype:
            return r.json()
        if r.status_code == 404:
            raise NotFound(f"404 for {r.url}")
        if r.status_code in (429, 500, 502, 503, 504):
            wait = int(r.headers.get("Retry-After") or 0) or 5 * 2 ** attempt
            time.sleep(wait)
            continue
        if r.status_code == 403 or "Just a moment" in r.text[:2000]:
            raise Blocked(f"Cloudflare said no ({r.status_code}) on {r.url}")
        raise RuntimeError(f"unexpected {r.status_code} {ctype} for {r.url}")
    raise RuntimeError(f"gave up on {url}")

Checking content-type matters. A Cloudflare challenge page is HTML, sometimes with status 403 and sometimes with 503. If you call r.json() without checking, you get a confusing JSONDecodeError instead of a clear "you're blocked" message.

Step 2: Channel stats and live status

GET /api/v2/channels/<slug> returns about 7.7 KB of JSON: the channel, the owner's public profile, the current livestream (or null), subscriber badges, chatroom settings, and more. We keep the useful parts:

def to_int(v):
    try:
        return int(v)
    except (TypeError, ValueError):
        return None

def channel(slug):
    d = get_json(f"/api/v2/channels/{slug}")
    live = d.get("livestream") or None
    user = d.get("user") or {}
    return {
        "slug": d["slug"],
        "channel_id": d["id"],
        "username": user.get("username"),
        "followers": to_int(d.get("followers_count")),
        "verified": bool(d.get("verified")),
        "socials": {k: user[k] for k in ("instagram", "twitter", "youtube", "tiktok", "discord") if user.get(k)},
        "recent_categories": [c["name"] for c in d.get("recent_categories") or []],
        "is_live": bool(live and live.get("is_live")),
        "viewers": live.get("viewer_count") if live else None,
        "stream_title": live.get("session_title") if live else None,
        "stream_category": (live.get("categories") or [{}])[0].get("name") if live else None,
        "live_since": live.get("start_time") if live else None,
    }

python3 kick_scraper.py channel xqc (trimmed):

{
 "slug": "xqc",
 "channel_id": 668,
 "username": "xQc",
 "followers": 1392316,
 "verified": true,
 "recent_categories": ["Grand Theft Auto V (GTA)", "Just Chatting"],
 "is_live": true,
 "viewers": 9008,
 "stream_category": "Grand Theft Auto V (GTA)",
 "live_since": "2026-10-27 21:02:50"
}

Gotchas from this one endpoint:

  • followers_count is a string here ("1392298"). The search endpoint returns the same field as an integer. Normalize it in one place (to_int) or your SQL comparisons will quietly sort "99" above "1000".
  • The response includes a signed playback_url with a stream token in it. Don't store it. It expires, and it has nothing to do with analytics.
  • The response is cached. It comes back with cache-control: public, max-age=15 and cf-cache-status: HIT. Viewer counts from it can be up to 15 seconds old. That's fine for a tracker, but don't poll every two seconds expecting fresh numbers.
  • Unknown or renamed channels return 404 {"message":"Channel not found."}. Treat that as a signal in your tracker, not as a crash. Streamers rename channels, and channels get banned.

For a live check alone, there's a lighter endpoint, /api/v2/channels/<slug>/livestream. It returns {"data": null} when the channel is offline, and it's not cached (cf-cache-status: DYNAMIC). The tracker uses it for the viewer count.

Step 3: VODs (past broadcasts)

/api/v2/channels/<slug>/videos returns a channel's recent broadcasts as a plain list (25 for xQc today), newest first:

def kick_time(s):
    if not s:
        return None
    s = s.replace("Z", "+00:00")
    if "T" not in s:
        s = s.replace(" ", "T") + "+00:00"
    return datetime.fromisoformat(s).astimezone(timezone.utc)

def vods(slug, limit=10):
    out = []
    for v in get_json(f"/api/v2/channels/{slug}/videos")[:limit]:
        start = kick_time(v.get("start_time"))
        out.append({
            "uuid": (v.get("video") or {}).get("uuid"),
            "title": v.get("session_title"),
            "started_utc": start.isoformat() if start else None,
            "hours": round((v.get("duration") or 0) / 3_600_000, 2),
            "views": v.get("views"),
            "still_live": v.get("is_live"),
            "category": (v.get("categories") or [{}])[0].get("name"),
        })
    return out

python3 kick_scraper.py vods xqc --limit 6:

2026-10-27T21:02    0.0h       345 views  Grand Theft Auto V (GTA)
2026-10-26T20:59  13.03h    46,406 views  Just Chatting
2026-10-24T20:50  11.86h    53,208 views  Just Chatting
2026-10-23T21:07  11.34h   246,210 views  Just Chatting
2026-10-22T19:04  13.09h    48,912 views  Just Chatting
2026-10-21T19:56  11.92h    56,135 views  Grand Theft Auto V (GTA)

This is already a useful dataset: stream schedule, hours streamed per week, and which category each session was in. Pitfalls:

  • The first row is the stream that's still running. Its duration is 0 and views is tiny (345 while 9,000 people were watching live), because views counts replay views of the VOD, not live viewers. Filter on is_live before you compute averages.
  • duration is in milliseconds. Clips (next step) use seconds. I got this wrong the first time and had xQc streaming 46,891,000-hour sessions.
  • Two timestamp formats. Livestreams and VODs use "2026-10-27 21:02:50", with no time zone (it's UTC; it matches the "live for 12 hours" you see on the site). Clips use ISO 8601 with a Z. kick_time() normalizes both to timezone-aware UTC.
  • Each VOD row also has a viewer_count. Kick doesn't document what it means for a finished stream (peak? the last reading?), so I don't use it. Measure peaks yourself with snapshots (Step 6).

Step 4: Clips with cursor pagination

/api/v2/channels/<slug>/clips returns 20 clips per page plus a nextCursor, which is a small JSON string like {"view":0,"id":"clip_01M60EX7..."}. You pass it back as ?cursor=.... requests handles the URL encoding.

def clips(slug, pages=1):
    out, seen, cursor = [], set(), None
    for _ in range(pages):
        d = get_json(f"/api/v2/channels/{slug}/clips", {"cursor": cursor} if cursor else None)
        for c in d.get("clips") or []:
            if c["id"] in seen:
                continue
            seen.add(c["id"])
            out.append({
                "id": c["id"],
                "title": c.get("title"),
                "views": c.get("views"),
                "likes": c.get("likes"),
                "seconds": c.get("duration"),
                "created_utc": kick_time(c.get("created_at")).isoformat(timespec="seconds"),
                "category": (c.get("category") or {}).get("name"),
                "url": f"{BASE}/{slug}/clips/{c['id']}",
            })
        cursor = d.get("nextCursor")
        if not cursor:
            break
    return out

python3 kick_scraper.py clips xqc --pages 3:

60 clips, newest 2026-10-28T08:48:37+00:00, oldest 2026-10-28T02:15:11+00:00
   201 views    0 likes   70s  2026-10-28T03:43  https://kick.com/xqc/clips/clip_01M609K1SMT5AQCC1J627KBVAM
    77 views    0 likes   27s  2026-10-28T05:53  https://kick.com/xqc/clips/clip_01M60H258MDK5Q2EPP5RSRN42S
    20 views    0 likes   79s  2026-10-28T03:29  https://kick.com/xqc/clips/clip_01M608V29RVXF537QPCK804NXK

Sixty clips covered only about six and a half hours of a single stream. Big channels get clipped constantly, so "every clip from last month" means hundreds of pages. Pick a time window and stop paginating once created_utc falls outside it.

Things to know:

  • The list is cached for up to four hours (cache-control: public, max-age=14400). New clips and fresh view counts can lag behind the site.
  • Some fields in the list are placeholders. In the list response, started_at came back as 0001-01-01T00:00:00Z and vod_starts_at as 0. The single-clip endpoint /api/v2/clips/<id> returns the real values (for the clip above, vod_starts_at: 23046, which is 6.4 hours into the VOD). So if you need the timestamp inside the VOD, fetch each clip you care about individually:
def clip(clip_id):
    clip_id = clip_id.rstrip("/").split("/")[-1]
    c = get_json(f"/api/v2/clips/{clip_id}")["clip"]
    return {"id": c["id"], "channel": (c.get("channel") or {}).get("slug"),
            "views": c.get("views"), "likes": c.get("likes"), "seconds": c.get("duration"),
            "vod_offset_s": c.get("vod_starts_at"), "created_utc": c.get("created_at")}
  • Each clip includes a creator object: the viewer who made the clip. That's an individual user, not the streamer, so the scraper drops it.
  • Clip titles are free text from viewers. One of the top clips today was titled ".". Don't build a keyword report on clip titles and expect much.

Step 5: Which categories are hot right now

/api/v1/subcategories is a standard Laravel-style paginated list (current_page, next_page_url, total). Each item has a viewers total, and the list comes back ordered by it:

def categories(pages=1, per_page=25):
    out = []
    for p in range(1, pages + 1):
        d = get_json("/api/v1/subcategories", {"limit": per_page, "page": p})
        for c in d.get("data") or []:
            out.append({"slug": c["slug"], "name": c["name"], "viewers": c.get("viewers")})
        if not d.get("next_page_url"):
            break
    return out

At 09:00 UTC on a Wednesday:

  88,062  Just Chatting
  77,085  Grand Theft Auto V (GTA)
  49,870  IRL
  34,218  Slots & Casino
  32,938  PUBG Mobile
  26,039  Counter-Strike 2
  14,815  Call of Duty: Modern Warfare 4
  10,959  Music Stations

Those totals swing a lot with time of day. GTA at 77k is mostly a handful of large roleplay streams. One streamer going offline can move a category by 10%. A single reading tells you very little, which brings us to the tracker.

Step 6: A SQLite tracker for followers and live viewers

Two tables: one row per channel per run, and one row per category per run. SQLite is plenty for this. A year of hourly snapshots for 50 channels is about 440,000 rows.

SCHEMA = """
CREATE TABLE IF NOT EXISTS channel_snap (
  ts TEXT, slug TEXT, followers INTEGER, is_live INTEGER, viewers INTEGER,
  category TEXT, title TEXT, PRIMARY KEY (ts, slug));
CREATE TABLE IF NOT EXISTS category_snap (
  ts TEXT, slug TEXT, viewers INTEGER, PRIMARY KEY (ts, slug));
"""

def track(slugs, db, top_categories=25):
    con = sqlite3.connect(db)
    con.executescript(SCHEMA)
    ts = datetime.now(timezone.utc).isoformat(timespec="seconds")
    for s in slugs:
        try:
            c = channel(s)
        except NotFound:
            print(f"  skip {s}: channel not found (renamed or banned?)", file=sys.stderr)
            continue
        if c["is_live"]:
            ls = livestream(s)          # uncached, fresher viewer count
            if ls:
                c["viewers"] = ls.get("viewer_count", c["viewers"])
        con.execute("INSERT OR REPLACE INTO channel_snap VALUES (?,?,?,?,?,?,?)",
                    (ts, c["slug"], c["followers"], int(c["is_live"]), c["viewers"],
                     c["stream_category"], c["stream_title"]))
    for cat in categories(pages=1, per_page=top_categories):
        con.execute("INSERT OR REPLACE INTO category_snap VALUES (?,?,?)", (ts, cat["slug"], cat["viewers"]))
    con.commit()
    con.close()

The report uses window functions (SQLite 3.25+, which any current Python ships with) to compare each channel's first and latest snapshot and pull peak viewers and live ratio in one query:

WITH r AS (
  SELECT slug, ts, followers, is_live, viewers,
         ROW_NUMBER() OVER (PARTITION BY slug ORDER BY ts)      AS first_n,
         ROW_NUMBER() OVER (PARTITION BY slug ORDER BY ts DESC) AS last_n,
         COUNT(*)     OVER (PARTITION BY slug)                  AS snaps,
         MAX(viewers) OVER (PARTITION BY slug)                  AS peak,
         SUM(is_live) OVER (PARTITION BY slug)                  AS live_snaps
  FROM channel_snap)
SELECT a.slug, a.followers, b.followers, a.ts, b.ts, b.snaps, b.peak, b.live_snaps
FROM r a JOIN r b ON a.slug = b.slug AND a.first_n = 1 AND b.last_n = 1
ORDER BY b.followers - a.followers DESC;

I tracked four big channels, three snapshots 15 minutes apart:

python3 kick_scraper.py track xqc adinross amouranth trainwreckstv --db kick.db
python3 kick_scraper.py report --db kick.db
channel           followers   change   per day  peak viewers  live/snaps
xqc               1,392,646     +324    +15364         8,989  3/3
adinross          2,765,006     +218    +10338             0  0/3
trainwreckstv       682,165      +19      +901             0  0/3
amouranth           283,381      +12      +569             0  0/3

category viewer swings (first vs latest snapshot):
  just-chatting                  88,062 ->    76,231  (-11,831)
  grand-theft-auto-v             77,085 ->    75,550  (-1,535)
  irl                            49,870 ->    47,120  (-2,750)
  slots                          34,218 ->    34,601  (+383)
  counter-strike-2               26,039 ->    30,788  (+4,749)
  pubg-mobile                    32,938 ->    22,344  (-10,594)
  dota-2                          9,488 ->    14,949  (+5,461)
  call-of-duty-modern-warfare-4   14,815 ->    14,278  (-537)

In 30 minutes, xQc gained 324 followers while live, and Adin Ross gained 218 while offline. Follower growth doesn't stop when the stream ends, and that's exactly the kind of thing one snapshot can't show you. The "+15,364 per day" column is a naive extrapolation from a half-hour window during a live stream. It will overshoot, so wait for a few days of data before you trust the rate. peak viewers is the highest of my three readings, not Kick's real peak. Sample more often if you care about peaks.

The category section shows how noisy live totals are. Just Chatting lost 11,831 viewers and PUBG Mobile lost 10,594 in half an hour, while Dota 2 gained 5,461. Those are a few big streams starting and ending, not trends.

For real use, run it from cron. Every 15 minutes is enough to catch peak viewers without hammering anything. Followers alone only need a daily run.

*/15 * * * * cd ~/kick && python3 kick_scraper.py track xqc adinross amouranth trainwreckstv >> track.log 2>&1

With 15-minute snapshots you can answer real questions in SQL: average viewers per category per streamer, how many hours a week each channel is live, and whether a category switch (Just Chatting to GTA, for example) brings viewers or loses them.

Pitfalls checklist

  • Undocumented endpoints. /api/v1 and /api/v2 are the website's internal API. Not every path exists in both versions (/api/v1/channels/<slug>/videos returns 404, while the v2 path works). Check required keys and fail loudly.
  • Query-string robots rules. Don't send sort=, query=, filter= and similar parameters to kick.com. Sort locally.
  • Edge caching. Channel objects are cached for 15 seconds and clip lists for up to four hours. Only /livestream is uncached. Know how old your data might be before you call something "real time."
  • Units and types. VOD duration is in milliseconds and clip duration is in seconds. followers_count is sometimes a string. There are two timestamp formats, both UTC.
  • Cloudflare. If you get HTML instead of JSON, stop. Lower your rate, and never use challenge solvers.
  • Privacy. Channel-level counters are fine. Chat logs, clip creators, and gift leaderboards are about individual viewers, so leave them out unless you have a clear, legitimate reason.
  • Official first. If you only need live status, title, and category for a list of channels, the official Kick API's GET /public/v1/channels (up to 50 slugs per call) with an app token is the sturdier choice.

When DIY stops being worth it

The script above is about 300 lines and works well for tracking a few dozen channels. Where it gets tedious is refreshing individual clips at scale: one request per clip, the cached list endpoint lagging behind, and placeholder fields you only notice when your data looks wrong. For that, I run ScrapeAtlas*. Its Kick endpoint is GET /v1/kick/clip. You give it a clip URL (kick.com/<channel>/clips/<clip_id>, or the legacy ?clip= form), and it returns that one public clip with current view and like counts, VOD offset, category, and channel, plus a coverage block that tells you whether the result is complete:

import os, requests

r = requests.get(
    "https://api.scrapeatlas.com/v1/kick/clip",
    params={"url": "https://kick.com/xqc/clips/clip_01M609K1SMT5AQCC1J627KBVAM"},
    headers={"x-api-key": os.environ["SCRAPEATLAS_API_KEY"]},
    timeout=30,
)
data = r.json()
print(data["clip"]["views"], data["clip"]["likes"], data["clip"]["vod_starts_at"])
print(data["coverage"])  # {"source": "public_api", "complete": true, "warnings": []}

To be clear, that's the only Kick endpoint: clips. Channel stats, VODs, and category viewers still come from the DIY code above (or the official API), and those parts are the cheap ones to run yourself.

*I build it.

Want more #python & #sqlite deep dives?

Join 6,178+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

More Posts

Stop trusting verdicts your policy no longer supports

VEACESLAV - Dec 1

Dashboard Operasional Armada Rental Mobil dengan Python + FastAPI

Masbadar - Mar 12

The Zero-Net-Loss Fleet & The Mercenary Squad: A Live AI Economy

DEVPlank - Aug 4

When One Python Process Fails, You Need to See All of Them

Tom Smithverified - Nov 23

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelski - Mar 19
chevron_left
279 Points • 21 Badges
6Posts
0Comments

Related Jobs

View all jobs →

Commenters (This Week)

18 comments
5 comments

Contribute meaningful comments to climb the leaderboard and earn badges!