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

Facebook Followers

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

List the public followers (or accounts followed) of any Facebook page or profile URL as normalized JSON records.

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

Phòng thử nghiệm

Đầu vào
Facebook page or profile URL to list follows for (e.g. https://www.facebook.com/nasa).
120
Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less. Phạm vi: 1 đến 20.
Which relation to fetch: 'follower' or 'following' (e.g. follower).
Đầ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 Followers API

Returns a list of public followers, or accounts followed, for a Facebook page or profile. It needs a Facebook page or profile url. Each record has an ID, name, type, profile URL and image URL.

Use cases

  • Sample the public followers of a brand page such as Nike to see what kinds of accounts follow it.
  • List the accounts a profile follows by setting followType to following.
  • Collect follower profile URLs to pass to a profile lookup for further research.
  • Check whether a page exposes public followers by testing the found flag.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/followers" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.facebook.com/nike", "limit": 3}'

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

Parameters

NameTypeRequiredDescription
urlstringYesFacebook page or profile URL to list follows for (e.g. https://www.facebook.com/nasa).
followTypestringNoWhich relation to fetch: 'follower' or 'following' (e.g. follower).
limitintegerNoMaximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.

Example response

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

{
  "data": {
    "items": [
      {
        "id": "100068981584033",
        "image": "https://scontent.fnbo1-2.fna.fbcdn.net/v/t39.30808-1/475753792_917567940552584_4…",
        "name": "Phawulothando",
        "type": "profile",
        "url": "https://www.facebook.com/people/Phawulothando/100068981584033/"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
foundtrue when the lookup returned data. A lookup that finds nothing returns false.
data.items[]One follower or followed account per entry. The list holds at most limit entries.
data.items[].idNumeric Facebook ID of the follower account, returned as a string.
data.items[].nameDisplay name of the follower account.
data.items[].typeKind of account. The sample values are profile.
data.items[].urlFacebook URL of the follower account. You can use it as the url input in other Facebook APIs.
data.items[].imageURL of the account's profile picture.

Notes

  • Set limit between 1 and 20. The default is 20.
  • Set followType to follower (default) or following to choose the direction.
  • To get more detail on an account in the list, pass its url to Facebook Profile.
  • If you only have a page name and need its ID, use Facebook Profile ID.

Pricing

Billed at the actual cost of each call, about $0.12 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.12 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.0012 mỗi lần gọiJSON
FacebookTừ $0.0011 mỗi lần gọiJSON
FacebookTừ $0.0011 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 Followers?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/facebook/followers 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 Followers có giá bao nhiêu?

Từ $0.12 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 Followers chấp nhận những tham số nào?

Bắt buộc: url (string). Tùy chọn: limit (integer) và followType (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Facebook Followers 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 Followers 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.