Songlist API

Version: 2.0.0

Export

Download

Download JSONDownload YAML

Copy URL

post/play_history

Create play history

Authorization

Required scopes

  • streamer.play-history.writeWrite streamer play history

Request Bodyrequired

application/json

Schema

CreatePlayHistory

$schemastring

A URL to the JSON Schema for this object.

nonlistArtiststring

Artist of a non-list (Live Learn) song. Requires nonlistTitle.

nonlistSongstring

A non-list (Live Learn) song as one string.

nonlistTitlestring

Title of a non-list (Live Learn) song.

notestring
playedAtstring
requestsSongRequestParams[]

Array items:

SongRequestParams

Amountnumberrequired
Namestringrequired
Notestringrequired
RequestTextstringrequired
RequesterIPstringrequired
Sourcestringrequired
TransactionIDintegerrequired
UserIDintegerrequired
songIdinteger
streamerIdintegerrequired

The streamer's ID. Can be found using the GET /streamers endpoint with the streamer_name and platform parameters

Example

{
  "$schema": "https://example.com",
  "nonlistArtist": "string",
  "nonlistSong": "string",
  "nonlistTitle": "string",
  "note": "string",
  "playedAt": "2024-01-01T00:00:00Z",
  "requests": [
    {
      "Amount": 0,
      "Name": "string",
      "Note": "string",
      "RequestText": "string",
      "RequesterIP": "string",
      "Source": "string",
      "TransactionID": 0,
      "UserID": 0
    }
  ],
  "songId": 0,
  "streamerId": 1
}

Responses

201Created

application/json

Schema

PlayHistoryResponseBody

$schemastring

A URL to the JSON Schema for this object.

itemsPlayHistoryDetails[]required

Array items:

PlayHistoryDetails

createdAtstringrequired
donationAmountnumberrequired
idintegerrequired
nonlistArtiststringrequired
nonlistSongstringrequired
nonlistTitlestringrequired
notestringrequired
playedAtstringrequired
requestsRequest[]required

Array items:

Request

amountnumberrequired
createdAtstringrequired
idintegerrequired
mineboolean
namestringrequired
requestTextstringrequired
sourcestringrequired
userRequestUserrequired
platformstringrequired
usernamestringrequired
songPlayHistorySongrequired
albumArtstringrequired
artiststringrequired
titlestringrequired
songIdintegerrequired
startedAtstringrequired
streamerIdintegerrequired
updatedAtstringrequired
tokenstringrequired
totalintegerrequired

Example

{
  "$schema": "https://example.com",
  "items": [
    {
      "createdAt": "2024-01-01T00:00:00Z",
      "donationAmount": 0,
      "id": 0,
      "nonlistArtist": "string",
      "nonlistSong": "string",
      "nonlistTitle": "string",
      "note": "string",
      "playedAt": "2024-01-01T00:00:00Z",
      "requests": [
        {
          "amount": 0,
          "createdAt": "string",
          "id": 0,
          "mine": true,
          "name": "string",
          "requestText": "string",
          "source": "string",
          "user": {
            "platform": "string",
            "username": "string"
          }
        }
      ],
      "song": {
        "albumArt": "string",
        "artist": "string",
        "title": "string"
      },
      "songId": 0,
      "startedAt": "2024-01-01T00:00:00Z",
      "streamerId": 0,
      "updatedAt": "2024-01-01T00:00:00Z"
    }
  ],
  "token": "string",
  "total": 0
}
400Bad Request

application/problem+json

Schema

ErrorModel

$schemastring

A URL to the JSON Schema for this object.

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[]

Optional list of individual error details

Array items:

ErrorDetail

locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueunknown

The value at the given location

instancestring

A URI reference that identifies the specific occurrence of the problem.

statusinteger

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring

A URI reference to human-readable documentation for the error.

Example

{
  "$schema": "https://example.com",
  "detail": "string",
  "errors": [
    {
      "location": "string",
      "message": "string",
      "value": null
    }
  ],
  "instance": "https://example.com",
  "status": 0,
  "title": "string",
  "type": "about:blank"
}
401Unauthorized

application/problem+json

Schema

ErrorModel

$schemastring

A URL to the JSON Schema for this object.

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[]

Optional list of individual error details

Array items:

ErrorDetail

locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueunknown

The value at the given location

instancestring

A URI reference that identifies the specific occurrence of the problem.

statusinteger

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring

A URI reference to human-readable documentation for the error.

Example

{
  "$schema": "https://example.com",
  "detail": "string",
  "errors": [
    {
      "location": "string",
      "message": "string",
      "value": null
    }
  ],
  "instance": "https://example.com",
  "status": 0,
  "title": "string",
  "type": "about:blank"
}
403Forbidden

application/problem+json

Schema

ErrorModel

$schemastring

A URL to the JSON Schema for this object.

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[]

Optional list of individual error details

Array items:

ErrorDetail

locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueunknown

The value at the given location

instancestring

A URI reference that identifies the specific occurrence of the problem.

statusinteger

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring

A URI reference to human-readable documentation for the error.

Example

{
  "$schema": "https://example.com",
  "detail": "string",
  "errors": [
    {
      "location": "string",
      "message": "string",
      "value": null
    }
  ],
  "instance": "https://example.com",
  "status": 0,
  "title": "string",
  "type": "about:blank"
}
422Unprocessable Entity

application/problem+json

Schema

ErrorModel

$schemastring

A URL to the JSON Schema for this object.

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[]

Optional list of individual error details

Array items:

ErrorDetail

locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueunknown

The value at the given location

instancestring

A URI reference that identifies the specific occurrence of the problem.

statusinteger

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring

A URI reference to human-readable documentation for the error.

Example

{
  "$schema": "https://example.com",
  "detail": "string",
  "errors": [
    {
      "location": "string",
      "message": "string",
      "value": null
    }
  ],
  "instance": "https://example.com",
  "status": 0,
  "title": "string",
  "type": "about:blank"
}
500Internal Server Error

application/problem+json

Schema

ErrorModel

$schemastring

A URL to the JSON Schema for this object.

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[]

Optional list of individual error details

Array items:

ErrorDetail

locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueunknown

The value at the given location

instancestring

A URI reference that identifies the specific occurrence of the problem.

statusinteger

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring

A URI reference to human-readable documentation for the error.

Example

{
  "$schema": "https://example.com",
  "detail": "string",
  "errors": [
    {
      "location": "string",
      "message": "string",
      "value": null
    }
  ],
  "instance": "https://example.com",
  "status": 0,
  "title": "string",
  "type": "about:blank"
}