|
# 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' |
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.