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부터USD / 호출
메서드
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.
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

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.

더 살펴보기

관련 API

모든 API
API가격응답
Foreplay호출당 $0.0525부터JSON
Foreplay호출당 $0.0525부터JSON
Foreplay호출당 $0.1225부터JSON
Foreplay호출당 $0.0175부터JSON

질문

FAQ

Foreplay Ad Search API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/foreplay/ad-search에 POST 요청을 보내세요. 이 페이지의 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 액세스를 별도로 신청할 필요는 없습니다.