Bulk report usage
POST/v0/analytics/report
This endpoint should be used when you want to bulk report events to Epidemic Sound. We currently support the following events: trackPreviewed, trackDownloaded and tracksExported. Note that the limit for number of events per request is limited to 100. Also note that for events containing the field trackIds, the limit for number of trackIds per event is 50. Events may not contain a timestamp older than 7 days ago.
Request
- application/json
Body
Analytics report
Array [
- TrackPreviewedEvent
- TrackDownloadedEvent
- TracksExportedEvent
]
events
object[]
required
analyticsEvent
object
oneOf
Possible values: [trackPreviewed
]
Possible values: [mp3
, hls
, hls_with_cookie
]
Possible values: [normal
, high
]
Possible values: [trackDownloaded
]
Possible values: [YOUTUBE
, TWITTER
, TWITCH
, FACEBOOK
, INSTAGRAM
, TIKTOK
, OTHER
, LOCAL
]
Possible values: [tracksExported
]
Responses
- 200
- 400
- 401
- 429
Usage report response
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"batchId": "string",
"eventsCount": 0
}
{
"batchId": "12345",
"eventsCount": 10
}
Bad request.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Human readable message
errors
object[]
Error key
Error messages
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Bad request"
}
Unauthorized. Most likely your access token has expired.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Human readable message
errors
object[]
Error key
Error messages
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Invalid credentials"
}
Rate limit exceeded.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Human readable message
errors
object[]
Error key
Error messages
{
"message": "string",
"errors": [
{
"key": "string",
"messages": [
"string"
]
}
]
}
{
"message": "Rate limit exceeded"
}