WOLFRAM 语言 服务连接

SoundCloud

Do detailed music searches and get information about specific track, playlists and users from SoundCloud's API.

Connecting & AuthenticatingConnecting & Authenticating

    ServiceConnect["SoundCloud"] creates a connection to the SoundCloud API.

Raw RequestsRaw Requests

    ServiceExecute[conn,"request",params] sends a request to the connection identified by conn, using parameters params. The following give possible requests.

    RawRequests

    Request:

    "RawTrackSearch" Search tracks using various filters.

    Parameters:
  • "q"Nonesearch query for SoundCloud tracks
    "offset""0"returns search results starting at a given offset
    "limit""50"the number of results returned by the query; only values between 1 and 200
    "tags"Nonea comma separated list of tags to filter tracks
    "filter"Nonethe type of sharing allowed for the track out of "puclic", "private", "all"
    "license"Nonefilter the type of license out of no-rights-reserved, all-rights-reserved, cc-by, cc-by-nc, cc-by-nd, cc-by-sa, cc-by-nc-nd, cc-by-nc-sa
    "bpm[from]"Nonereturns tracks with at least this bpm value
    "bpm[to]"Nonereturns tracks with at most this bpm value
    "duration[from]"Nonereturns tracks with at least this duration (in milliseconds)
    "duration[to]"Nonereturns tracks with at least this duration (in milliseconds)
    "created_at[from]"Nonereturn tracks created at this date or later; it uses the format "yyyy-mm-dd hh:mm:ss"
    "created_at[to]"Nonereturn tracks created at this date or earlier; it uses the format "yyyy-mm-dd hh:mm:ss"
    "ids"Nonea comma separated list of track ids to filter tracks
    "genres"Nonea comma separated list of genres to filter tracks
    "types"Nonea comma separated list of types out of original, "remix", "live", "recording", "spoken", "podcast", "demo", "in progress", "stem", "loop", "sound efect", "sample", "other"
  • Request:

    "RawTrackInstance" Information about one specific track (only streamable tracks).

    Parameters:
  • "id"(required)id of the desired track
  • Request:

    "RawTrackStream" Play a track that you get from streaming.

    Parameters:
  • "id"(required)id of the desired track
  • Request:

    "RawTrackDownload" Play a track that you get from downloading (only downloadable tracks).

    Parameters:
  • "id"(required)id of the desired track
  • Request:

    "RawTrackComments" Get all the comments of a track.

    Parameters:
  • "id"(required)id of the desired track
    "offset""0"returns results starting at a given offset
    "limit""50"the number of results returned; only values between 1 and 200
  • Request:

    "RawUserSearch" Search for SoundCloud users.

    Parameters:
  • "q"Nonesearch query for SoundCloud users
    "offset""0"returns search results starting at a given offset
    "limit""50"the number of results returned by the query; only values between 1 and 200
  • Request:

    "RawUserInstance" Information about one specific SoundCloud user

    Parameters:
  • "userId"(required)id of the desired user
  • Request:

    "RawUserTracks" Get all the tracks of a SoundCloud user.

    Parameters:
  • "userId"(required)id of the desired user
    "offset""0"returns results starting at a given offset
    "limit""50"the number of results returned; only values between 1 and 200
  • Request:

    "RawUserPlaylists" Get all the playlists made by a SoundCloud user.

    Parameters:
  • "userId"(required)id of the desired user
    "offset""0"returns results starting at a given offset
    "limit""50"the number of results returned; only values between 1 and 200
  • Request:

    "RawMe" Returns basic information of the user that is logged in.