API

Instagram API

通过照片、故事、短视频和直接消息,Instagram 每月吸引约 30 亿用户,是品牌叙事、创作者合作、产品发现和视觉商务的重要平台。

API 参考 版本: 1.0.0 9 终端 身份验证
Instagram

基本网址

https://api.pressmonitor.com

身份验证

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

Authorization: Bearer YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID
GET /comments

评论

参数

名称 类型 位置 必填 描述
shortcode string query 短代码
count integer query 返回结果数量
cursor integer query 下一页的分页游标

代码示例

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

响应

200 成功
GET /followers

粉丝

参数

名称 类型 位置 必填 描述
username_or_id_or_url string query 用户名、ID 或 URL
cursor integer query 下一页的分页游标

代码示例

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

响应

200 成功
GET /following

关注中

参数

名称 类型 位置 必填 描述
username_or_id_or_url string query 用户名、ID 或 URL
cursor integer query 下一页的分页游标

代码示例

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

响应

200 成功
GET /hashtag-posts

标签帖子

参数

名称 类型 位置 必填 描述
hashtag string query 标签
count integer query 返回结果数量
cursor integer query 下一页的分页游标

代码示例

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

响应

200 成功
GET /info

信息

参数

名称 类型 位置 必填 描述
username_or_id_or_url string query 用户名、ID 或 URL
cursor integer query 下一页的分页游标
include_about string query 包含关于
url_embed_safe string query URL 嵌入安全

代码示例

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

响应

200 成功
GET /post-info

帖子信息

参数

名称 类型 位置 必填 描述
url_or_shortcode string query URL 或短代码
cursor integer query 下一页的分页游标
url_embed_safe string query URL 嵌入安全

代码示例

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

响应

200 成功
GET /posts

帖子

参数

名称 类型 位置 必填 描述
username_or_id_or_url string query 用户名、ID 或 URL
cursor integer query 下一页的分页游标

代码示例

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

响应

200 成功
GET /search-posts

搜索帖子

参数

名称 类型 位置 必填 描述
search_query string query 搜索查询
cursor integer query 下一页的分页游标

代码示例

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

响应

200 成功
GET /search-users

搜索用户

参数

名称 类型 位置 必填 描述
search_query string query 搜索查询
cursor integer query 下一页的分页游标

代码示例

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

响应

200 成功