# SocialCrawl API: twitch endpoints # Base URL: https://www.socialcrawl.dev # Auth: x-api-key header # Full docs: https://www.socialcrawl.dev/docs/twitch ## GET /v1/twitch/profile Get Twitch streamer profile Credit cost: 1 (standard) Parameters: - handle (required): Twitch username curl -G "https://www.socialcrawl.dev/v1/twitch/profile" \ --data-urlencode "handle=ninja" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/twitch/clip Get Twitch clip details Credit cost: 1 (standard) Parameters: - url (required): Full URL of the Twitch clip curl -G "https://www.socialcrawl.dev/v1/twitch/clip" \ --data-urlencode "url=https://www.twitch.tv/ninja/clip/BeautifulSolidYamOSkomodo-NXBFNORy-qFIXZ9R" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/twitch/user/videos List a Twitch user's videos Credit cost: 1 (standard) Parameters: - handle (required): Twitch username. - filter_by (optional, enum: HIGHLIGHT | UPLOAD): Filter the returned videos by type: `HIGHLIGHT` or `UPLOAD`. (Archived past broadcasts are not currently available upstream.) - sort_by (optional, enum: TIME | VIEWS): Sort order: `TIME` (newest first) or `VIEWS`. - since (optional, string): Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off each page. This list is not in date order, so the walk does not stop at the date: keep following `next_cursor`, and each page costs what a page costs even when every row on it is filtered out. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`. - until (optional, string): Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. Newer rows are left off each page and the walk does not stop, so older pages follow. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`. curl -G "https://www.socialcrawl.dev/v1/twitch/user/videos" \ --data-urlencode "handle=ishowspeed" \ -H "x-api-key: YOUR_API_KEY" ## GET /v1/twitch/user/schedule Get a Twitch user's stream schedule Credit cost: 1 (standard) Parameters: - handle (required): Twitch username. curl -G "https://www.socialcrawl.dev/v1/twitch/user/schedule" \ --data-urlencode "handle=kaicenat" \ -H "x-api-key: YOUR_API_KEY"