querystringआवश्यक
Search query (advertiser name or keyword)
https://api.sandbase.ai/v1/api/tiktok-ads-library/search-adsSearch the TikTok Ad Library for ads matching a query (advertiser name or keyword).
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Search the TikTok Ad Library for ads matching a query (advertiser name or keyword).
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "tiktok-ads-library/search-ads", "limit": 12, "query": "nike", "offset": 0, "region": "all", "sort_by": "last_shown_date,desc", "search_id": ""}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query (advertiser name or keyword) |
end_time | integer | No | End of date range as Unix timestamp (seconds). Defaults to now. |
limit | integer | No | Number of results per page (max 50) |
offset | integer | No | Pagination offset (0-based). Requires search_id from a previous response for values > 0. |
region | string | No | Region/country code filter (e.g. 'FR', 'DE', 'GB') or 'all' for all regions. Use get_supported_regions for the full list of accepted codes. One of: all, FR, DE, GB. |
search_id | string | No | Search ID returned from a previous search_ads call. Required when offset > 0 to paginate through results. |
sort_by | string | No | Sort order: 'last_shown_date,desc' or 'last_shown_date,asc' One of: last_shown_date,desc, last_shown_date,asc. |
start_time | integer | No | Start of date range as Unix timestamp (seconds). Defaults to 1 year ago. |
Flat $0.06 per call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok-ads-library/search-ads" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 12,
"query": "nike",
"offset": 0,
"region": "all",
"sort_by": "last_shown_date,desc",
"search_id": ""
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
querystringआवश्यकSearch query (advertiser name or keyword)
limitintegerNumber of results per page (max 50)
डिफ़ॉल्ट: 12
offsetintegerPagination offset (0-based). Requires search_id from a previous response for values > 0.
डिफ़ॉल्ट: 0
regionstringRegion/country code filter (e.g. 'FR', 'DE', 'GB') or 'all' for all regions. Use get_supported_regions for the full list of accepted codes.
डिफ़ॉल्ट: "all"
संभावित मान: all, FR, DE, GB
sort_bystringSort order: 'last_shown_date,desc' or 'last_shown_date,asc'
डिफ़ॉल्ट: "last_shown_date,desc"
संभावित मान: last_shown_date,desc, last_shown_date,asc
end_timeintegerEnd of date range as Unix timestamp (seconds). Defaults to now.
search_idstringSearch ID returned from a previous search_ads call. Required when offset > 0 to paginate through results.
start_timeintegerStart of date range as Unix timestamp (seconds). Defaults to 1 year ago.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
TikTok Ads Library | $0.06 प्रति कॉल | JSON |
TikTok Ads Library | $0.03 प्रति कॉल | JSON |
TikTok Ads Library | $0.03 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/tiktok-ads-library/search-ads पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.06 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: query (string)। वैकल्पिक: limit (integer), offset (integer), region (all, FR, DE, GB में से एक), sort_by (last_shown_date,desc, last_shown_date,asc में से एक), end_time (integer) और search_id (string) और 1 और। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)।
नहीं। TikTok Ads Library Search Ads SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से TikTok Ads Library API access के लिए आवेदन करने की आवश्यकता नहीं है।