TikTok Music
TikTok Music helps users discover songs, sounds, and trending audio on TikTok, explore music trends, and find inspiration for content creation.
- Selected price
- $0.00015 / callPublished pricing
- Sellers / APIs
- 4 / 10
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
TikTok Music
Prepare your request, then continue with your agent.
Selected price
$0.00015 / call
- Provider
- API
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
cursorstringhas_morebooleanitemsobject[]authorobjectidstringnicknamestringuniqueIdstringverifiedboolean
createTimeintegerdescstringidstringstatsobjectcollectCountintegercommentCountintegerdiggCountintegerplayCountintegershareCountinteger
videoobjectdurationintegerheightintegeridstringratiostringwidthinteger
submit_feedback_for_this_response_herestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
cursor?: string;
has_more?: boolean;
items?: Array<{
author?: {
id?: string;
nickname?: string;
uniqueId?: string;
verified?: boolean;
};
createTime?: number;
desc?: string;
id?: string;
stats?: {
collectCount?: number;
commentCount?: number;
diggCount?: number;
playCount?: number;
shareCount?: number;
};
video?: {
duration?: number;
height?: number;
id?: string;
ratio?: string;
width?: number;
};
}>;
submit_feedback_for_this_response_here?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| TikTok Song · POST · View API reference | $0.0006 / call | —Select to load statistics | —successP50— | |
Current TikTok Song Videos · POST · View API reference | $0.00015 / call | — | —successP50— | |
| TikTok Song · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— | |
| TikTok — TikToks using Song · GET · View API reference | $0.00188 / call | —Select to load statistics | —successP50— | |
| TikTok — Get Song Details · GET · View API reference | $0.00188 / call | —Select to load statistics | —successP50— | |
| Get user music list data · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get details of specified music · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get music search results of specified keywords · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Music Chart List · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get video list of specified music · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— |
- Unit price
- $0.00015
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0.015
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/tiktok/song-videos- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/tiktok/song-videos' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"clip_id": "7106686378527787818",
"count": 3
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
timeout | URL query parametersquery | number | No | Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget. maximum: 90 |
clip_id | JSON request bodybody | string | Yes | Numeric TikTok music clip ID, the suffix of a /music/ URL. pattern: ^[0-9]{1,25}$ |
count | JSON request bodybody | integer | No | Requested page size, between 1 and 35. minimum: 1 · maximum: 35 |
cursor | JSON request bodybody | string | integer | No | Upstream pagination cursor from the preceding response; 0 starts a new feed. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"cursor": "1",
"has_more": false,
"items": [
{
"author": {
"id": "7074071949111018539",
"nickname": "David Teather Codes",
"uniqueId": "davidteathercodes",
"verified": false
},
"createTime": 1654654373,
"desc": "Learn how to create #QRCodes in #Python in #15seconds #programming",
"id": "7106686413101468970",
"stats": {
"collectCount": 30,
"commentCount": 6,
"diggCount": 52,
"playCount": 3457,
"shareCount": 3
},
"video": {
"duration": 15,
"height": 1024,
"id": "7106686413101468970",
"ratio": "540p",
"width": 576
}
}
],
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# TikTok Music
TikTok Music helps users discover songs, sounds, and trending audio on TikTok, explore music trends, and find inspiration for content creation.
## Available implementations
anyapi · TikTok Song: https://openany.si/markets/apis/capabilities/tiktok-music?offering=f197154e-3c07-4c4b-a6e5-c47099f8d4f4 · $0.0006 / call
litescrape · TikTok Song Videos: https://openany.si/markets/apis/capabilities/tiktok-music?offering=1e2ef027-fa99-42c1-adad-d8e1ac18fa51 · $0.00015 / call
litescrape · TikTok Song: https://openany.si/markets/apis/capabilities/tiktok-music?offering=c4e03ff4-7524-466a-8d45-17f16fe23eaf · $0.00015 / call
scrapecreators · TikTok — TikToks using Song: https://openany.si/markets/apis/capabilities/tiktok-music?offering=2a42ce36-8623-4fae-acd5-c720b8a89495 · $0.00188 / call
scrapecreators · TikTok — Get Song Details: https://openany.si/markets/apis/capabilities/tiktok-music?offering=f6ae1b6c-afce-4465-9691-383ccaeea4ed · $0.00188 / call
tikhub · Get user music list data: https://openany.si/markets/apis/capabilities/tiktok-music?offering=0898a812-f706-4586-9853-403540dc9df0 · $0.001 / call
tikhub · Get details of specified music: https://openany.si/markets/apis/capabilities/tiktok-music?offering=172b991f-dac4-40c5-bac5-cc705aecbfab · $0.001 / call
tikhub · Get music search results of specified keywords: https://openany.si/markets/apis/capabilities/tiktok-music?offering=1aebb694-d226-4fb4-bc07-495ec974b201 · $0.001 / call
tikhub · Music Chart List: https://openany.si/markets/apis/capabilities/tiktok-music?offering=665bcef5-17e6-40df-af39-fd5101cb3726 · $0.001 / call
tikhub · Get video list of specified music: https://openany.si/markets/apis/capabilities/tiktok-music?offering=95d6bdb0-7903-40a4-a86a-943247f60d3c · $0.001 / call
## Selected API contract
Documentation: https://openany.si/apis/1e2ef027-fa99-42c1-adad-d8e1ac18fa51
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/litescrape/api/tiktok/song-videos
Price: $0.00015 / call
Provider: litescrape
Contract revision: 4
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/tiktok/song-videos' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"clip_id": "7106686378527787818",
"count": 3
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "TikTok Song Videos",
"endpoint": "https://api.openany.si/v1/agent-apis/litescrape/api/tiktok/song-videos",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.",
"location": "query",
"maximum": "90",
"name": "timeout",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Page through TikTok posts that use a sound.",
"json_schema": {
"additionalProperties": false,
"examples": [
{
"clip_id": "7106686378527787818",
"count": 3
}
],
"properties": {
"clip_id": {
"description": "Numeric TikTok music clip ID, the suffix of a /music/ URL.",
"pattern": "^[0-9]{1,25}$",
"title": "Clip Id",
"type": "string",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"id": "tiktok-song-videos-clip_id",
"label": "Clip Id",
"summary": "Numeric TikTok music clip ID, the suffix of a /music/ URL."
}
},
"count": {
"default": 20,
"description": "Requested page size, between 1 and 35.",
"maximum": 35,
"minimum": 1,
"title": "Count",
"type": "integer",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"id": "tiktok-song-videos-count",
"label": "Count",
"summary": "Requested page size, between 1 and 35."
}
},
"cursor": {
"anyOf": [
{
"pattern": "^[0-9]{1,25}$",
"type": "string"
},
{
"maximum": 9223372036854775807,
"minimum": 0,
"type": "integer"
}
],
"default": "0",
"description": "Upstream pagination cursor from the preceding response; 0 starts a new feed.",
"title": "Cursor",
"x-litescrape": {
"formGroup": 0,
"group": 0,
"id": "tiktok-song-videos-cursor",
"label": "Cursor",
"summary": "Upstream pagination cursor from the preceding response; 0 starts a new feed."
}
}
},
"required": [
"clip_id"
],
"title": "Request",
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "150",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example",
"request": {
"body": {
"clip_id": "7106686378527787818",
"count": 3
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"cursor": "1",
"has_more": false,
"items": [
{
"author": {
"id": "7074071949111018539",
"nickname": "David Teather Codes",
"uniqueId": "davidteathercodes",
"verified": false
},
"createTime": 1654654373,
"desc": "Learn how to create #QRCodes in #Python in #15seconds #programming",
"id": "7106686413101468970",
"stats": {
"collectCount": 30,
"commentCount": 6,
"diggCount": 52,
"playCount": 3457,
"shareCount": 3
},
"video": {
"duration": 15,
"height": 1024,
"id": "7106686413101468970",
"ratio": "540p",
"width": 576
}
}
],
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 2
Review these request fields before running. Keep the published provider and request method unchanged.
timeout- Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
body- Page through TikTok posts that use a sound.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/litescrape/api/tiktok/song-videos' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "clip_id": "7106686378527787818", "count": 3 }'Check the response
Sample response · Documented HTTP 200
Sample response{ "cursor": "1", "has_more": false, "items": [ { "author": { "id": "7074071949111018539", "nickname": "David Teather Codes", "uniqueId": "davidteathercodes", "verified": false }, "createTime": 1654654373, "desc": "Learn how to create #QRCodes in #Python in #15seconds #programming", "id": "7106686413101468970", "stats": { "collectCount": 30, "commentCount": 6, "diggCount": 52, "playCount": 3457, "shareCount": 3 }, "video": { "duration": 15, "height": 1024, "id": "7106686413101468970", "ratio": "540p", "width": 576 } } ], "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token" }