# API - Play dircet Radio Favorite by replaceAndPlay

**URL:** <https://community.volumio.com/t/api-play-dircet-radio-favorite-by-replaceandplay/48437>\
**Category:** Developer's Corner\
**Tags:** question, api\
**Created:** [June 30, 2021, 1:33pm UTC](https://community.volumio.com/t/api-play-dircet-radio-favorite-by-replaceandplay/48437 "2021-06-30T13:33:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ashthespy](https://community.volumio.com/user_avatar/community.volumio.com/ashthespy/32/318_2.png) [@ashthespy](https://community.volumio.com/u/ashthespy)\
**Post date:** [June 30, 2021, 3:11pm UTC](https://community.volumio.com/t/api-play-dircet-radio-favorite-by-replaceandplay/48437/2 "2021-06-30T15:11:45Z")

</div>

Greetings and welcome to Volumio 🙂

I take it you are looking for a way to get a `webradio` uri play via the API?  
Then have a look at a solution using curl in [Play a radio url via curl? - #11 by miovol](https://community.volumio.com/t/play-a-radio-url-via-curl/39592/11)

You just need to set the right headers for `Content-Type` in whatever method you are using to call the endpoint.

HTH,

---

_[View the full topic](https://community.volumio.com/t/api-play-dircet-radio-favorite-by-replaceandplay/48437)._
