Handles API

Live Twitch posts

GEThttps://api.handlesapi.com/v1/scrape/twitch/posts
2 creditsscrape:liveLive call

The GET /v1/scrape/twitch/posts endpoint of Handles API (Live scrape): Live Twitch posts. One call costs 2 credits (a live read of the platform) and needs the scrape:live scope. A success returns JSON as { data, meta }.

A live read of the latest VODs and clips of any public Twitch account, in the catalog or not. The profile block and the feed are both read from Twitch at request time, and every platform returns the same item shape, so a client written for one works on the others.

This is a sensitive scope. Keys are not granted it by default, and calls are audited.

Metered as a live call: it counts against the separate live-per-minute bucket as well as your normal rate limit, because it reaches an upstream source.

  • Cost: 2 live units per call (one profile read plus one feed read), drawn against the live-per-minute bucket.
  • limit is 1 to 30, default 20.
  • A metric the platform does not publish is null, never 0. A video with no likes is 0; a platform with no like counter is null.
  • created_at is ISO 8601 UTC, or null when the source gives no date. id is always a string.
  • An account that exists but has nothing to show is a 200 with items [] and insufficient_reason no_posts. A private or protected account is a 200 with items [] and insufficient_reason protected. An account that exists but publishes no public feed (a Telegram group or chat) is a 200 with items [] and insufficient_reason no_public_feed.
  • Errors: 404 not_found when the account does not exist; 503 upstream_blocked with Retry-After when the source refuses our reader; 503 upstream_busy with Retry-After when the source has no capacity; 503 upstream_timeout or upstream_error when it is slow or unreachable.
  • Twitch serves only the latest page. cursor is rejected with 422 invalid_request and details.cursor = not_supported.
  • type is vod or clip. extra.duration_s and extra.game describe the item; VODs also carry extra.broadcast_type.
  • Top-level data.live is the current stream: {is_live, viewers, title, game, started_at}. When the channel is offline, is_live is false and the other fields are null.
  • Only views are published for Twitch items; every other metric is null.

Request

curl "https://api.handlesapi.com/v1/scrape/twitch/posts?handle=shroud" \
  -H "Authorization: Bearer $HANDLES_API_KEY"

Set HANDLES_API_KEY to a key from your dashboard. Keys start with hk_live_.

Parameters

NameInTypeRequiredDescriptionExample
handlequerystringRequiredTwitch login name. A twitch.tv channel URL is accepted and stripped.shroud
limitqueryintegerOptionalItems to return, 1 to 30. Default 20.default: 2010
cursorquerystringOptionalNot supported on Twitch: only the latest page exists. Sending it answers 422 invalid_request with details.cursor = not_supported.-

Response

Success is always { data, meta }.

200 OK
{
  "data": {
    "platform": "twitch",
    "handle": "shroud",
    "profile": {
      "exists": true,
      "identity": {
        "id": "37402112",
        "handle": null,
        "name": "shroud",
        "avatar_url": null,
        "url": "https://www.twitch.tv/shroud",
        "object": "channel"
      },
      "audience": {
        "count": 10900000,
        "metric": "followers",
        "precision": "exact"
      },
      "flags": {
        "verified": null,
        "private": false,
        "nsfw": null
      },
      "live": {
        "state": "live",
        "source": "live:twitch_gql",
        "read_at": "2026-11-28T14:05:31.204Z",
        "detail": null,
        "secondary": {}
      }
    },
    "items": [
      {
        "id": "2301234567",
        "url": "https://www.twitch.tv/videos/2301234567",
        "created_at": "2026-11-26T19:00:00.000Z",
        "type": "vod",
        "text": "Example stream title",
        "thumbnail_url": "https://static-cdn.jtvnw.net/example-vod-thumb.jpg",
        "metrics": {
          "views": 52400,
          "likes": null,
          "comments": null,
          "shares": null,
          "reposts": null,
          "quotes": null,
          "forwards": null,
          "reactions": null
        },
        "extra": {
          "duration_s": 14820,
          "game": "Counter-Strike 2",
          "broadcast_type": "archive"
        }
      },
      {
        "id": "ExampleClipSlug-abc123",
        "url": "https://www.twitch.tv/shroud/clip/ExampleClipSlug-abc123",
        "created_at": "2026-11-25T21:12:30.000Z",
        "type": "clip",
        "text": "Example clip title",
        "thumbnail_url": "https://static-cdn.jtvnw.net/example-clip-thumb.jpg",
        "metrics": {
          "views": 8310,
          "likes": null,
          "comments": null,
          "shares": null,
          "reposts": null,
          "quotes": null,
          "forwards": null,
          "reactions": null
        },
        "extra": {
          "duration_s": 28,
          "game": "Counter-Strike 2"
        }
      }
    ],
    "live": {
      "is_live": true,
      "viewers": 18240,
      "title": "Example live stream title",
      "game": "Counter-Strike 2",
      "started_at": "2026-11-28T14:02:11.000Z"
    },
    "paging": {
      "supported": false,
      "next_cursor": null
    },
    "insufficient_data": false,
    "insufficient_reason": null
  },
  "meta": {
    "request_id": "req_9f2c41a8b3d5",
    "generated_at": "2026-08-23T09:14:02.317Z",
    "took_ms": 42,
    "cache_age_s": 0
  }
}

Response headers

Every successful response carries these headers.

HeaderTypeDescription
X-Request-IdstringQuote this to support.
X-RateLimit-LimitintegerRequests allowed in the current one-minute window.
X-RateLimit-RemainingintegerRequests left in the current one-minute window.
X-RateLimit-ResetintegerUnix seconds at which the current window resets.
X-Credits-CostintegerCredits this call used.
X-Credits-WaivedenumPresent when the call was free although it succeeded: empty_result (no result) or insufficient_data.
X-Credits-RemainingintegerPlan credits left in the current period.
X-Credits-Period-EndstringWhen the current period ends (ISO 8601).

Errors

StatusError codeWhen
401unauthorizedNo key was sent, or the key is unknown or revoked.
402quota_exceededYour plan's credits for this period are used up and overage is off (or its cap is reached). Waiting does not help: upgrade, or turn on overage in the dashboard.
404not_foundThe addressed resource does not exist.
422invalid_requestnot_supported_liveA parameter is malformed, out of range or mutually exclusive with another (invalid_request). details names the offending fields, for example cursor: not_supported on a live posts platform that only serves its latest page. not_supported_live is a documented limit rather than a bad parameter: the platform publishes nothing this route can read live (LinkedIn posts), so do not retry.
429rate_limitedlive_limit_reachedToo many requests. rate_limited clears when the minute window resets (see Retry-After); live_limit_reached (Free plan) clears at 00:00 UTC.Also sends Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.
500internal_errorSomething failed on our side. The call was not charged; quote the request_id to support.
503upstream_timeoutupstream_errorupstream_busyupstream_blockedplatform_unavailableservice_unavailableThe call could not be served right now and was not charged. upstream_timeout / upstream_error: a data source was slow or failed, retry with backoff. upstream_busy / upstream_blocked: live capacity is busy or the platform is refusing reads, wait Retry-After. platform_unavailable: that platform cannot be read right now. service_unavailable: retry shortly.

Failures use the error envelope. Branch on error.code, never on the message.