Skip to content

Get Voting of a Space

GET

http
https://api.atomic.radio/spaces/:spaceId/voting
https://api.atomic.radio/spaces/:spaceId/voting

Returns a voting object for a given space ID.

Voting Structure

FieldTypeDescription
idStringThe id of the space
tracksVotingTrack[]10 available Voting Tracks
startedAtDateWhen the voting started
closingAtDateWhen the voting will close
endingAtDateWhen the voting will be restarted
closedBooleanIf the voting is closed

Voting Track Structure

FieldTypeDescription
idStringThe id of the track
votesNumberTotal upvotes for this track
votedBooleanVoted for this track
artistStringThe artist of the track
titleStringThe title of the track
durationNumberThe duration of the track in seconds
artworkStringThe artwork of the track as a url
preview?StringThe audio preview of the track as a url
preview_video?StringThe video preview of the track as a url

Example Voting Structure

json
{
    "id": "one",
    "tracks": [
        {
            "id": "6949014817592053760",
            "votes": 0,
            "voted": false,
            "artist": "Noel Holler & TEN TONNE SKELETON feat. ENDLING",
            "title": "Out Of Fire",
            "duration": 156,
            "artwork": "https://assets.atomic.radio/tracks/artworks/6949014817592053760.jpg",
            "preview": "https://assets.atomic.radio/tracks/previews/6949014817592053760.aac",
            "preview_video": "https://assets.atomic.radio/tracks/previews/6949014817592053760.mp4"
        },
        // ...
    ],
    "startedAt": "2022-12-30T23:00:19.840Z",
    "closingAt": "2022-12-31T18:15:00.840Z",
    "endingAt": "2022-12-31T23:00:00.840Z",
    "closed": false
}
{
    "id": "one",
    "tracks": [
        {
            "id": "6949014817592053760",
            "votes": 0,
            "voted": false,
            "artist": "Noel Holler & TEN TONNE SKELETON feat. ENDLING",
            "title": "Out Of Fire",
            "duration": 156,
            "artwork": "https://assets.atomic.radio/tracks/artworks/6949014817592053760.jpg",
            "preview": "https://assets.atomic.radio/tracks/previews/6949014817592053760.aac",
            "preview_video": "https://assets.atomic.radio/tracks/previews/6949014817592053760.mp4"
        },
        // ...
    ],
    "startedAt": "2022-12-30T23:00:19.840Z",
    "closingAt": "2022-12-31T18:15:00.840Z",
    "endingAt": "2022-12-31T23:00:00.840Z",
    "closed": false
}