Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,065 Members 40,902 Now Online
XDA Developers Android and Mobile Development Forum

Chromecast Unofficial API / Information

Tip us?
 
bradynapier
Old
#1  
Member - OP
Thanks Meter 0
Posts: 47
Join Date: Jun 2010
Default Chromecast Unofficial API / Information

I have found random documents going over some of the raw curl commands that can be sent to chromecast, but it is by no means complete and various people saying they've been successful in doing things but not sharing how. Is there anywhere, or can we start a conversation to go over full details on this? I am hoping to build a two-way module for a home automation system that shows what is playing and other information.

Here is what I have so ar of-which not all of them are working for me yet.

get device information xml:
curl http://10.0.1.2:8008/ssdp/device-desc.xml

get detailed device information json:
curl http://10.0.1.2:8008/setup/eureka_info?options=detail

scan for available wifi:
curl http://10.0.1.2:8008/setup/scan_results

get supported time zones:
curl http://10.0.1.2:8008/setup/supported_timezones

get info about current app:
curl -H “Content-Type: application/json” http://10.0.1.2:8008/apps/YouTube -X GET

send youtube video to chromecast:
curl -H “Content-Type: application/json” http://10.0.1.2:8008/apps/YouTube -X POST -d ‘v=oHg5SJYRHA0′

kill current running app:
curl -H “Content-Type: application/json” http://10.0.1.2:8008/apps/YouTube -X DELETE

reboot the chromecast dongle:
curl -H “Content-Type: application/json” http://10.0.1.2:8008/setup/reboot -d ‘{“params”:”now”}’ -X POST

factory default reset the chromecast dongle:
curl -H “Content-Type: application/json” http://10.0.1.2:8008/setup/reboot -d ‘{“params”:”fdr”}’ -X POST
 
deeper-blue
Old
#2  
Member
Thanks Meter 580
Posts: 43
Join Date: Nov 2010
Location: somewhere in good ol' Germany
If you're looking for a comprehensive writeup of the Cast protocol take a look here:

https://github.com/jloutsenhizer/CR-...umentation-WIP
 
offyoutoddle
Old
#3  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Apr 2010
has anyone made any further discoveries than this?

I'm particularly interested in implementing a play/pause capability, and I notice one developer mentioned his android remote app has this capablility, but did not mention exactly how it was achieved.

I'm assuming the use of the Ramp protocol will work on the youtube app still - so in order to play/pause I'd just need to implement that method in my app? Before I go down that route though, i wondered if anyone knows if that method still works, at least with the youtube app as of july 2014?
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes