Tiktok

Music Search

Fetch information about music based on a string. See the `cursor` query parameter below for information on how to manage pagination (fetch more results).

API Pricing (per request): 2 units

Try the API

get/tt/music/info

Request

  • Base URL: https://ensembledata.com/apis
  • URL: https://ensembledata.com/apis/tt/music/info
  • Auth: none declared

Query parameters

namestring required

The music string to base the search on.

cursorinteger

Parameter to manually handle pagination. Each response contains a nextCursor which can be used to retrieve the next page of results by sending it as the next cursor. If the nextCursor is not present in the response, it means that there are no more results to retrieve.

sorting'0' | '1' | '2' | '3' | '4'

An enumeration.

Sort posts using a metric. 0=relevance, 1=most_used, 2=most_recent, 3=shortest, 4=longest.

filter_by'0' | '1' | '2'

An enumeration.

Filter posts by some value. 0=No filter applied, 1=search only titles, 2=search only creators.

tokenstring required

Private token assigned to each client to access the APIs.

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.