Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.27 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.27 KB

pot-generator

A quick and dirty API written to generate PoTokens for third party YouTube clients, using LuanRT's BgUtils package;

Warning

PoTokens are IP-specific. You can't just host this API (or use a hosted one) and get a response that will work on another device/IP. This API is designed to be hosted next to a third party frontend (LightTube, Piped, Invidious, etc.)

Usage

GET /generate

Query parameters:

visitorData (optional)
The visitorData identifier to be used while generating the token. If not provided, a new one will be generated.

requestKey (optional)
The request key required to get a BotGuard challenge. If not provided, the default one will be used instead.

Example response:

{
	"success": true,
	"response":  {
		"visitorData": "CgtIZWxsb1dvcmxkISjShdjMBDIKCgJYWBIEGgAgRQ%3D%3D",
		"poToken": "Mnhub3QgYSByZWFsIHBvdG9rZW4sIGp1c3Qgc29tZSBzdHJpbmcgaSd2ZSBnZW5lcmF0ZWQgdG8gbWlzbGVhZCB5b3UuIGFoYSEgeW91IGZlbGwgcmlnaHQgaW50byBteSB0cmFwISBoYWhhaGEhIGdvZCBpIG5lZWQ"
	},
	"error": "this is a string thats only present when success == false. otherwise, null"
}