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

Facebook Post

เอกสาร API
https://api.sandbase.ai/v1/api/facebook/post

Fetch a single Facebook post by URL with its text and engagement counts (likes, comments, shares, views).

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

Playground

อินพุต
Full Facebook post URL.
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `videoId` or `views`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
เอาต์พุตพร้อมใช้งาน

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

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

API README

Facebook Post API

Returns one Facebook post or reel as JSON, with its text, author, engagement counts, reaction breakdown, and video details. It needs the full post URL in url.

Use cases

  • Track the views, likes, and shares of a brand's reel after it goes live.
  • Compare reaction mixes such as love and angry across competitor posts.
  • Save the caption, author, and video link of a post for a content archive.
  • Check whether a post still resolves from a URL stored in a report.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/post" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.facebook.com/reel/2166091230582141/"}'

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

Parameters

NameTypeRequiredDescription
urlstringYesFull Facebook post URL.
requireFieldsarrayNoOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example videoId or views, and it is served only by a source that returns e

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "authorId": "100044541544829",
    "authorImage": "https://scontent-phx1-1.xx.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_7…",
    "authorName": "Nike",
    "authorVerified": true,
    "comments": 2737,
    "createdUtc": 1757952115,
    "durationSeconds": 30.025,
    "feedbackId": "ZmVlZGJhY2s6cGZiaWQwMzNLUmdTcnd1RWZ0b3p1OU5CU012MW16YXpZTFJzQXBHa2dhUGlGMmZUa0pu…",
    "id": "1393461115481927",
    "image": "https://scontent-phx1-1.xx.fbcdn.net/v/t51.82787-10/549104239_18565912819020081_…",
    "likes": 8541,
    "reactions": {
      "angry": 36,
      "care": 142,
      "haha": 32,
      "like": 7062,
      "love": 1218,
      "sad": 5,
      "wow": 46
    }
  },
  "found": true
}

Response fields

FieldMeaning
data.textCaption or body text of the post.
data.authorName / data.authorIdDisplay name and numeric ID of the page or profile that posted.
data.authorVerifiedtrue when the author shows as verified.
data.likes / data.comments / data.shares / data.viewsEngagement counts for the post.
data.reactions.like / love / care / haha / wow / sad / angryCount of each reaction type on the post.
data.createdUtcCreation time of the post as a Unix timestamp in seconds.
data.durationSecondsLength of the video in seconds.
data.videoId / data.videoUrlID of the video and a direct link to the video file.
data.feedbackIdIdentifier for the post's feedback object, which holds its reactions and comments.
foundtrue when the post was found.

Notes

  • Pass the full post or reel URL in url, for example https://www.facebook.com/reel/2166091230582141/.
  • Set requireFields to names such as views, reactions, videoUrl, or authorVerified when your code needs them. A dearer source may then serve the call.
  • To read the comments on a post, call Facebook Post Comments.
  • To get the spoken text of a video post, call Facebook Post Transcript.

Pricing

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

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

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

APIs ทั้งหมด
APIราคาการตอบกลับ
Facebook PostAPI นี้
Facebook
เริ่มต้นที่ $0.0012 ต่อครั้งJSON
Facebookเริ่มต้นที่ $0.0012 ต่อครั้งJSON
Facebookเริ่มต้นที่ $0.00462 ต่อครั้งJSON
Facebookเริ่มต้นที่ $0.0012 ต่อครั้งJSON
Facebookเริ่มต้นที่ $0.0011 ต่อครั้งJSON
Facebookเริ่มต้นที่ $0.0011 ต่อครั้งJSON

คู่มือ:Best Facebook API in 2026: Pricing Compared

คำถาม

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

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

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

Facebook Post API ราคาเท่าไร?

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

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

ที่ต้องระบุ: url (string). ตัวเลือก: requireFields (array). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Facebook Post API ส่งคืนอะไร?

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

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

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