Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Foreplay Ad Search

API 文件
https://api.sandbase.ai/v1/api/foreplay/ad-search

Search the Foreplay library of live and past social ads from Facebook, Instagram, TikTok, YouTube and more by keyword, format, platform, niche, language and run time, with creative, copy and landing page.

價格
自 $0.0525 起美元/次呼叫
方法
POST
回應
JSON
參數
0 個必填 · 16 個選填

Playground

輸入
Number of results (1-20). Each returned item is billed at about $0.0175, so this caps the cost of one call. 最大值:20。
Search text for ad name or description. Leave empty to search all ads with filters only.
Cursor for pagination. Use the cursor value from the previous response's metadata to get the next page of results.
Filter by one or more display formats. Available formats (11): carousel, dco, dpa, event, image, multi_images, multi_medias, multi_videos, page_like, text, video Example: `?display_format=video&display_format=carousel`
End date (inclusive). Format: 'YYYY-MM-DD', 'YYYY-MM-DDTHH:MM:SS', or 'YYYY-MM-DD HH:MM:SS'. If you provide only the date (e.g. '2024-11-12'), it will be interpreted as '2024-11-12 00:00:00'. To include all results for a given day, set end_date to 'YYYY-MM-DD 23:59:59' or to the next day at '00:00:00'. Examples: start_date=2024-11-12 00:00:00, end_date=2024-11-12 23:59:59.
Filter by languages. Accepts various language formats: 'french', 'FR', 'romanian', 'ro', 'english', 'en', etc. Example: `?languages=en&languages=fr`
Filter ads by live status. `true` means currently active ads, `false` means inactive ads. Leave empty to include both.
Filter by market target. Available targets: b2b (business-to-business), b2c (business-to-consumer) Example: `?market_target=b2b`
Filter by one or more niches. Available niches: accessories, app/software, beauty, business/professional, education, entertainment, fashion, food/drink, health/wellness, home/garden, jewelry/watches, other, parenting, pets, real estate, service business, medical, charity/nfp, kids/baby Example: `?niches=travel&niches=fashion`
Order of results: 'newest' (default), 'oldest', 'longest_running', or 'most_relevant'. Sorts ads by creation date, longest running duration, or relevance to the search query.
Filter by one or more publisher platforms. Available platforms: facebook, instagram, audience_network, messenger, tiktok, youtube, linkedin, threads, whatsapp Example: `?publisher_platform=facebook&publisher_platform=instagram`
Filter ads by maximum running duration in days. Must be a positive integer.
Filter ads by minimum running duration in days. Must be a positive integer.
Start date (inclusive). Format: 'YYYY-MM-DD', 'YYYY-MM-DDTHH:MM:SS', or 'YYYY-MM-DD HH:MM:SS'. If you provide only the date (e.g. '2024-11-12'), it will be interpreted as '2024-11-12 00:00:00'. To get all ads from a specific day, set end_date to 'YYYY-MM-DD 23:59:59' or to the next day at '00:00:00'. Examples: start_date=2024-11-12 00:00:00, end_date=2024-11-12 23:59:59.
Filter ads by maximum video duration in seconds. Only applies to video ads.
Filter ads by minimum video duration in seconds. Only applies to video ads.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

Foreplay Ad Search

Search the Foreplay library of live and past social ads from Facebook, Instagram, TikTok, YouTube and more by keyword, format, platform, niche, language and run time, with creative, copy and landing page.

Request

curl -X POST "https://api.sandbase.ai/v1/api/foreplay/ad-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "running shoes", "limit": 3}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
limitintegerNoPagination limit (max 250). Controls the number of ads returned per request.
querystringNoSearch text for ad name or description. Leave empty to search all ads with filters only.
cursorstringNoCursor for pagination. Use the cursor value from the previous response's metadata to get the next page of results.
display_formatstringNoFilter by one or more display formats. Available formats (11): carousel, dco, dpa, event, image, multi_images, multi_medias, multi_videos, page_like, text, video Example: ?display_format=video&display_format=carousel
end_datestringNoEnd date (inclusive). Format: 'YYYY-MM-DD', 'YYYY-MM-DDTHH:MM:SS', or 'YYYY-MM-DD HH:MM:SS'. If you provide only the date (e.g. '2024-11-12'), it will be interpreted as '2024-11-12 00:00:00'. To include all results for a
languagesstringNoFilter by languages. Accepts various language formats: 'french', 'FR', 'romanian', 'ro', 'english', 'en', etc. Example: ?languages=en&languages=fr
livestringNoFilter ads by live status. true means currently active ads, false means inactive ads. Leave empty to include both.
market_targetstringNoFilter by market target. Available targets: b2b (business-to-business), b2c (business-to-consumer) Example: ?market_target=b2b
nichesstringNoFilter by one or more niches. Available niches: accessories, app/software, beauty, business/professional, education, entertainment, fashion, food/drink, health/wellness, home/garden, jewelry/watches, other, parenting, pe
orderstringNoOrder of results: 'newest' (default), 'oldest', 'longest_running', or 'most_relevant'. Sorts ads by creation date, longest running duration, or relevance to the search query.
publisher_platformstringNoFilter by one or more publisher platforms. Available platforms: facebook, instagram, audience_network, messenger, tiktok, youtube, linkedin, threads, whatsapp Example: `?publisher_platform=facebook&publisher_platform=ins
running_duration_max_daysstringNoFilter ads by maximum running duration in days. Must be a positive integer.
running_duration_min_daysstringNoFilter ads by minimum running duration in days. Must be a positive integer.
start_datestringNoStart date (inclusive). Format: 'YYYY-MM-DD', 'YYYY-MM-DDTHH:MM:SS', or 'YYYY-MM-DD HH:MM:SS'. If you provide only the date (e.g. '2024-11-12'), it will be interpreted as '2024-11-12 00:00:00'. To get all ads from a spec
video_duration_maxstringNoFilter ads by maximum video duration in seconds. Only applies to video ads.
video_duration_minstringNoFilter ads by minimum video duration in seconds. Only applies to video ads.

Pricing

Billed at the actual upstream cost of each call (about $0.0525 for the request above). Failed calls are not charged.

探索更多

相關 APIs

所有 APIs
API價格回應
Foreplay每次呼叫 $0.0525 起JSON
Foreplay每次呼叫 $0.0525 起JSON
Foreplay每次呼叫 $0.1225 起JSON
Foreplay每次呼叫 $0.0175 起JSON

問題

常見問題

我要如何使用 Foreplay Ad Search API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/foreplay/ad-search。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Foreplay Ad Search API 的費用是多少?

每次起 $0.0525,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Foreplay Ad Search API 接受哪些參數?

不需要任何參數。 選填:limit (integer), query (string), cursor (string), display_format(carousel, dco, dpa, event, image, multi_images, multi_medias, multi_videos, page_like, text, video 之一), end_date (string) 和 languages (string),以及另外 10 個。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Foreplay Ad Search API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。

我需要 Foreplay 開發者帳號或 API 金鑰嗎?

不需要。Foreplay Ad Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Foreplay API 存取權。