Facebook 查找公共主页 API
使用 Facebook 自带的快速搜索按名称查找 Facebook 公共主页和个人主页。按名称查找只返回基本身份字段:名称、URL、头像、Facebook ID 和认证状态。匹配结果可能包括个人主页和公共主页。如需完整的公共主页详情(类别、粉丝、电话、网站),请使用 facebook.search_pages。
US$9.75/千次请求,按请求付费,无需订阅。
Pages and profiles named "NASA"
NASA
Page
NASA Jet Propulsion Laboratory
Page
NASA Kennedy
Page
{"id": "18342518979","name": "NASA","url": "https://www.facebook.com/NASA","image": "https://scontent.xx.fbcdn.net/v/t39.30808-1/nasa_profile.jpg?ccb=1-7&_nc_sid=abc123","isVerified": true}
价格与服务商
Facebook 查找公共主页 API 价格:一个 API,2 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
试一试
一个请求获取 Facebook 查找公共主页
这个示例展示了 9 个字段中的 8 个。查看全部字段
{
"found": true,
"data": {
"items": [
{
"id": "18342518979",
"name": "NASA",
"url": "https://www.facebook.com/NASA",
"image": "https://scontent.xx.fbcdn.net/v/t39.30808-1/nasa_profile.jpg?ccb=1-7&_nc_sid=abc123",
"isVerified": true
},
{
"id": "170928549604",
"name": "NASA Jet Propulsion Laboratory",
"url": "https://www.facebook.com/NASAJPL",
"image": "https://scontent.xx.fbcdn.net/v/t39.30808-1/nasajpl_profile.jpg?ccb=1-7&_nc_sid=def456",
"isVerified": true
},
{
"id": "222846867752",
"name": "NASA Kennedy",
"url": "https://www.facebook.com/NASAKennedy",
"image": "https://scontent.xx.fbcdn.net/v/t39.30808-1/nasakennedy_profile.jpg?ccb=1-7&_nc_sid=ghi789",
"isVerified": false
}
]
}
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- querystring
NASA
要查找的名称,就像在 Facebook 搜索框中输入的那样(例如 NASA 或 plumber chicago)。
- limitinteger
5
最多返回的匹配数(1-7,默认 7)。Facebook 的快速搜索对一个名称最多返回 7 个匹配。
响应
JSON,每个字段一个示例值。
Pages and profiles whose name matches the query, in Facebook's order. Matches can include personal profiles as well as Pages.
- idstring
18342518979
Numeric Facebook id of the Page or profile, as a string. Populated whenever the provider has data for the entity.
- imagestring
https://scontent.xx.fbcdn.net/v/t39.30808-1/nasa_profile.jpg?ccb=1-7&_nc_sid=abc123
Profile picture URL. Facebook signs it in the query string, so it works only as returned and expires. Populated whenever the provider has data for the entity.
- isVerifiedboolean
true
Whether Facebook shows the verified badge on this Page or profile.
- namestring
NASA
Display name of the Page or profile. Populated whenever the provider has data for the entity.
- urlstring
https://www.facebook.com/NASA
Facebook URL of the Page or profile. Populated whenever the provider has data for the entity.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
常见问题
关于 Facebook 查找公共主页 API
AnyAPI 的 Facebook 查找公共主页 API 只需一次 POST 请求 /v1/run/facebook.page_lookup,就以统一格式的 JSON 返回 Facebook 数据。使用 Facebook 自带的快速搜索按名称查找 Facebook 公共主页和个人主页。按名称查找只返回基本身份字段:名称、URL、头像、Facebook ID 和认证状态。匹配结果可能包括个人主页和公共主页。如需完整的公共主页详情(类别、粉丝、电话、网站),请使用 facebook.search_pages。AnyAPI 会在 2 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$9.75 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Facebook 查找公共主页 API 调用中有 100.0% 成功,响应时间中位数为 3.0 秒,共测量 312 次调用。