Documentation for YouCube's backend API.
All public servers are set by default in the client.
The client will choose the best automatically.
Fallback Server
Hosted on render in Oregon (US West) by Commandcracker
This server is only meant to be used when all other servers are offline.
It's pretty slow, but it should do the job.
Messages the Server Can Return
Accepts one of the following messages:
{
"action": "error",
"message": "You dare not use special Characters"
}
base64 encoded chunks (1 chunk is 16 bits)
{
"action": "chunk",
"chunk": "aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1kUXc0dzlXZ1hjUQ=="
}
{
"action": "media",
"id": "dQw4w9WgXcQ",
"title": "Never Gonna Give You Up",
"like_count": 15526549,
"view_count": 1307201506,
"playlist_videos": [
[
"CVsbTCdTyAM",
"xm3YgoEiEDc"
]
]
}
{
"action": "handshake",
"server": {
"version": "0.0.0-poc.0.0.1"
},
"api": {
"version": "0.0.0-poc.0.0.0"
},
"capabilities": {
"video": [
"32vid"
],
"audio": [
"dfpwm"
]
}
}
base64 encoded chunks (1 chunk is 16 bits)
{
"action": "vid",
"lines": [
"32Vid 1.1",
"24",
"!CPC006CAAAAADMAEwAAAAAAAAAAACD/IP8g/yDMAP8A/wD/AMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=7550035d",
"!CPC006CAAAAADMAEwAAAAAAAAAAACD/IP8g/yDMAP8A/wD/AMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=7550035d",
"!CPC0070AAAAADMAEwAAAAAAAAAAACD/IP8g/yDMAP8A8hABAP8A2AAAAAABAAAAAAABAAAAAAEBAQAAAAEBAQAAAAEBAQAAAAEBAQAAAAAAAAAAAAAAAA==daa086f0",
"..."
]
}
Messages the Server Can Process
Accepts one of the following messages:
{
"action": "request_media",
"url": "Never Gonna Give You Up",
"width": 164,
"height": 120
}
{
"action": "get_chunk",
"chunkindex": 0,
"id": "dQw4w9WgXcQ"
}
{
"action": "get_vid",
"tracker": 0,
"width": 164,
"height": 120,
"id": "dQw4w9WgXcQ"
}
{
"action": "handshake"
}
base64 encoded chunks (1 chunk is 16 bits)
base64 encoded chunks (1 chunk is 16 bits)