What You'll Learn
- • Setting up your development environment
- • Installing the required HTTP client
- • Authenticating with the ScrapeCreators API
- • Making requests to Twitch
- • Handling responses and errors
- • Best practices for production use
Tutorial · Twitch
📊 R Step-by-stepExtract videos data from Twitch. Real code, real responses, real production patterns — paste it into your project and ship.
Learn how to scrape Twitch videos using R. This comprehensive guide will walk you through the entire process, from setup to implementation.
First, you'll need a ScrapeCreators API key to authenticate your requests.
Sign up at app.scrapecreators.com to get your free API key with 100 requests.
Make sure you have the following installed:
httr is a user-friendly HTTP client for R
install.packages("httr")Now let's make a request to the Twitch API using R. Replace YOUR_API_KEY with your actual API key.
library(httr)
library(jsonlite)
API_KEY <- "YOUR_API_KEY"
BASE_URL <- "https://api.scrapecreators.com"
ENDPOINT_PATH <- "/v1/twitch/user/videos"
scrape <- function() {
# Build query parameters
params <- list(
"handle" = "ishowspeed",
"filter_by" = "example_value",
"sort_by" = "example_value"
)
tryCatch({
response <- GET(
url = paste0(BASE_URL, ENDPOINT_PATH),
add_headers(
"x-api-key" = API_KEY,
"Content-Type" = "application/json"
),
query = params
)
if (status_code(response) == 200) {
data <- fromJSON(rawToChar(response$content))
cat("Response:
")
print(data)
return(data)
} else {
stop(paste("HTTP", status_code(response), ":", rawToChar(response$content)))
}
}, error = function(e) {
cat("Error:", e$message, "
")
return(NULL)
})
}
# Usage
result <- scrape()This endpoint accepts the following parameters:
handleRequired(string)Twitch handle
Example: ishowspeed
filter_byOptional(select)Filter by
sort_byOptional(select)Sort by
Execute your script to test the API connection. You should see a JSON response with Twitch videos data.
✅ Success: You should receive a structured JSON response containing the requested data.
Here's an example of the JSON response you'll receive:
{
"success": true,
"credits_remaining": 49998363426,
"id": "51496027",
"isLive": true,
"currentViewersCount": 2740,
"stream": {
"id": "319166855259",
"createdAt": "2026-05-01T16:44:37Z",
"game": {
"id": "21779",
"displayName": "League of Legends",
"__typename": "Game"
},
"type": "live",
"viewersCount": 2740,
"__typename": "Stream",
"tags": [
{
"id": "fft:CHANNEL:51496027:0",
"name": "English",
"__typename": "FreeformTag"
},
{
"id": "fft:CHANNEL:51496027:1",
"name": "loltyler1",
"__typename": "FreeformTag"
},
{
"id": "fft:CHANNEL:51496027:2",
"name": "tyler1",
"__typename": "FreeformTag"
}
]
},
"handle": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-150x150.png",
"bannerImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/303b0767-0fb4-4a9f-b8a1-2d8b99f24630-profile_banner-480.png",
"description": "Season 6 Challenger | Most REFORMED Player NA | #1 Draven World ",
"followers": 5469372,
"x": "https://x.com/loltyler1?mx=2",
"instagram": "https://www.instagram.com/tyler1_alpha/#",
"youtube": "https://www.youtube.com/channel/UCwV_0HmQkRrTcrReaMxPeDw",
"tiktok": "https://www.tiktok.com/@loltyler1",
"isPartner": true,
"allVideos": [
{
"animatedPreviewURL": "https://d1m7jfoe9zdc1j.cloudfront.net/f2ca91ee909630bdb3df_loltyler1_319166855259_1777653877/storyboards/2761630321-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/21779-40x56.jpg",
"id": "21779",
"slug": "league-of-legends",
"displayName": "League of Legends",
"name": "League of Legends",
"__typename": "Game"
},
"id": "2761630321",
"lengthSeconds": 931,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://vod-secure.twitch.tv/_404/404_processing_320x180.png",
"publishedAt": "2026-05-01T16:44:42Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "TRY MIGHT ! give NEVER ! BACKS NOT DOWN !! held high for MOMENT WAIT !!! tick ticks ticks ... CLOCK BY PATIENT THIN WAITER !! tick ... NOW !",
"viewCount": 0,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
},
{
"animatedPreviewURL": "https://d1m7jfoe9zdc1j.cloudfront.net/1f14cd10a4a4ed168c39_loltyler1_319156969051_1777592967/storyboards/2761107582-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/509658-40x56.jpg",
"id": "509658",
"slug": "just-chatting",
"displayName": "Just Chatting",
"name": "Just Chatting",
"__typename": "Game"
},
"id": "2761107582",
"lengthSeconds": 10880,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://static-cdn.jtvnw.net/cf_vods/d1m7jfoe9zdc1j/1f14cd10a4a4ed168c39_loltyler1_319156969051_1777592967//thumb/thumb0-320x180.jpg",
"publishedAt": "2026-04-30T23:49:32Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "AT&T Annihilator Cup DRAFT !! 270K PRIZE POOL !!! PICKING MY TEAM ! WILL DOMINATE !",
"viewCount": 63633,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
},
{
"animatedPreviewURL": "https://d2vi6trrdongqn.cloudfront.net/5d5e1e108e49dbfa2f1d_loltyler1_318378430300_1777589112/storyboards/2761061656-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/509658-40x56.jpg",
"id": "509658",
"slug": "just-chatting",
"displayName": "Just Chatting",
"name": "Just Chatting",
"__typename": "Game"
},
"id": "2761061656",
"lengthSeconds": 3734,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://static-cdn.jtvnw.net/cf_vods/d2vi6trrdongqn/5d5e1e108e49dbfa2f1d_loltyler1_318378430300_1777589112//thumb/thumb0-320x180.jpg",
"publishedAt": "2026-04-30T22:45:16Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "AT&T Annihilator Cup DRAFT !! 270K PRIZE POOL !!! PICKING MY TEAM ! WILL DOMINATE !",
"viewCount": 41156,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
},
{
"animatedPreviewURL": "https://d1m7jfoe9zdc1j.cloudfront.net/b138062491d7a3e95bac_loltyler1_318982936921_1777565515/storyboards/2760767137-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/21779-40x56.jpg",
"id": "21779",
"slug": "league-of-legends",
"displayName": "League of Legends",
"name": "League of Legends",
"__typename": "Game"
},
"id": "2760767137",
"lengthSeconds": 21410,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://static-cdn.jtvnw.net/cf_vods/d1m7jfoe9zdc1j/b138062491d7a3e95bac_loltyler1_318982936921_1777565515//thumb/thumb0-320x180.jpg",
"publishedAt": "2026-04-30T16:12:00Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "DESTINE GREATER BEYOND ! stars tree sky bird PLANE AIR WIND !! FREAK NATURE !! NOT EQUALED ME EVER BE BUD !!! better makes mind matter ME !!",
"viewCount": 127671,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
},
{
"animatedPreviewURL": "https://d1m7jfoe9zdc1j.cloudfront.net/12d3067f4cc9350a86d8_loltyler1_319027750618_1777473066/storyboards/2759919128-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/21779-40x56.jpg",
"id": "21779",
"slug": "league-of-legends",
"displayName": "League of Legends",
"name": "League of Legends",
"__typename": "Game"
},
"id": "2759919128",
"lengthSeconds": 53470,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://static-cdn.jtvnw.net/cf_vods/d1m7jfoe9zdc1j/12d3067f4cc9350a86d8_loltyler1_319027750618_1777473066//thumb/thumb0-320x180.jpg",
"publishedAt": "2026-04-29T14:31:11Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "FINAL ! FRESHNESS ! EQUALED SWAGGER STYLE HANDSOMER ! TALKS NOT THAT BUT GAME RESET BACK TIME BEFORE THAN DINO STORM BRIDGE GOOOOOO ! peak",
"viewCount": 304043,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
},
{
"animatedPreviewURL": "https://d1m7jfoe9zdc1j.cloudfront.net/c7cd1a2f37c7a60a1591_loltyler1_318959926233_1777423137/storyboards/2759541264-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/12924-40x56.jpg",
"id": "12924",
"slug": "warcraft-iii",
"displayName": "Warcraft III",
"name": "Warcraft III",
"__typename": "Game"
},
"id": "2759541264",
"lengthSeconds": 10760,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://static-cdn.jtvnw.net/cf_vods/d1m7jfoe9zdc1j/c7cd1a2f37c7a60a1591_loltyler1_318959926233_1777423137//thumb/thumb0-320x180.jpg",
"publishedAt": "2026-04-29T00:39:02Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "GRIND GRIND GRIDNER GRIND HAHASAHHA NEVER NOT STOPS WANT GIVENS WORLD LUCKY MAKE OWNED !! way ONLY KNOW ! go T1 GOOOOOOOOO !! am calm he be",
"viewCount": 60444,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
},
{
"animatedPreviewURL": "https://d3fi1amfgojobc.cloudfront.net/6d3d5927c9a5d9ca6122_loltyler1_317112336997_1777391301/storyboards/2759165151-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/21779-40x56.jpg",
"id": "21779",
"slug": "league-of-legends",
"displayName": "League of Legends",
"name": "League of Legends",
"__typename": "Game"
},
"id": "2759165151",
"lengthSeconds": 17292,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://static-cdn.jtvnw.net/cf_vods/d3fi1amfgojobc/6d3d5927c9a5d9ca6122_loltyler1_317112336997_1777391301//thumb/thumb0-320x180.jpg",
"publishedAt": "2026-04-28T15:48:27Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "Tyler1 All-Stars presented by Opera GX | Week 7 | !opera",
"viewCount": 248019,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
},
{
"animatedPreviewURL": "https://d1m7jfoe9zdc1j.cloudfront.net/d9f428a1148d2b66284e_loltyler1_318938623449_1777318644/storyboards/2758551115-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/21779-40x56.jpg",
"id": "21779",
"slug": "league-of-legends",
"displayName": "League of Legends",
"name": "League of Legends",
"__typename": "Game"
},
"id": "2758551115",
"lengthSeconds": 31950,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://static-cdn.jtvnw.net/cf_vods/d1m7jfoe9zdc1j/d9f428a1148d2b66284e_loltyler1_318938623449_1777318644//thumb/thumb0-320x180.jpg",
"publishedAt": "2026-04-27T19:37:29Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "oh golly gee willikers ! BIG T ANGER RAGE RED FARM MAD ! takes cover path destruct INBOUND ... BEEP BEEEEEP . booooooooom ! flood ! NOT WALK",
"viewCount": 230755,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
},
{
"animatedPreviewURL": "https://d1m7jfoe9zdc1j.cloudfront.net/b1daf9e56b1f6688b7ae_loltyler1_318980373082_1777218466/storyboards/2757629396-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/21779-40x56.jpg",
"id": "21779",
"slug": "league-of-legends",
"displayName": "League of Legends",
"name": "League of Legends",
"__typename": "Game"
},
"id": "2757629396",
"lengthSeconds": 27760,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://static-cdn.jtvnw.net/cf_vods/d1m7jfoe9zdc1j/b1daf9e56b1f6688b7ae_loltyler1_318980373082_1777218466//thumb/thumb0-320x180.jpg",
"publishedAt": "2026-04-26T15:47:51Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "AH yes so REFRESHER AND NEW BE HEALTH WISE HERE STAY FOR ROAD THE CLAIM NUMBER 1 !!!!!!!!! inspire .. intelligent . ATHLETIC ! GOTS ALL !!",
"viewCount": 306116,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
},
{
"animatedPreviewURL": "https://d1m7jfoe9zdc1j.cloudfront.net/d961772dff81cebda17b_loltyler1_319047137243_1777048187/storyboards/2755970771-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/21779-40x56.jpg",
"id": "21779",
"slug": "league-of-legends",
"displayName": "League of Legends",
"name": "League of Legends",
"__typename": "Game"
},
"id": "2755970771",
"lengthSeconds": 44720,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://static-cdn.jtvnw.net/cf_vods/d1m7jfoe9zdc1j/d961772dff81cebda17b_loltyler1_319047137243_1777048187//thumb/thumb0-320x180.jpg",
"publishedAt": "2026-04-24T16:29:52Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "LOCK LOAD GOOOO ! NO STOP FREIGHT TRAIN PAIN DELIVER POWER HERE ! WAY ONE DIRECTION TRAVELED STORMER !!! UNLEASH !! boom boom POW ! winner",
"viewCount": 214828,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
},
{
"animatedPreviewURL": "https://d1m7jfoe9zdc1j.cloudfront.net/16ceba5ec34a17f14025_loltyler1_318927479642_1776972007/storyboards/2755316272-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/55453844_IGDB-40x56.jpg",
"id": "55453844",
"slug": "street-fighter-6",
"displayName": "Street Fighter 6",
"name": "Street Fighter 6",
"__typename": "Game"
},
"id": "2755316272",
"lengthSeconds": 24070,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://static-cdn.jtvnw.net/cf_vods/d1m7jfoe9zdc1j/16ceba5ec34a17f14025_loltyler1_318927479642_1776972007//thumb/thumb0-320x180.jpg",
"publishedAt": "2026-04-23T19:20:12Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "SICKNESS ! STYLE ! SWAGGY ! BIG T SO ALL MORE PLUS BEYOND LIMIT THINK BRAIN IMAGINE SPEED QUICKS TALL HANDSOME COOL BETTER ! insaned",
"viewCount": 114616,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
},
{
"animatedPreviewURL": "https://d1m7jfoe9zdc1j.cloudfront.net/2ba525c1c8e166810ed2_loltyler1_318910193498_1776874059/storyboards/2754386411-strip-0.jpg",
"game": {
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/21779-40x56.jpg",
"id": "21779",
"slug": "league-of-legends",
"displayName": "League of Legends",
"name": "League of Legends",
"__typename": "Game"
},
"id": "2754386411",
"lengthSeconds": 27420,
"owner": {
"displayName": "loltyler1",
"id": "51496027",
"login": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"previewThumbnailURL": "https://static-cdn.jtvnw.net/cf_vods/d1m7jfoe9zdc1j/2ba525c1c8e166810ed2_loltyler1_318910193498_1776874059//thumb/thumb0-320x180.jpg",
"publishedAt": "2026-04-22T16:07:44Z",
"self": {
"isRestricted": false,
"viewingHistory": null,
"__typename": "VideoSelfEdge"
},
"title": "RAINY EQUALS DAYS HAPPY SKY LIFE WORLD EARTH COLLIDE !!! be OUTCOME ? WELL KNOW MUST NOW PROBLEM SOLVED CAUSED . ELEMNTARY ! woot SMARTS !",
"viewCount": 122255,
"resourceRestriction": null,
"contentTags": [],
"__typename": "Video"
}
],
"featuredClips": [
{
"id": "2907296184",
"slug": "CogentSpeedyWallabyDxCat-nm23_xWWFTxoPI0C",
"clipTitle": "ewc",
"clipViewCount": 19427,
"curator": {
"id": "24179021",
"login": "testrox",
"displayName": "Testrox",
"__typename": "User"
},
"clipGame": {
"id": "55453844",
"slug": "street-fighter-6",
"name": "Street Fighter 6",
"displayName": "Street Fighter 6",
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/55453844_IGDB-52x72.jpg",
"__typename": "Game"
},
"broadcaster": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"thumbnailURL": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/53f846ec-21aa-49e4-92e0-3e93b61726f7/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"createdAt": "2025-07-05T08:09:03Z",
"durationSeconds": 25,
"isFeatured": true,
"guestStarParticipants": {
"host": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-300x300.png",
"primaryColorHex": null,
"description": "Season 6 Challenger | Most REFORMED Player NA | #1 Draven World ",
"__typename": "User"
},
"guests": [],
"sessionIdentifier": "2xmd2itvLAiTeLZsWCYYpifxYv1",
"__typename": "GuestStarParticipants"
},
"__typename": "Clip"
},
{
"id": "1506129014",
"slug": "EncouragingIcyAppleTF2John-tecpVfRhclwr732O",
"clipTitle": "wc3 old",
"clipViewCount": 17750,
"curator": {
"id": "24179021",
"login": "testrox",
"displayName": "Testrox",
"__typename": "User"
},
"clipGame": {
"id": "12924",
"slug": "warcraft-iii",
"name": "Warcraft III",
"displayName": "Warcraft III",
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/12924-52x72.jpg",
"__typename": "Game"
},
"broadcaster": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"thumbnailURL": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/abc35e9a-6221-48e9-a89e-66f145745d73/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"createdAt": "2025-04-16T15:42:16Z",
"durationSeconds": 26,
"isFeatured": true,
"guestStarParticipants": {
"host": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-300x300.png",
"primaryColorHex": null,
"description": "Season 6 Challenger | Most REFORMED Player NA | #1 Draven World ",
"__typename": "User"
},
"guests": [],
"sessionIdentifier": "2r8TZ1KN83eelpMAsED4TSkC4tr",
"__typename": "GuestStarParticipants"
},
"__typename": "Clip"
},
{
"id": "745859129",
"slug": "TemperedWimpyEchidnaPeteZaroll-0p2Iv91m00Gv4jKj",
"clipTitle": "T1 Wins The Duel And Becomes Guild Master",
"clipViewCount": 448790,
"curator": {
"id": "87717523",
"login": "raapid",
"displayName": "Raapid",
"__typename": "User"
},
"clipGame": {
"id": "18122",
"slug": "world-of-warcraft",
"name": "World of Warcraft",
"displayName": "World of Warcraft",
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/18122-52x72.jpg",
"__typename": "Game"
},
"broadcaster": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"thumbnailURL": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/a8936fca-673e-4b96-8255-8b6178f52036/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"createdAt": "2025-01-15T21:56:49Z",
"durationSeconds": 29,
"isFeatured": true,
"guestStarParticipants": {
"host": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-300x300.png",
"primaryColorHex": null,
"description": "Season 6 Challenger | Most REFORMED Player NA | #1 Draven World ",
"__typename": "User"
},
"guests": [],
"sessionIdentifier": "2r8TZ1KN83eelpMAsED4TSkC4tr",
"__typename": "GuestStarParticipants"
},
"__typename": "Clip"
},
{
"id": "2406267421",
"slug": "CreativeRelievedTofuImGlitch-MSoUxgpoBBVg0Qen",
"clipTitle": "tyler1s baby leaks stream key",
"clipViewCount": 329073,
"curator": {
"id": "19574673",
"login": "wilbo007",
"displayName": "Wilbo007",
"__typename": "User"
},
"clipGame": {
"id": "18122",
"slug": "world-of-warcraft",
"name": "World of Warcraft",
"displayName": "World of Warcraft",
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/18122-52x72.jpg",
"__typename": "Game"
},
"broadcaster": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"thumbnailURL": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/4a4fa56d-4641-4375-beba-ba340d629c8e/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"createdAt": "2024-12-08T01:28:30Z",
"durationSeconds": 52,
"isFeatured": true,
"guestStarParticipants": {
"host": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-300x300.png",
"primaryColorHex": null,
"description": "Season 6 Challenger | Most REFORMED Player NA | #1 Draven World ",
"__typename": "User"
},
"guests": [],
"sessionIdentifier": "2kuZWTHm1UB15dw4ti9zsLsYVPt",
"__typename": "GuestStarParticipants"
},
"__typename": "Clip"
},
{
"id": "1336110669",
"slug": "YawningSpinelessKimchiCorgiDerp-3di77UVcNC_ZeIlU",
"clipTitle": "Tyler being wholesome with Saiyler",
"clipViewCount": 398698,
"curator": {
"id": "73305896",
"login": "palitish",
"displayName": "Palitish",
"__typename": "User"
},
"clipGame": {
"id": "21779",
"slug": "league-of-legends",
"name": "League of Legends",
"displayName": "League of Legends",
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/21779-52x72.jpg",
"__typename": "Game"
},
"broadcaster": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"thumbnailURL": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/83ef3700-43cf-4dae-ba1f-8a84542a2194/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"createdAt": "2024-08-09T00:27:39Z",
"durationSeconds": 27,
"isFeatured": true,
"guestStarParticipants": {
"host": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-300x300.png",
"primaryColorHex": null,
"description": "Season 6 Challenger | Most REFORMED Player NA | #1 Draven World ",
"__typename": "User"
},
"guests": [],
"sessionIdentifier": "",
"__typename": "GuestStarParticipants"
},
"__typename": "Clip"
},
{
"id": "4206648915",
"slug": "AbnegatePleasantEyeballKreygasm-NjRnNg8J8XrOfk3t",
"clipTitle": "LeMon",
"clipViewCount": 207778,
"curator": {
"id": "130907662",
"login": "amski993",
"displayName": "amski993",
"__typename": "User"
},
"clipGame": {
"id": "21779",
"slug": "league-of-legends",
"name": "League of Legends",
"displayName": "League of Legends",
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/21779-52x72.jpg",
"__typename": "Game"
},
"broadcaster": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"thumbnailURL": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/f0fee579-8a90-47dd-be17-462f70e7e428/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"createdAt": "2023-10-21T01:56:07Z",
"durationSeconds": 17,
"isFeatured": true,
"guestStarParticipants": null,
"__typename": "Clip"
},
{
"id": "4116152252",
"slug": "ComfortableCourageousCheddarLeeroyJenkins-ey0FIl9EZfWwpUaR",
"clipTitle": "pool",
"clipViewCount": 219221,
"curator": {
"id": "27484739",
"login": "xaghant",
"displayName": "Xaghant",
"__typename": "User"
},
"clipGame": {
"id": "116747788",
"slug": "pools-hot-tubs-and-beaches",
"name": "Pools, Hot Tubs, and Beaches",
"displayName": "Pools, Hot Tubs, and Beaches",
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/116747788-52x72.jpg",
"__typename": "Game"
},
"broadcaster": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"thumbnailURL": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/9870e83b-5e1e-4b8e-bef0-528a8f2f9f2f/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"createdAt": "2023-07-23T23:03:51Z",
"durationSeconds": 29,
"isFeatured": true,
"guestStarParticipants": null,
"__typename": "Clip"
},
{
"id": "2674898197",
"slug": "ArborealRockyBunnyPMSTwin-mFJhIPaYAcf17Gi-",
"clipTitle": "KRATOS",
"clipViewCount": 226907,
"curator": {
"id": "140944412",
"login": "paragrips",
"displayName": "paragrips",
"__typename": "User"
},
"clipGame": {
"id": "102007682",
"slug": "god-of-war-ragnarok",
"name": "God of War Ragnarök",
"displayName": "God of War Ragnarök",
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/102007682_IGDB-52x72.jpg",
"__typename": "Game"
},
"broadcaster": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"thumbnailURL": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/c22d6815-5de4-4857-9780-0b868400fb35/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"createdAt": "2022-11-09T21:16:51Z",
"durationSeconds": 39,
"isFeatured": true,
"guestStarParticipants": null,
"__typename": "Clip"
},
{
"id": "216525791",
"slug": "AntsySavoryWrenchSSSsss-OAsn_OhSqFZN2z7d",
"clipTitle": "OMEGALUL",
"clipViewCount": 356265,
"curator": {
"id": "93954400",
"login": "question4ble_",
"displayName": "question4ble_",
"__typename": "User"
},
"clipGame": {
"id": "509658",
"slug": "just-chatting",
"name": "Just Chatting",
"displayName": "Just Chatting",
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/509658-52x72.jpg",
"__typename": "Game"
},
"broadcaster": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"thumbnailURL": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/af51d093-4ec7-4c62-bb65-c87439163451/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"createdAt": "2022-07-05T01:45:16Z",
"durationSeconds": 27,
"isFeatured": true,
"guestStarParticipants": null,
"__typename": "Clip"
},
{
"id": "2663525569",
"slug": "FreezingTrustworthyMosquitoMrDestructoid-Wf9k_4iPUfe1jbdf",
"clipTitle": "Thanks RIOT",
"clipViewCount": 119973,
"curator": {
"id": "91138930",
"login": "miketightclock",
"displayName": "MikeTightClock",
"__typename": "User"
},
"clipGame": {
"id": "21779",
"slug": "league-of-legends",
"name": "League of Legends",
"displayName": "League of Legends",
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/21779-52x72.jpg",
"__typename": "Game"
},
"broadcaster": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"thumbnailURL": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/a5137ba2-e46d-4b81-95e4-550287ac1c08/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"createdAt": "2022-02-22T21:23:56Z",
"durationSeconds": 11,
"isFeatured": true,
"guestStarParticipants": null,
"__typename": "Clip"
},
{
"id": "3963898829",
"slug": "ResoluteAmazingPterodactylPanicVis-_LuvrxNtKLawk8JT",
"clipTitle": "Tyler1 Gets His Deadlift PB at 550 lbs",
"clipViewCount": 171296,
"curator": {
"id": "162036167",
"login": "highroii",
"displayName": "HighRoII",
"__typename": "User"
},
"clipGame": {
"id": "509671",
"slug": "fitness-and-health",
"name": "Fitness & Health",
"displayName": "Fitness & Health",
"boxArtURL": "https://static-cdn.jtvnw.net/ttv-boxart/509671-52x72.jpg",
"__typename": "Game"
},
"broadcaster": {
"id": "51496027",
"login": "loltyler1",
"displayName": "loltyler1",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/f3591dbe4ee3d94b-profile_image-50x50.png",
"primaryColorHex": null,
"roles": {
"isPartner": true,
"__typename": "UserRoles"
},
"__typename": "User"
},
"thumbnailURL": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/80276a84-b2dc-4732-b05e-9680999084ca/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"createdAt": "2021-04-19T22:18:32Z",
"durationSeconds": 33,
"isFeatured": true,
"guestStarParticipants": null,
"__typename": "Clip"
}
],
"similarStreamers": [
{
"id": "459567713",
"displayName": "SpectateTyler1",
"login": "spectatetyler1",
"primaryColorHex": "1F69FF",
"profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/184aa4fd-1fd7-42ab-8170-5b98bd2fb37f-profile_image-300x300.png",
"stream": null,
"__typename": "User"
}
]
}Check that your response includes the expected fields:
success(boolean)credits_remaining(number)id(string)isLive(boolean)currentViewersCount(number)Implement comprehensive error handling and retry logic for failed requests. Log errors properly for debugging.
Cache responses when possible to reduce API calls and improve performance. Consider data freshness requirements.
Never expose your API key in client-side code. Use environment variables and secure key management practices.
When scraping multiple videos, consider batching requests to maximize throughput while staying within rate limits.
Use asynchronous processing in R to handle multiple requests concurrently and improve overall performance.
Analyze Twitch videos to understand market trends, competitor analysis, and audience insights.
Track performance metrics, engagement rates, and content trends across Twitch videos.
Identify potential customers and business opportunities throughTwitch data analysis.
Check your API key is correct and properly formatted in the x-api-key header.
You ran out of credits and need to buy more.
The resource might not exist or be private.
Temporary server issue. Implement retry logic with exponential backoff.
ScrapeCreators offers 100 free API calls to get started. After that, pricing starts at $10 for 5k requests with volume discounts available.
Scraping publicly available data is fair game, and we only collect public data. So anything that you can see in an incognito browser is what we collect.
There is no rate limit! So you can scrape as fast as you want!
All API responses are returned in JSON format, making it easy to integrate with any programming language or application.
Yes! This tutorial focuses on core R HTTP concepts that work with any framework. The API calls remain the same regardless of your specific R setup.
For large datasets, implement pagination, use streaming responses where available, and consider storing data in a database for efficient querying.
Ready to ship?
100 free API calls. No credit card. Same endpoint, same response shape.
Same endpoint, different language