API
Instagram API
通过照片、故事、短视频和直接消息,Instagram 每月吸引约 30 亿用户,是品牌叙事、创作者合作、产品发现和视觉商务的重要平台。
API 参考 版本: 1.0.0 9 终端 身份验证
基本网址
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 成功