TikTok — ad details
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/tiktok/ad \
--header 'Content-Type: application/json' \
--data '
{
"ad_id": "7667849995747770388"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/tiktok/ad"
payload = { "ad_id": "7667849995747770388" }
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({ad_id: '7667849995747770388'})
};
fetch('https://app.sideshift.app/api/v1/scrape/tiktok/ad', 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/ad",
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([
'ad_id' => '7667849995747770388'
]),
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/ad"
payload := strings.NewReader("{\n \"ad_id\": \"7667849995747770388\"\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/ad")
.header("Content-Type", "application/json")
.body("{\n \"ad_id\": \"7667849995747770388\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/tiktok/ad")
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 \"ad_id\": \"7667849995747770388\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"ad_title": "[Asia’s 50 Best Bars 2026: Another Toast to Hong Kong’s Bar Scene👏] Whether you’re discovering new openings or revisiting old favourites, Hong Kong’s bar scene never disappoints🍸. And this year, it has even more reasons to celebrate, with multiple local bars making their mar…",
"brand_name": "",
"comment": 58,
"cost": 2,
"creative_center_url": "https://ads.tiktok.com/business/creativecenter/ads/detail/7667849995747770388",
"ctr": 0.42,
"detail_analysis": null,
"favorite": false,
"has_summary": false,
"highlight_text": "",
"id": "7667849995747770388",
"industry_key": "label_23133000000",
"interactive_time_analysis": null,
"is_search": false,
"keyword_list": null,
"landing_page": "https://www.discoverhongkong.com/eng/food-and-drink.html",
"like": 18090,
"objective_key": "campaign_objective_reach",
"recommended_for_you": null,
"share": 77,
"source": "Others",
"source_key": 73,
"voice_over": false,
"country_code": [
"PH",
"SG",
"TH"
],
"objectives": [
{
"label": "campaign_objective_reach",
"value": 5
}
],
"pattern_label": [],
"video_info": {
"cover": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0037/o0NAvAiG4RBDI0wNW2WIi1oAf0uEB1ICyDI9hi~tplv-noop.image",
"duration": 35.293,
"height": 1024,
"vid": "v1c044g50000d9kcmuvog65kr88cgdng",
"width": 576,
"video_url": {
"720p": "https://v16m-default.tiktokcdn.com/1fddd33531b11fd30412ecd64006be62/6a76bac7/video/tos/alisg/tos-alisg-pve-0037c001/oEj8TLCj4GUm0MIbLALEAekgge23aoDI8fRTZA/"
}
}
},
"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 full record for one ad from the Top Ads library. Platform field names are preserved inside data. Billing: 1 SideShift credit per completed lookup.
POST
/
scrape
/
tiktok
/
ad
TikTok — ad details
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/tiktok/ad \
--header 'Content-Type: application/json' \
--data '
{
"ad_id": "7667849995747770388"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/tiktok/ad"
payload = { "ad_id": "7667849995747770388" }
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({ad_id: '7667849995747770388'})
};
fetch('https://app.sideshift.app/api/v1/scrape/tiktok/ad', 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/ad",
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([
'ad_id' => '7667849995747770388'
]),
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/ad"
payload := strings.NewReader("{\n \"ad_id\": \"7667849995747770388\"\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/ad")
.header("Content-Type", "application/json")
.body("{\n \"ad_id\": \"7667849995747770388\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/tiktok/ad")
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 \"ad_id\": \"7667849995747770388\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"ad_title": "[Asia’s 50 Best Bars 2026: Another Toast to Hong Kong’s Bar Scene👏] Whether you’re discovering new openings or revisiting old favourites, Hong Kong’s bar scene never disappoints🍸. And this year, it has even more reasons to celebrate, with multiple local bars making their mar…",
"brand_name": "",
"comment": 58,
"cost": 2,
"creative_center_url": "https://ads.tiktok.com/business/creativecenter/ads/detail/7667849995747770388",
"ctr": 0.42,
"detail_analysis": null,
"favorite": false,
"has_summary": false,
"highlight_text": "",
"id": "7667849995747770388",
"industry_key": "label_23133000000",
"interactive_time_analysis": null,
"is_search": false,
"keyword_list": null,
"landing_page": "https://www.discoverhongkong.com/eng/food-and-drink.html",
"like": 18090,
"objective_key": "campaign_objective_reach",
"recommended_for_you": null,
"share": 77,
"source": "Others",
"source_key": 73,
"voice_over": false,
"country_code": [
"PH",
"SG",
"TH"
],
"objectives": [
{
"label": "campaign_objective_reach",
"value": 5
}
],
"pattern_label": [],
"video_info": {
"cover": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0037/o0NAvAiG4RBDI0wNW2WIi1oAf0uEB1ICyDI9hi~tplv-noop.image",
"duration": 35.293,
"height": 1024,
"vid": "v1c044g50000d9kcmuvog65kr88cgdng",
"width": 576,
"video_url": {
"720p": "https://v16m-default.tiktokcdn.com/1fddd33531b11fd30412ecd64006be62/6a76bac7/video/tos/alisg/tos-alisg-pve-0037c001/oEj8TLCj4GUm0MIbLALEAekgge23aoDI8fRTZA/"
}
}
},
"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
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