idstring
Meta Ad Library ad ID (e.g. "1020359190509080"). Provide either id or url.
https://api.sandbase.ai/v1/api/facebook/ad-transcriptGet the spoken-word transcript of a Meta Ad Library video ad by ad ID or URL.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
This API returns the spoken-word transcript of a video ad in the Meta Ad Library. It needs either an ad ID (id) or an Ad Library ad URL (url).
curl -X POST "https://api.sandbase.ai/v1/api/facebook/ad-transcript" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id": "2045879599391945"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | Meta Ad Library ad ID (e.g. "1020359190509080"). Provide either id or url. |
url | string | No | Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=1020359190509080"). Provide either id or url. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"adId": "2045879599391945",
"transcript": "",
"transcriptAvailable": false,
"url": "https://www.facebook.com/ads/library?id=2045879599391945"
},
"found": true
}
| Field | Meaning |
|---|---|
data.adId | The ID of the ad that was looked up. |
data.transcript | The spoken-word text of the ad. It is an empty string when no transcript exists. |
data.transcriptAvailable | true when a transcript was found for the ad, false when not. Check this before you use transcript. |
data.url | The Meta Ad Library URL for the ad. |
found | true when the lookup returned a result for the ad. |
id or url. The id is the number in the id query parameter of an Ad Library URL, for example 2045879599391945.found: true and still return an empty transcript with transcriptAvailable: false. Treat this as an ad with no transcript.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/facebook/ad-transcript" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "2045879599391945"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
idstringMeta Ad Library ad ID (e.g. "1020359190509080"). Provide either id or url.
urlstringMeta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=1020359190509080"). Provide either id or url.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Facebook Ad TranscriptAPI นี้ Facebook | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
Facebook | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
Facebook | เริ่มต้นที่ $0.00462 ต่อครั้ง | JSON |
Facebook | เริ่มต้นที่ $0.0011 ต่อครั้ง | JSON |
Facebook | เริ่มต้นที่ $0.0011 ต่อครั้ง | JSON |
Facebook | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/facebook/ad-transcript โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.0012 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: id (string) และ url (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Facebook Ad Transcript ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Facebook API แยกต่างหาก