Twitch
Twitch Clip API
One clip's metadata plus directly-downloadable MP4 URLs at every available quality: title, view count, duration, creator, the broadcaster and the game. Costs 1 credit per request.
POST/api/v1/twitch/clip
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonclipstringrequiredClip slug or clip URL. Accepts clips.twitch.tv/<slug> and twitch.tv/<channel>/clip/<slug> as well as the bare slug.
Example: DeliciousDelightfulPicklesWOOP
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.twitch.clip("DeliciousDelightfulPicklesWOOP")
print(result)Response
"clip_id": "3942697259",
"slug": "DeliciousDelightfulPicklesWOOP",
"title": "xqc makes the wrong choice",
"view_count": 949951,
"created_at": "2020-12-09T19:18:10Z",
"duration_seconds": 44,
"game_name": "Cyberpunk 2077",
"thumbnail_url": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/ce4b4ef1-4e8d-4391-bff6-2bc4c5506a4d/landscape/thumb/thumb-0000000000-1920x1080.jpg",
"source_video_id": null,
},
"response_time": 439
}