urlstringbắt buộc
Full Facebook page/profile URL.
https://api.sandbase.ai/v1/api/facebook/profile-reelsList a Facebook page's reels by URL with cursor pagination (caption, view count, permalink, thumbnail).
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns a list of reels published by a Facebook page, with caption, view count, permalink, thumbnail and author details for each reel. It needs the full page or profile URL, for example https://www.facebook.com/nike.
createdUtc to see how often it posts.curl -X POST "https://api.sandbase.ai/v1/api/facebook/profile-reels" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.facebook.com/nike"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full Facebook page/profile URL. |
cursor | string | No | Pagination cursor from a previous response. |
requireFields | array | No | 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 feedbackId or authorVerified, and it is served only by a source th |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"nextCursor": "cur_Y0DHHLlEwg5FrmrjAWioUg",
"reels": [
{
"authorId": "100044541544829",
"authorImage": "https://scontent-phl2-1.xx.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_7…",
"authorName": "Nike",
"authorVerified": true,
"caption": "Leave your limits at the surface. #JustDoIt",
"comments": null,
"createdUtc": 1757952115,
"durationSeconds": 30.025,
"feedbackId": "ZmVlZGJhY2s6cGZiaWQwMzNLUmdTcnd1RWZ0b3p1OU5CU012MW16YXpZTFJzQXBHa2dhUGlGMmZUa0pu…",
"id": "1393461115481927",
"likes": null,
"shares": null
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.reels[].url | Permalink to the reel on Facebook. |
data.reels[].caption | Text the page posted with the reel, including hashtags. |
data.reels[].views | View count of the reel as a number. |
data.reels[].createdUtc | Publish time as a Unix timestamp in seconds. |
data.reels[].durationSeconds | Length of the reel in seconds. |
data.reels[].thumbnail | Image URL for the reel's cover frame. |
data.reels[].videoUrl | Direct URL of the video file. |
data.reels[].authorName / data.reels[].authorId / data.reels[].authorVerified | Name and ID of the page that posted the reel, and whether it is verified. |
data.reels[].id / data.reels[].videoId | Identifiers for the reel. videoId is the same value that appears in the reel url. |
data.nextCursor | Cursor that fetches the next page of reels. |
data.nextCursor as cursor in the next request to get more reels.likes, comments and shares can come back as null. Add them to requireFields if you need them, which may change the price.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/profile-reels" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.facebook.com/nike"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
urlstringbắt buộcFull Facebook page/profile URL.
cursorstringPagination cursor from a previous response.
requireFieldsarrayOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `feedbackId` or `authorVerified`, 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 reel that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Facebook Profile ReelsAPI này Facebook | Từ $0.0012 mỗi lần gọi | JSON |
Facebook | Từ $0.0012 mỗi lần gọi | JSON |
Facebook | Từ $0.00462 mỗi lần gọi | JSON |
Facebook | Từ $0.0012 mỗi lần gọi | JSON |
Facebook | Từ $0.0011 mỗi lần gọi | JSON |
Facebook | Từ $0.0011 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/facebook/profile-reels 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.
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ý.
Bắt buộc: url (string). Tùy chọn: cursor (string) và requireFields (array). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
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.
Không. Facebook Profile Reels 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.