logo

Anime Radio #1 in the Universe

Up next

  • Anime
  • Track
  • Artist

Поставьте радио себе на сайт!

Вам и посетителям вашего сайта наверняка будет интересно послушать аниме-музыку. Мы можем предложить несколько вариантов интеграции радио в ваш сайт.

Option 1: JavaScript player

This option lets you elegantly integrate the radio into your site, but is only suitable for sites that use AJAX technology to load pages. If you do not use AJAX, no problem — see option 2.

Widget example

HTML code

<div id="anison"><a href="https://anison.fm/" title="ANISON.FM - anime radio #1 in Russia" target="_blank">ANISON.FM</a></div> <link href="https://anison.fm/include/anison.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="https://anison.fm/scripts/jquery.min.js"></script> <script type="text/javascript" src="https://anison.fm/scripts/jplayer/jquery.jplayer.min.js"></script> <script type="text/javascript" src="https://anison.fm/include/anison.js"></script>
Available block parameters <div id="anison">:
width - set the width of the player block (in pixels);
options="nofollow" - add the nofollow parameter to all generated links.

Option 2: JavaScript informer with playback in a new window

This option displays information about the broadcast and offers the user to download the playlist or listen to the radio in a new window. When listening in a new window, the music will not stop when the user goes to another page of your site.

Widget example

HTML code

<div id="anison"><a href="https://anison.fm/" title="ANISON.FM - anime radio #1 in Russia" target="_blank">ANISON.FM</a></div> <link href="https://anison.fm/include/anison.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="https://anison.fm/scripts/jquery.min.js"></script> <script type="text/javascript" src="https://anison.fm/include/anison.js"></script>
Available block parameters <div id="anison">:
width - set the width of the player block (in pixels);
options="nofollow" - add the nofollow parameter to all generated links.

Option 3: JSON API

Also, if you want to implement radio integration on your server side yourself, there is a small JSON API for you.

Request parameters

HTTP request to the following address:
https://anison.fm/status.php?widget=true
Additional available GET parameters:
layer - disable links and Russian text in the server response, and also do not output listeners.

When integrating, do not forget to provide a link to the playlist so the station can be listened to in a player:
https://anison.fm/anison.m3u
And optionally, you can offer visitors to listen to the radio in a new window:
https://anison.fm/vk/

Response example

The response is an array encoded in JSON format.
"duration":102,
"listeners":"145 listeners",
"on_air":"On air: <span class='current_track'><a href='' class='anime_link' target='_blank'>Free!</a> — Splash Free</span>"
duration - time until the end of the current track, in seconds;
listeners - the number of station listeners with the inflected word 'listeners'; on_air - the title of the track/show on air with an active link to details/description
We also have an API for displaying the schedule and next broadcast, but it is in beta and will change with the release of the new radio version. Therefore it is not published here; we can provide it privately.