Skip to content

Instantly share code, notes, and snippets.

@chuckxD
Last active February 23, 2024 06:40
Show Gist options
  • Star 56 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save chuckxD/377211b3dd3e8ca8dc505500938555eb to your computer and use it in GitHub Desktop.
Save chuckxD/377211b3dd3e8ca8dc505500938555eb to your computer and use it in GitHub Desktop.
ffz/bttv known API end-points quick list
# known bttv api end-points in bettertv (https://github.com/night/betterttv)
# wth is this file?
# vscode rest client extension: https://marketplace.visualstudio.com/items?itemName=humao.rest-client
###
# global
GET https://api.betterttv.net/3/cached/emotes/global
Content-Type: application/json; charset=utf-8
User-agent: "vscode-client"
### curl --request GET --url https://api.betterttv.net/3/cached/emotes/global --header 'content-type: application/json' --header 'user-agent: vscode-client'
# badges
GET https://api.betterttv.net/3/cached/badges
Content-Type: application/json; charset=utf-8
User-agent: "vscode-client"
### curl --request GET --url https://api.betterttv.net/3/cached/emotes/global --header 'content-type: application/json; charset=utf-8' --header 'user-agent: "vscode-client"' --data 'GET https://api.betterttv.net/3/cached/badgesContent-Type: application/json; charset=utf-8User-agent: "vscode-client"'
# list all bttv channel (accound id) emotes
GET https://api.betterttv.net/3/cached/users/twitch/121059319
Content-Type: application/json; charset=utf-8
User-agent: "vscode-client"
### curl --request GET --url https://api.betterttv.net/3/cached/users/twitch/121059319 --header 'content-type: application/json; charset=utf-8' --header 'user-agent: "vscode-client"'
# list all ffz emotes per channel (account id)
GET https://api.betterttv.net/3/cached/frankerfacez/users/twitch/121059319
Content-Type: application/json; charset=utf-8
User-agent: "vscode-client"
### curl --request GET --url https://api.betterttv.net/3/cached/frankerfacez/users/twitch/121059319 --header 'content-type: application/json; charset=utf-8' --header 'user-agent: "vscode-client"'
# changelog(?)
GET https://api.betterttv.net/3/cached/changelog
Content-Type: application/json; charset=utf-8
User-agent: "vscode-client"
### curl --request GET --url https://api.betterttv.net/3/cached/frankerfacez/users/twitch/121059319 --header 'content-type: application/json; charset=utf-8' --header 'user-agent: "vscode-client"' --data 'GET https://api.betterttv.net/3/cached/changelogContent-Type: application/json; charset=utf-8User-agent: "vscode-client"'
# cdn get
GET https://cdn.betterttv.net/emote/5a970ab2122e4331029f0d7e/1x
### curl --request GET --url https://cdn.betterttv.net/emote/5a970ab2122e4331029f0d7e/1x --header 'user-agent: vscode-restclient'
GET https://cdn.betterttv.net/emote/5a970ab2122e4331029f0d7e/2x
### curl --request GET --url https://cdn.betterttv.net/emote/5a970ab2122e4331029f0d7e/2x --header 'user-agent: vscode-restclient'
GET https://cdn.betterttv.net/emote/5a970ab2122e4331029f0d7e/3x
### curl --request GET --url https://cdn.betterttv.net/emote/5a970ab2122e4331029f0d7e/3x --header 'user-agent: vscode-restclient'
# some ffz api end-points from their extension
###
# channel ffz get
GET https://api.frankerfacez.com/v1/room/id/30777889
Content-Type: application/json; charset=utf-8
User-agent: "vscode-client"
### curl --request GET --url https://api.frankerfacez.com/v1/room/id/30777889 --header 'content-type: application/json; charset=utf-8' --header 'user-agent: "vscode-client"'
# cdn get
GET https://cdn.frankerfacez.com/emote/303899/1
### curl --request GET --url https://cdn.frankerfacez.com/emote/303899/1 --header 'user-agent: vscode-restclient'
GET https://cdn.frankerfacez.com/emote/303899/2
### curl --request GET --url https://cdn.frankerfacez.com/emote/303899/2 --header 'user-agent: vscode-restclient'
###
@JaielZeus
Copy link

Thanks

@makedir
Copy link

makedir commented Oct 25, 2022

the betterttv end points are not working anymore, was the api taken down?

@melon095
Copy link

The BetterTTV endpoints are alive and well, however the server will redirect the client back to the homepage if it thinks you are a web browser.

@makedir
Copy link

makedir commented Nov 11, 2022

they were not working when I was making that post with my app but that was changed again it seems. is there a specific header you have to send with it so it will work always?

@melon095
Copy link

I did a little bit more digging, found out that my browser sends a sec-fetch-mode: navigate header. So if you simply don't have that header in the request it should work, you can use something like curl, postman or the REST Client VSCode extension, shown in the bttv-request.http file above to try it out.

@toasterudel
Copy link

is there an endpoint to get emotes from the top page? similar to how https://api.betterttv.net/3/cached/emotes/global pulls from the global emotes on the site

@Hoopou
Copy link

Hoopou commented Nov 17, 2023

7tv doesn't work anymore

@Hoopou
Copy link

Hoopou commented Nov 17, 2023

@JaielZeus
Copy link

JaielZeus commented Nov 17, 2023

7TV:
-> https://7tv.io/docs

The old api endpoint got discontinued on Nov 1st. Check the docs above for the api endpoints. Twitch, Kick and Youtube I think are supported

@pinpox
Copy link

pinpox commented Dec 7, 2023

Does anyone know how to download all emotes as webp from betterttv?

@chuckxD
Copy link
Author

chuckxD commented Jan 17, 2024

This gist is obsolete in current year. Try these instead:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment