idstringобязательно
Meta Ad Library ad ID - the numeric id in an Ad Library URL (e.g. "962050096457659" from https://www.facebook.com/ads/library/?id=962050096457659).
https://api.sandbase.ai/v1/api/facebook/ad-details-fullPull one Meta Ad Library ad with its creative: every carousel variant, image and video URL, headline, body, and call to action.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
This API returns one ad from the Meta Ad Library, including the page that runs it and every creative variant. You send the Ad Library ad ID in id. The response has the ad text, call to action, image and video URLs, platforms, and run dates.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/ad-details-full" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id": "962050096457659"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Meta Ad Library ad ID - the numeric id in an Ad Library URL (e.g. "962050096457659" from https://www.facebook.com/ads/library/?id=962050096457659). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"active": true,
"adArchiveId": "962050096457659",
"body": "Free Depop Shipping just dropped. Go find something you love.",
"caption": "itunes.apple.com",
"categories": [
"UNKNOWN"
],
"creatives": [
{
"body": "Free Depop Shipping just dropped. Go find something you love.",
"caption": "itunes.apple.com",
"ctaText": "Download",
"ctaType": "DOWNLOAD",
"image": "https://scontent.frst1-1.fna.fbcdn.net/v/t39.35426-6/706317255_2037222576909248_…",
"imageResized": "https://scontent.frst1-1.fna.fbcdn.net/v/t39.35426-6/706317255_2037222576909248_…",
"linkDescription": "Download Depop - Buy & Sell Clothes by Depop Ltd on the App Store. See screensho…",
"linkUrl": "https://www.depop.com/products/coachellana-coachella-2018-cardi-b-cropped/",
"title": "Coach Women's Hoodie"
}
],
"ctaText": "Download",
"ctaType": "DOWNLOAD",
"displayFormat": "DPA",
"endedUtc": 1793606400,
"images": [],
"isReshared": false
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the ad ID was found. A missing ad returns found: false. |
data.active | Whether the ad is marked active. |
data.startedUtc / data.endedUtc | Start and end of the ad run as Unix timestamps in seconds. |
data.platforms | Platforms the ad is shown on, such as FACEBOOK, INSTAGRAM, and MESSENGER. |
data.displayFormat | Ad format. This ad shows DPA. |
data.creatives[].title / data.creatives[].body | Headline and body text of each creative variant. A title can be a template placeholder such as {{product.name}} at the top level. |
data.creatives[].image / data.creatives[].imageResized | Full image URL and a smaller resized image URL for each variant. |
data.creatives[].ctaText / data.creatives[].ctaType | Call to action label and its type code for each variant. |
data.creatives[].linkUrl | Landing page URL for each variant. |
data.pageName / data.pageId / data.pageUrl / data.pageLikes | Name, ID, Facebook URL, and like count of the page that runs the ad. |
id from the id= value in an Ad Library URL. The response sourceUrl shows the same URL.data.images and data.videos are empty lists for this ad. Card images sit in data.creatives[] instead.Billed at the actual cost of each call, about $0.00462 for the request above. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/ad-details-full" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "962050096457659"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
idstringобязательноMeta Ad Library ad ID - the numeric id in an Ad Library URL (e.g. "962050096457659" from https://www.facebook.com/ads/library/?id=962050096457659).
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Facebook Ad Creative DetailsЭтот API Facebook | От $0.00462 за запрос | JSON |
Facebook | От $0.0012 за запрос | JSON |
Facebook | От $0.0012 за запрос | JSON |
Facebook | От $0.0011 за запрос | JSON |
Facebook | От $0.0011 за запрос | JSON |
Facebook | От $0.0012 за запрос | JSON |
Руководства:Best Facebook API in 2026: Pricing Compared
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/facebook/ad-details-full, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.00462 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: id (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Facebook Ad Creative Details работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Facebook.