TikTok — sound posts
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts \
--header 'Content-Type: application/json' \
--data '
{
"clipId": "7002634556977908485",
"cursor": "0"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts"
payload = {
"clipId": "7002634556977908485",
"cursor": "0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({clipId: '7002634556977908485', cursor: '0'})
};
fetch('https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clipId' => '7002634556977908485',
'cursor' => '0'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts"
payload := strings.NewReader("{\n \"clipId\": \"7002634556977908485\",\n \"cursor\": \"0\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts")
.header("Content-Type", "application/json")
.body("{\n \"clipId\": \"7002634556977908485\",\n \"cursor\": \"0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"clipId\": \"7002634556977908485\",\n \"cursor\": \"0\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"can_pin_video": false,
"cursor": "12",
"extra": null,
"has_more": true,
"log_pb": null,
"music_id": "7002634556977908485",
"need_lazy_loading": false,
"status_code": 0,
"status_msg": "",
"aweme_list": [
{
"anchors": null,
"author_user_id": "6764339504008446982",
"aweme_id": "7014949174089125125",
"aweme_type": 0,
"create_time": 1633295132,
"create_time_utc": "2021-10-03T21:05:32.000Z",
"desc": "Tu 4@ se quiere quedar encerrado en una habitación contigo 🙊 #yarelyly",
"desc_language": null,
"image_post_info": null,
"is_ad": false,
"is_eligible_for_commission": null,
"is_nff_or_nr": false,
"is_paid_partnership": null,
"is_top": 0,
"item_comment_settings": 0,
"media_id": "v09044g40000c5d1kirc77uf6a6olms0",
"music": null,
"region": "VE",
"shop_product_url": null,
"url": "https://www.tiktok.com/@yarelyly/video/7014949174089125125",
"author": {
"events": null,
"language": null,
"nickname": "Yarelyly",
"region": "VE",
"sec_uid": null,
"short_id": null,
"signature": null,
"social_info": null,
"uid": "6764339504008446982",
"unique_id": "yarelyly",
"avatar_larger": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg"
]
},
"avatar_medium": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg"
]
},
"avatar_thumb": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg"
]
}
},
"commerce_info": {
"adv_promotable": false,
"auction_ad_invited": false,
"branded_content_type": 0,
"is_diversion_ad": 0,
"organic_log_extra": "{\"req_id\":\"2026080807114668B24AB0C15BCF9A1887\"}",
"with_comment_filter_words": false
},
"statistics": {
"aweme_id": "7014949174089125125",
"collect_count": 11940,
"comment_count": 1384,
"digg_count": 327240,
"download_count": 11948,
"forward_count": null,
"lose_comment_count": null,
"lose_count": null,
"play_count": 2584168,
"repost_count": null,
"share_count": 4125,
"whatsapp_share_count": null
},
"video": {
"data_size": 1122002,
"duration": 7,
"height": null,
"watermark_data_size": 1141387,
"width": null,
"cover": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/a68fea2b2cf04086992a8a3e2a296a61~tplv-tiktokx-cropcenter-q:300:400:q70.webp",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/a68fea2b2cf04086992a8a3e2a296a61~tplv-tiktokx-cropcenter-q:300:400:q70.webp"
]
},
"download_addr": {
"height": null,
"uri": "https://v19.tiktokcdn.com/bfdf31e5053f1a1bfffc65a62b7e1419/6a77b7ba/video/tos/maliva/tos-maliva-ve-0068c801-us/70b68cae2d2d460ea7c00aee935d7b1a/",
"url_prefix": null,
"width": null,
"url_list": [
"https://v19.tiktokcdn.com/bfdf31e5053f1a1bfffc65a62b7e1419/6a77b7ba/video/tos/maliva/tos-maliva-ve-0068c801-us/70b68cae2d2d460ea7c00aee935d7b1a/"
]
},
"dynamic_cover": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/114fa5c90e98427d8dccc28b06719d0a_1633295133~tplv-tiktokx-origin.image",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/114fa5c90e98427d8dccc28b06719d0a_1633295133~tplv-tiktokx-origin.image"
]
},
"origin_cover": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/8014300fd390454ea573c5bd26303448_1633295135~tplv-tiktokx-shrink-aq:360:360:q75.webp",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/8014300fd390454ea573c5bd26303448_1633295135~tplv-tiktokx-shrink-aq:360:360:q75.webp"
]
},
"play_addr": {
"height": null,
"uri": "https://v19.tiktokcdn.com/99dba5044126bca95dbd47e28e547b57/6a77b7ba/video/tos/useast2a/tos-useast2a-ve-0068c001/02c44b704bbc47a89973defae608799f/",
"url_prefix": null,
"width": null,
"url_list": [
"https://v19.tiktokcdn.com/99dba5044126bca95dbd47e28e547b57/6a77b7ba/video/tos/useast2a/tos-useast2a-ve-0068c001/02c44b704bbc47a89973defae608799f/"
]
}
}
}
]
},
"request_id": "req_8f3c9a2b1d4e6f70",
"upstream_calls": 1,
"meta": {
"credits_charged": 1,
"credits_remaining": 9998
}
}{
"error": "INVALID_INPUT",
"message": "Invalid request body.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UNAUTHORIZED",
"message": "Invalid scraper API key.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "INSUFFICIENT_SCRAPER_CREDITS",
"message": "Insufficient scraper credits.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "RESOURCE_NOT_FOUND",
"message": "Requested resource not found or unavailable.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "PAYLOAD_TOO_LARGE",
"message": "Request body must be 32KB or smaller.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "SCRAPER_RATE_LIMITED",
"message": "Scraper API rate limit exceeded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "INTERNAL_ERROR",
"message": "Request failed. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_ERROR",
"message": "Data source failed. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_TIMEOUT",
"message": "Data source timed out. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}The videos using a sound. Platform field names are preserved inside data. Billing: 1 SideShift credit per completed lookup.
POST
/
scrape
/
tiktok
/
sound-posts
TikTok — sound posts
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts \
--header 'Content-Type: application/json' \
--data '
{
"clipId": "7002634556977908485",
"cursor": "0"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts"
payload = {
"clipId": "7002634556977908485",
"cursor": "0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({clipId: '7002634556977908485', cursor: '0'})
};
fetch('https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clipId' => '7002634556977908485',
'cursor' => '0'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts"
payload := strings.NewReader("{\n \"clipId\": \"7002634556977908485\",\n \"cursor\": \"0\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts")
.header("Content-Type", "application/json")
.body("{\n \"clipId\": \"7002634556977908485\",\n \"cursor\": \"0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/tiktok/sound-posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"clipId\": \"7002634556977908485\",\n \"cursor\": \"0\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"can_pin_video": false,
"cursor": "12",
"extra": null,
"has_more": true,
"log_pb": null,
"music_id": "7002634556977908485",
"need_lazy_loading": false,
"status_code": 0,
"status_msg": "",
"aweme_list": [
{
"anchors": null,
"author_user_id": "6764339504008446982",
"aweme_id": "7014949174089125125",
"aweme_type": 0,
"create_time": 1633295132,
"create_time_utc": "2021-10-03T21:05:32.000Z",
"desc": "Tu 4@ se quiere quedar encerrado en una habitación contigo 🙊 #yarelyly",
"desc_language": null,
"image_post_info": null,
"is_ad": false,
"is_eligible_for_commission": null,
"is_nff_or_nr": false,
"is_paid_partnership": null,
"is_top": 0,
"item_comment_settings": 0,
"media_id": "v09044g40000c5d1kirc77uf6a6olms0",
"music": null,
"region": "VE",
"shop_product_url": null,
"url": "https://www.tiktok.com/@yarelyly/video/7014949174089125125",
"author": {
"events": null,
"language": null,
"nickname": "Yarelyly",
"region": "VE",
"sec_uid": null,
"short_id": null,
"signature": null,
"social_info": null,
"uid": "6764339504008446982",
"unique_id": "yarelyly",
"avatar_larger": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg"
]
},
"avatar_medium": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg"
]
},
"avatar_thumb": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-alisg-avt-0068/ff9e02109b824cb6757b43279e970164~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg"
]
}
},
"commerce_info": {
"adv_promotable": false,
"auction_ad_invited": false,
"branded_content_type": 0,
"is_diversion_ad": 0,
"organic_log_extra": "{\"req_id\":\"2026080807114668B24AB0C15BCF9A1887\"}",
"with_comment_filter_words": false
},
"statistics": {
"aweme_id": "7014949174089125125",
"collect_count": 11940,
"comment_count": 1384,
"digg_count": 327240,
"download_count": 11948,
"forward_count": null,
"lose_comment_count": null,
"lose_count": null,
"play_count": 2584168,
"repost_count": null,
"share_count": 4125,
"whatsapp_share_count": null
},
"video": {
"data_size": 1122002,
"duration": 7,
"height": null,
"watermark_data_size": 1141387,
"width": null,
"cover": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/a68fea2b2cf04086992a8a3e2a296a61~tplv-tiktokx-cropcenter-q:300:400:q70.webp",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/a68fea2b2cf04086992a8a3e2a296a61~tplv-tiktokx-cropcenter-q:300:400:q70.webp"
]
},
"download_addr": {
"height": null,
"uri": "https://v19.tiktokcdn.com/bfdf31e5053f1a1bfffc65a62b7e1419/6a77b7ba/video/tos/maliva/tos-maliva-ve-0068c801-us/70b68cae2d2d460ea7c00aee935d7b1a/",
"url_prefix": null,
"width": null,
"url_list": [
"https://v19.tiktokcdn.com/bfdf31e5053f1a1bfffc65a62b7e1419/6a77b7ba/video/tos/maliva/tos-maliva-ve-0068c801-us/70b68cae2d2d460ea7c00aee935d7b1a/"
]
},
"dynamic_cover": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/114fa5c90e98427d8dccc28b06719d0a_1633295133~tplv-tiktokx-origin.image",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/114fa5c90e98427d8dccc28b06719d0a_1633295133~tplv-tiktokx-origin.image"
]
},
"origin_cover": {
"height": null,
"uri": "https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/8014300fd390454ea573c5bd26303448_1633295135~tplv-tiktokx-shrink-aq:360:360:q75.webp",
"url_prefix": null,
"width": null,
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068/8014300fd390454ea573c5bd26303448_1633295135~tplv-tiktokx-shrink-aq:360:360:q75.webp"
]
},
"play_addr": {
"height": null,
"uri": "https://v19.tiktokcdn.com/99dba5044126bca95dbd47e28e547b57/6a77b7ba/video/tos/useast2a/tos-useast2a-ve-0068c001/02c44b704bbc47a89973defae608799f/",
"url_prefix": null,
"width": null,
"url_list": [
"https://v19.tiktokcdn.com/99dba5044126bca95dbd47e28e547b57/6a77b7ba/video/tos/useast2a/tos-useast2a-ve-0068c001/02c44b704bbc47a89973defae608799f/"
]
}
}
}
]
},
"request_id": "req_8f3c9a2b1d4e6f70",
"upstream_calls": 1,
"meta": {
"credits_charged": 1,
"credits_remaining": 9998
}
}{
"error": "INVALID_INPUT",
"message": "Invalid request body.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UNAUTHORIZED",
"message": "Invalid scraper API key.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "INSUFFICIENT_SCRAPER_CREDITS",
"message": "Insufficient scraper credits.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "RESOURCE_NOT_FOUND",
"message": "Requested resource not found or unavailable.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "PAYLOAD_TOO_LARGE",
"message": "Request body must be 32KB or smaller.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "SCRAPER_RATE_LIMITED",
"message": "Scraper API rate limit exceeded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "INTERNAL_ERROR",
"message": "Request failed. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_ERROR",
"message": "Data source failed. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_TIMEOUT",
"message": "Data source timed out. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}Body
application/json
- Option 1
- Option 2
Sound id, or a full tiktok.com/music/… URL. Accepted alias group: clipId or music.
Sound id, or a full tiktok.com/music/… URL. Accepted alias group: clipId or music.
Pagination cursor — echo back the cursor from the previous response. Omit it for the first page.
Response
Completed lookup. 1 SideShift credit.
TikTok platform data payload. Field names and nesting are preserved.
Show child attributes
Show child attributes
SideShift request id. Include it in support requests.
Number of data-source lookups performed.
Available options:
1 Per-request credit accounting (also surfaced in the X-Scraper-Credits-* response headers).
Show child attributes
Show child attributes
⌘I