# Play a radio url via curl?

**URL:** <https://community.volumio.com/t/play-a-radio-url-via-curl/39592>\
**Category:** Volumio Development\
**Created:** [June 30, 2020, 8:25am UTC](https://community.volumio.com/t/play-a-radio-url-via-curl/39592 "2020-06-30T08:25:14Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [August 26, 2020, 2:53pm UTC](https://community.volumio.com/t/play-a-radio-url-via-curl/39592/12 "2020-08-26T14:53:42Z")

</div>

It just needs to be valid JSON.

```auto
volumio@volumio:~$ curl -i --header "Content-Type: application/json" localhost:3000/api/v1/replaceAndPlay --data '{
  "service": "webradio",
  "type": "webradio",
  "title": "Nova%20La%20Nuit",
  "uri": "http://nova-ln.ice.infomaniak.ch/nova-ln-128",
  "albumart": "https://www.nova.fr/sites/default/files/2020-06/Nova%20la%20Nuit_1.jpg"
}'
HTTP/1.1 200 OK
X-Powered-By: Express
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,PUT,POST,DELETE,OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization, Content-Length, X-Requested-With
Content-Type: application/json; charset=utf-8
Content-Length: 22
ETag: W/"16-jY45PQN+HurxTHjG3dOzCLMmswA"
Vary: Accept-Encoding
Date: Wed, 26 Aug 2020 14:53:01 GMT
Connection: keep-alive

{"response":"success"}volumio@volumio:~$

```

---

_[View the full topic](https://community.volumio.com/t/play-a-radio-url-via-curl/39592)._
