Facebook
Facebook Home API
获取 Facebook 主页资料及首屏作品数据。
接口说明
Facebook Home API 获取 Facebook 主页资料及首屏作品数据。
使用 Pangolinfo API Key 调用,返回结构化 JSON 数据。
请求URL
请求头
| 参数名 | 参数值 | 类型 | 说明 |
|---|---|---|---|
| Content-Type | application/json | string | 数据格式 |
| Authorization | Bearer xxx | string | 认证凭证 |
采集最长约75秒,客户端超时建议设为90秒。
请求参数
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
| target | Yes | string | 主页链接; 也可直接传主页数字 id 或主页名 |
| options | No | object | 仅处理下列开放参数;未列出的字段忽略,内部参数不可覆盖。 |
options 参数说明
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
| includeTransparency | No | boolean | 额外取透明度 tab: 主页创建日期 / 主页 ID / 是否在投广告 / 负责实体; 默认 false |
仅处理本页列出的请求参数,其他字段忽略。分页游标原样传回,不编码、解码或转换格式。
附带首屏作品;更多作品请使用对应作品接口(如提供)。
响应值
| 返回值 | 类型 | 说明 |
|---|---|---|
| code | integer | 状态码,0 表示成功 |
| message | string | 响应信息,成功时为 ok |
| pointCost | number | 本次请求实际消耗的积点 |
| data | object | 返回数据,结构见下表 |
| meta | object | 请求标识及耗时(毫秒) |
| billing | object | 计费条数、单价及规则版本 |
返回参数 data 说明
| 返回值 | 类型 | 说明 |
|---|---|---|
| type | string | Type 可用值: [“home”] |
| profile | object | Profile |
| works | any[] | 恒为空: 匿名拿不到主页帖子列表 |
data.profile 字段说明
| 返回值 | 类型 | 说明 |
|---|---|---|
| accountId | string | null | 主页 id |
| id | string | null | 主页 id (同 accountId) |
| nickname | string | null | 名字 |
| name | string | null | 名字 (同 nickname) |
| username | string | null | 用户名 (vanity, 链接里那段) |
| vanity | string | null | 用户名 |
| userId | string | null | 用户 id |
| pageId | string | null | 公共主页 id (SSR); 常为 null, 透明度里有 transparency.pageId |
| entityId | string | null | 实体 id |
| category | string | null | 主页类目 |
| category_name | string | null | 主页类目 (同 category) |
| verified | boolean | 是否认证 |
| isVerified | boolean | 是否认证 (同 verified) |
| gender | string | null | 性别 (平台字段, 公共主页也有) |
| bio | string | null | 简介 |
| avatar | string | null | 头像 |
| cover | string | null | 封面图 |
| profileUrl | string | null | 主页链接 |
| followersCount | number | null | 粉丝数 |
| followingCount | number | null | 关注数 |
| friends | number | null | 好友数 (个人主页) |
| likesCount | number | null | 点赞数 (公共主页) |
| talkingAboutThis | number | null | 正在讨论人数 |
| contactEmail | string | null | 邮箱 |
| string | null | 邮箱 (同 contactEmail) | |
| externalLinks | string[] | 外链 |
| createdTimestamp | number | null | 页面里第一个 created_time 的毫秒值; 实测多为最近帖子的时间, 不是注册时间 (主页创建日见 transparency.creationDate) |
| work | string[] | 工作经历 (个人主页简介卡) |
| education | string[] | 教育经历 |
| currentCity | string | null | 现居城市 |
| hometown | string | null | 家乡 |
| relationship | string | null | 感情状况 |
| address | string | null | 地址 (公共主页) |
| phone | string | null | 电话 |
| rating | object | null | 评分 (商家主页) |
| priceRange | string | null | 价格区间 |
| businessHours | string | null | 营业时间 |
| services | string[] | 服务项目 |
| responsibleEntity | string | null | 负责实体 / 确认的所有者 |
| otherAccounts | string[] | 关联的其他账号 |
| introCards | object | 简介卡原始文案, 键为卡片类型 (WEBSITE / PROFILE_EMAIL / CONFIRMED_OWNER_LABEL / INFLUENCER_CATEGORY …) |
| targetUrl | string | 请求的链接 |
| transparency | object | null | 主页透明度; 只有 options.includeTransparency 才有, 取不到为 null |
data.profile.rating 字段说明
| 返回值 | 类型 | 说明 |
|---|---|---|
| text | string | 评分原文 |
| recommendPercent | number | 推荐率 (%) |
| reviewCount | number | null | 评价数 |
data.profile.transparency 字段说明
| 返回值 | 类型 | 说明 |
|---|---|---|
| pageId | string | null | 公共主页 id |
| creationDate | object | null | 主页创建日期 |
| adStatus | string | null | 广告投放状态 |
| confirmedOwner | string | null | 确认的所有者 |
| fields | object | 透明度页全部字段原文, 键为字段类型 |
请求示例
返回示例
下例截取实际响应中的首条列表记录,长文本与链接作了缩写;pointCost 为该次完整响应的实际费用。完整字段结构可在在线调试页查看。
积点消耗说明
每份主页资料消耗 0.8 积点,附带作品免费。
空结果、失败响应不扣费。同一响应中相同 ID 只计一次,独立调用和续页分别计费。详见 社媒评论 API 计费说明。

