Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Facebook Ad Transcript

Tài liệu API
https://api.sandbase.ai/v1/api/facebook/ad-transcript

Get the spoken-word transcript of a Meta Ad Library video ad by ad ID or URL.

Giá
Từ $0.0012USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 2 tùy chọn

Phòng thử nghiệm

Đầu vào
Meta Ad Library ad ID (e.g. "1020359190509080"). Provide either id or url.
Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=1020359190509080"). Provide either id or url.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Facebook Ad Transcript API

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).

Use cases

  • Pull the script of a competitor's video ad to study its hook and offer.
  • Index ad transcripts to search for repeated claims or phrases across campaigns.
  • Check whether a video ad has a transcript before sending it to a review or translation step.

Request

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.

Parameters

NameTypeRequiredDescription
idstringNoMeta Ad Library ad ID (e.g. "1020359190509080"). Provide either id or url.
urlstringNoMeta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=1020359190509080"). Provide either id or url.

Example response

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
}

Response fields

FieldMeaning
data.adIdThe ID of the ad that was looked up.
data.transcriptThe spoken-word text of the ad. It is an empty string when no transcript exists.
data.transcriptAvailabletrue when a transcript was found for the ad, false when not. Check this before you use transcript.
data.urlThe Meta Ad Library URL for the ad.
foundtrue when the lookup returned a result for the ad.

Notes

  • Send either id or url. The id is the number in the id query parameter of an Ad Library URL, for example 2045879599391945.
  • A response can have found: true and still return an empty transcript with transcriptAvailable: false. Treat this as an ad with no transcript.
  • To find ad IDs, use Facebook Ad Search or Facebook Company Ads. For ad creative data, call Facebook Ad Creative Details.

Pricing

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

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
FacebookTừ $0.0012 mỗi lần gọiJSON
FacebookTừ $0.0012 mỗi lần gọiJSON
FacebookTừ $0.00462 mỗi lần gọiJSON
FacebookTừ $0.0011 mỗi lần gọiJSON
FacebookTừ $0.0011 mỗi lần gọiJSON
FacebookTừ $0.0012 mỗi lần gọiJSON

Hướng dẫn:Best Facebook API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Facebook Ad Transcript?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/facebook/ad-transcript với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Facebook Ad Transcript có giá bao nhiêu?

Từ $0.0012 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Facebook Ad Transcript chấp nhận những tham số nào?

Không có tham số bắt buộc. Tùy chọn: id (string) và url (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Facebook Ad Transcript trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Facebook không?

Không. Facebook Ad Transcript chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Facebook.