Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Foreplay Brand Ad Analytics

API dokümanları
https://api.sandbase.ai/v1/api/foreplay/brand-analytics

Get ad analytics for a brand by Foreplay brand ID: active and total ads, formats, platforms, launch cadence and longest-running creatives over a date range.

Fiyat
Başlangıç fiyatı $0.1225USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 3 isteğe bağlı

Oynatma Alanı

Girdi
Page ID or Brand ID. Brand IDs are 20-25 character alphanumeric strings with mixed case. Page IDs are numeric Facebook page identifiers.
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. The window between start_date and end_date must be ≤ 30 days. A larger range returns HTTP 406 `Date range too large`.
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.
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. The window between start_date and end_date must be ≤ 30 days. A larger range returns HTTP 406 `Date range too large`.
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

Foreplay Brand Ad Analytics

Get ad analytics for a brand by Foreplay brand ID: active and total ads, formats, platforms, launch cadence and longest-running creatives over a date range.

Request

curl -X POST "https://api.sandbase.ai/v1/api/foreplay/brand-analytics" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "3YfFtyvZ3viTAbbLaWLV"}'

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

Parameters

NameTypeRequiredDescription
idstringYesPage ID or Brand ID. Brand IDs are 20-25 character alphanumeric strings with mixed case. Page IDs are numeric Facebook page identifiers.
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
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.
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

Pricing

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

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
ForeplayKullanım başına $0.1225'den itibarenJSON
ForeplayKullanım başına $0.0525'den itibarenJSON
ForeplayKullanım başına $0.0525'den itibarenJSON
ForeplayKullanım başına $0.0175'den itibarenJSON

Sorular

SSS

Foreplay Brand Ad Analytics API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/foreplay/brand-analytics adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Foreplay Brand Ad Analytics API'sinin fiyatı nedir?

çağrı başına $0.1225'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Foreplay Brand Ad Analytics API'si hangi parametreleri kabul eder?

Gerekli: id (string). İsteğe bağlı: end_date (string), order (newest, oldest, longest_running, most_relevant arasından biri) ve start_date (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Foreplay Brand Ad Analytics API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron).

Bir Foreplay geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Foreplay Brand Ad Analytics, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Foreplay API erişimi için ayrıca başvuru yapmanız gerekmez.