API REFERENCE
Base URL: https://apis.kailashhh.com · JSON · CORS enabled
/api/searchSearch API
Search for music tracks. Returns normalized results for the selected source.
qstringrequiredsourceselectoptionallimitnumberoptionalcurl "https://apis.kailashhh.com/api/search?q=blinding+lights&source=ytv2&limit=5"{
"query": "blinding lights",
"source": "ytv2",
"results": [
{
"id": "4NRXx6U8ABQ",
"title": "The Weeknd - Blinding Lights",
"artist": "The Weeknd",
"duration": "3:22",
"thumbnail": "https://i.ytimg.com/vi/4NRXx6U8ABQ/mqdefault.jpg",
"url": "https://www.youtube.com/watch?v=4NRXx6U8ABQ",
"source": "ytv2"
}
],
"total": 5,
"limit": 5
}/api/streamStream API
Resolve a YouTube video ID to a direct audio stream URL. Tries multiple clients (ANDROID_VR → TVHTML5 → IOS) in sequence.
idstringrequiredcurl "https://apis.kailashhh.com/api/stream?id=4NRXx6U8ABQ"{
"url": "https://rr1---sn-xxx.googlevideo.com/...",
"mimeType": "audio/webm; codecs=\"opus\"",
"bitrate": 160000,
"itag": 251,
"title": "Blinding Lights",
"author": "The Weeknd",
"duration": "200",
"thumbnail": "https://i.ytimg.com/vi/.../hqdefault.jpg",
"client": "ANDROID_VR"
}/api/stream/proxyStream Proxy (Test)
Alternative stream endpoint. Converts the video to MP3 via ytmp3 scraper then proxies the audio bytes. Bypasses YouTube player API entirely. Slower to start (2-8s conversion) but more reliable when player API is blocked.
idstringrequiredcurl "https://apis.kailashhh.com/api/stream/proxy?id=4NRXx6U8ABQ" -o track.mp3audio/mpeg binary stream/api/suggestionsNext / Suggestions
Returns "up next" radio suggestions for a YouTube video ID. Uses YTMusic WEB_REMIX /next endpoint.
idstringrequiredlimitnumberoptionalcurl "https://apis.kailashhh.com/api/suggestions?id=4NRXx6U8ABQ&limit=10"{
"id": "4NRXx6U8ABQ",
"suggestions": [
{
"id": "...", "title": "...", "artist": "...",
"duration": "3:45", "thumbnail": "...",
"url": "https://www.youtube.com/watch?v=...",
"source": "ytv2"
}
],
"total": 10
}/api/saavn/streamSaavn Stream Proxy
Proxies a JioSaavn CDN URL through the server. Required to bypass CORS + referer restrictions on Saavn CDN.
urlstringrequiredcurl "https://apis.kailashhh.com/api/saavn/stream?url=https%3A%2F%2Faac.saavncdn.com%2F..."audio/mp4 binary stream (320kbps AAC)/api/downloadDownload API
Download audio from a YouTube URL as MP3.
urlstringrequiredformatselectoptionalcurl "https://apis.kailashhh.com/api/download?url=https://youtu.be/4NRXx6U8ABQ"{ "status": true, "title": "Blinding Lights", "format": "mp3", "url": "https://cdn.ymcdn.org/..." }/api/chatChat API
Non-streaming chat. Returns full reply after model finishes.
messagestringrequiredmodelselectoptionalhistorystringoptionalsystemstringoptionalcurl -X POST "https://apis.kailashhh.com/api/chat" \
-H "Content-Type: application/json" \
-d '{"message":"hello","model":"claude"}'{ "reply": "Hello! How can I help?", "model": "claude" }/api/chat/streamChat Stream API
Streaming chat via Server-Sent Events. Tokens arrive as they are generated.
messagestringrequiredmodelselectoptionalsystemstringoptionalcurl -X POST "https://apis.kailashhh.com/api/chat/stream" \
-H "Content-Type: application/json" \
-d '{"message":"count to 5","model":"claude"}'data: "1"
data: " 2"
data: " 3"
data: " 4"
data: " 5"
data: [DONE]/api/blogBlog API
Fetch blog posts as JSON or RSS.
formatselectoptionallimitnumberoptionaltagstringoptionalcurl "https://apis.kailashhh.com/api/blog?format=json&limit=5"{ "posts": [{ "slug": "...", "title": "...", "date": "...", "tags": [] }], "total": 1, "limit": 5 }