Skip to main content

Preview track

GET 

https://partner-content-api.epidemicsound.com/v0/tracks/:trackId/stream

We recommend using HLS to allow users to play/preview a track. The main benefits of this compared to MP3 are smaller file transfers and alternate qualities, allowing the HLS client library to switch to a lower quality when necessary.

The audio is encoded using the AAC coding standard, which results in a smaller footprint for a similar quality compared to MP3. The primary manifest refers to two variant quality streams. HLS client libraries typically choose the optimal quality automatically, based on download speed.

The format consists of audio files split into smaller chunks and manifests that refer to these audio files.

We provide an example app for iOS that plays HLS streams. Users do not need to connect their account or have an active Epidemic Sound subscription to play any track using HLS streaming. That allows your users to listen to all tracks before they connect their account.

Request

Path Parameters

    trackId stringrequired

    Track id

Responses

Information about the stream url

Schema

    url stringrequired
    expires stringrequired

Authorization: http

name: UserAuthtype: httpdescription: User authentication is handled with short lived user access tokens.
 Use a partner token to request these tokens.
 The access token is of JWT format and should be passed in a header with your API requests:
 
 > **Example Header:** `Authorization: Bearer a-user-token`scheme: bearer
curl -L 'https://partner-content-api.epidemicsound.com/v0/tracks/:trackId/stream' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Request Collapse all
Base URL
https://partner-content-api.epidemicsound.com
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!