Skip to main content

Get the streamable MP3 file of a track

GET 

/tracks/:track_id/stream

Stream an mp3 track This endpoint accepts the Range header for streaming. https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests

Request

Path Parameters

    track_id stringrequired

    A Track ID

Query Parameters

    user_id string

    The user ID of the user making the request

    preview boolean

    Optional - true if streaming track preview

    user_signature string

    Optional - signature from the requesting user's wallet. This is needed to authenticate the user and verify access in case the track is gated.

    user_data string

    Optional - data which was used to generate the optional signature argument.

    nft_access_signature string

    Optional - gated content signature for this track which was previously generated by a registered DN. We perform checks on it and pass it through to CN.

    skip_play_count boolean

    Optional - boolean that disables tracking of play counts.

    api_key string

    Optional - API key for third party apps. This is required for tracks that only allow specific API keys.

    skip_check boolean

    Optional - POC to skip node 'double dip' health check

    no_redirect boolean

    Optional - If true will not return a 302 and instead will return the stream url in JSON

Responses

Success
Schema
    data stringrequired
Loading...