API

Facebook API

每天约有20亿用户在Facebook上分享帖子、照片、视频、群组、活动和Marketplace列表,使其在社区传播、客户服务、本地发现和社交商业中至关重要。

API 参考 版本: 1.0.0 29 终端 身份验证
Facebook

基本网址

https://api.pressmonitor.com

身份验证

所有请求使用 Bearer 令牌身份验证。每个调用都添加授权头。

Authorization: Bearer YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID
GET /get-post

获取帖子

参数

名称 类型 位置 必填 描述
post_id string query 帖子ID

代码示例

curl -X GET "https://api.pressmonitor.com/get-post?post_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /group-info

群组信息

参数

名称 类型 位置 必填 描述
id string query ID

代码示例

curl -X GET "https://api.pressmonitor.com/group-info?id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /marketplace-product

市场产品

参数

名称 类型 位置 必填 描述
product_id string query 产品ID

代码示例

curl -X GET "https://api.pressmonitor.com/marketplace-product?product_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /marketplace-profile

市场资料

参数

名称 类型 位置 必填 描述
user_id string query 用户ID
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/marketplace-profile?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /page-albums

页面相册

参数

名称 类型 位置 必填 描述
id string query ID
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/page-albums?id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /page-details

页面详情

参数

名称 类型 位置 必填 描述
id string query ID

代码示例

curl -X GET "https://api.pressmonitor.com/page-details?id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /page-feed

页面动态

参数

名称 类型 位置 必填 描述
id string query ID
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/page-feed?id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /pages-search-post

页面搜索帖子

参数

名称 类型 位置 必填 描述
query string query 搜索查询
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/pages-search-post?query=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /post-comments

帖子评论

参数

名称 类型 位置 必填 描述
post_id string query 帖子ID
end_cursor string query 结束游标
order string query 排序

代码示例

curl -X GET "https://api.pressmonitor.com/post-comments?post_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /post-reactions

帖子反应

参数

名称 类型 位置 必填 描述
post_id string query 帖子ID
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/post-reactions?post_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /post-reactions-count

帖子反应数

参数

名称 类型 位置 必填 描述
post_id string query 帖子ID

代码示例

curl -X GET "https://api.pressmonitor.com/post-reactions-count?post_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /post-shares

帖子分享

参数

名称 类型 位置 必填 描述
post_id string query 帖子ID
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/post-shares?post_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /posts-search-post

帖子搜索帖子

参数

名称 类型 位置 必填 描述
query string query 搜索查询
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/posts-search-post?query=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /profile-about

个人资料简介

参数

名称 类型 位置 必填 描述
user_id string query 用户ID

代码示例

curl -X GET "https://api.pressmonitor.com/profile-about?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /profile-albums

个人资料相册

参数

名称 类型 位置 必填 描述
user_id string query 用户ID
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/profile-albums?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /profile-feed

个人资料动态

参数

名称 类型 位置 必填 描述
user_id string query 用户ID
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/profile-feed?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /profile-friends

个人资料好友

参数

名称 类型 位置 必填 描述
user_id string query 用户ID
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/profile-friends?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /profile-likes

个人资料点赞

参数

名称 类型 位置 必填 描述
user_id string query 用户ID
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/profile-likes?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /profile-page

个人资料页面

参数

名称 类型 位置 必填 描述
user_id string query 用户ID

代码示例

curl -X GET "https://api.pressmonitor.com/profile-page?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /profile-photos

个人资料照片

参数

名称 类型 位置 必填 描述
user_id string query 用户ID
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/profile-photos?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /profile-search-post

个人资料搜索帖子

参数

名称 类型 位置 必填 描述
query string query 搜索查询
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/profile-search-post?query=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /profile-videos

个人资料视频

参数

名称 类型 位置 必填 描述
user_id string query 用户ID
end_cursor string query 结束游标

代码示例

curl -X GET "https://api.pressmonitor.com/profile-videos?user_id=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /share-post-url

分享帖子URL

参数

名称 类型 位置 必填 描述
url string query URL

代码示例

curl -X GET "https://api.pressmonitor.com/share-post-url?url=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功
GET /video-id-url

视频ID URL

参数

名称 类型 位置 必填 描述
url string query URL

代码示例

curl -X GET "https://api.pressmonitor.com/video-id-url?url=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID"

响应

200 成功