Return upcoming and currently ongoing schedule entries.

GET
https://demo.azuracast.com/api/station/{station_id}/schedule

Parameters

station_idinteger | stringrequiredpath
nowstringquery

The date/time to compare schedule items to. Defaults to the current date and time.

rowsintegerquery

The number of upcoming/ongoing schedule entries to return. Defaults to 5.

Response

Success

Response fields application/json
Show child attributes
idinteger

Unique identifier for this schedule entry.

Example
1
typestringplayliststreamer

The type of this schedule entry.

Example
playlist
namestring

Either the playlist or streamer’s display name.

Example
Example Schedule Entry
titlestring

The name of the event.

Example
Example Schedule Entry
descriptionstring

The full name of the type and name combined.

Example
Playlist: Example Schedule Entry
start_timestampinteger

The start time of the schedule entry, in UNIX format.

Example
1609480800
startstring

The start time of the schedule entry, in ISO 8601 format.

Example
020-02-19T03:00:00-06:00
end_timestampinteger

The end time of the schedule entry, in UNIX format.

Example
1609480800
endstring

The start time of the schedule entry, in ISO 8601 format.

Example
020-02-19T05:00:00-06:00
is_nowboolean

Whether the event is currently ongoing.

Example
true
404Not FoundApi_Error

Record not found.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false
500Internal Server ErrorApi_Error

A generic exception has occurred.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false