Chromecast Unofficial API / Information

Search This thread

bradynapier

Member
Jun 7, 2010
47
1
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
 
  • Like
Reactions: vincentcox

offyoutoddle

Member
Apr 19, 2010
9
1
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?
 
  • Like
Reactions: vincentcox

offyoutoddle

Member
Apr 19, 2010
9
1
can anyone confirm if this method still works? I'm wondering if google has changed something here, as the video of a youtube vid sent the chromecast is no longer displayed since the 'guest feature' update. Video's sent to the chromecast this way now will only play audio with a full screen youtube logo on screen. Anyone else see this, and have any way around it yet?
 

vincentcox

Member
Mar 21, 2015
5
0
Hi,I have a question about this. Do you know a way to configure the output signal of the chromecast?
I am looking for a way to force 720p instead of 1080p on my tv (got some hdmi EDID problems).

Kind regards,

Vincent
 

dhanjel

Senior Member
Mar 1, 2009
67
4
www.tecus.se
Is it possible somehow to get information about its current status. Mainly if its currently streaming or not?

I need this in order to automatically turn on my multi channel amplifier if any of my chromecast audios connected to it starts streaming.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    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
    1
    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?