Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Foreplay Ad Search

Dokumentasi 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.

Harga
Dari $0.0525USD / panggilan
Metode
POST
Respons
JSON
Parameter
0 wajib · 16 opsional

Playground

Input
Number of results (1-20). Each returned item is billed at about $0.0175, so this caps the cost of one call. Maksimum: 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.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README 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.

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
ForeplayDari $0.0525 per panggilanJSON
ForeplayDari $0.0525 per panggilanJSON
ForeplayDari $0.1225 per panggilanJSON
ForeplayDari $0.0175 per panggilanJSON

Pertanyaan

FAQ

Bagaimana cara menggunakan API Foreplay Ad Search?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/foreplay/ad-search dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Foreplay Ad Search?

Mulai dari $0.0525 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Foreplay Ad Search?

Tidak ada parameter yang wajib. Opsional: limit (integer), query (string), cursor (string), display_format (salah satu dari carousel, dco, dpa, event, image, multi_images, multi_medias, multi_videos, page_like, text, video), end_date (string) dan languages (string) dan 10 lainnya. Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Foreplay Ad Search?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron).

Apakah saya memerlukan akun developer atau kunci API Foreplay?

Tidak. Foreplay Ad Search berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Foreplay secara terpisah.