Skip to content

Accept a Last.fm Scrobble (Standard)

POST
/2.0/
curl --request POST \
--url https://example.com/2.0/ \
--header 'Content-Type: application/json' \
--data '{ "method": "track.scrobble", "artist": "example", "track": "example", "album": "example", "albumArtist": "example", "mbid": "example", "duration": 1, "sk": "example", "api_key": "example", "timestamp": 1 }'

Accepts the standard Last.fm track.scrobble payload at this endpoint.

format
string
Media typeapplication/json
Any of:
Any of:
Single Scrobble
object
method
required
string
Allowed value: track.scrobble
artist
required
string
track
required
string
album
string
albumArtist
string
mbid
string
duration
integer
> 0 <= 9007199254740991
sk
string
api_key
string
timestamp
required
integer
> 0 <= 9007199254740991

Success

The request failed validation

Media typeapplication/json

The request’s body, query or params didn’t match the route’s schema

object
error
required
string
Allowed value: Validation failed
details
required

What was wrong, one entry per problem

Array<object>
object
message
required
string
path

Where the problem is, e.g. [“amount”] or [“items”, 0, “id”]

Array

Example

{
"error": "Validation failed"
}