Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Facebook Ad Creative Details

เอกสาร API
https://api.sandbase.ai/v1/api/facebook/ad-details-full

Pull one Meta Ad Library ad with its creative: every carousel variant, image and video URL, headline, body, and call to action.

ราคา
เริ่มต้นที่ $0.00462USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
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).
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

Facebook Ad Creative Details API

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.

Use cases

  • Archive the full carousel of a competitor ad, with each card's title, image, and landing page link.
  • Check which platforms an ad runs on and whether it is still active.
  • Collect the landing page URLs and call to action types used in a brand's ads.
  • Record when an ad started and ended to build a timeline of a campaign.

Request

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.

Parameters

NameTypeRequiredDescription
idstringYesMeta Ad Library ad ID - the numeric id in an Ad Library URL (e.g. "962050096457659" from https://www.facebook.com/ads/library/?id=962050096457659).

Example response

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
}

Response fields

FieldMeaning
foundtrue when the ad ID was found. A missing ad returns found: false.
data.activeWhether the ad is marked active.
data.startedUtc / data.endedUtcStart and end of the ad run as Unix timestamps in seconds.
data.platformsPlatforms the ad is shown on, such as FACEBOOK, INSTAGRAM, and MESSENGER.
data.displayFormatAd format. This ad shows DPA.
data.creatives[].title / data.creatives[].bodyHeadline 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[].imageResizedFull image URL and a smaller resized image URL for each variant.
data.creatives[].ctaText / data.creatives[].ctaTypeCall to action label and its type code for each variant.
data.creatives[].linkUrlLanding page URL for each variant.
data.pageName / data.pageId / data.pageUrl / data.pageLikesName, ID, Facebook URL, and like count of the page that runs the ad.

Notes

  • Take the 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.
  • To list the ads of a page first, use Facebook Company Ads. To find ads by keyword, use Facebook Ad Search.

Pricing

Billed at the actual cost of each call, about $0.00462 for the request above. Failed calls are not charged.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Facebook Ad Creative Details API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/facebook/ad-details-full โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Facebook Ad Creative Details API ราคาเท่าไร?

เริ่มต้นที่ $0.00462 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Facebook Ad Creative Details API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Facebook Ad Creative Details API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Facebook ไหม?

ไม่จำเป็น Facebook Ad Creative Details ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Facebook API แยกต่างหาก