Instagram 话题帖子
Instagram 话题标签下的帖子,可选热门、最新或仅 Reels,并给出话题总帖数。
API 数据样例
直接查看该接口实际使用的请求体和完整响应结构。
{
"hashtag": "amazonfinds"
}{
"request_id": "09fc4d88-6684-46c9-ac3f-0e11f9c399d5",
"data": {
"hashtag": {
"name": "amazonfinds",
"post_count": 9130112,
"is_trending": true
},
"items": [
{
"post_id": "DfTS-qEo654",
"url": "https://www.instagram.com/reel/DfTS-qEo654/",
"type": "reel",
"caption": "✨ Small details that make your home feel extra special! 🏡\n😍 Practical, stylish, and totally worth adding to your home!\n🛍️ Once you try it, you’ll wonder how …",
"hashtags": [
"#HomeEssentials",
"#HomeFinds",
"#MustHaveItems",
"#HomeHacks",
"#AmazonFinds"
],
"like_count": 99555,
"comment_count": 5754,
"play_count": 10256872,
"duration_seconds": 23.5,
"posted_at": "2026-11-04T01:39:59.000Z",
"is_paid_partnership": false,
"owner_username": "auralishomes",
"owner_full_name": "Auralis Home",
"owner_is_verified": false,
"tagged_users": [],
"sponsors": [],
"thumbnail_url": "https://scontent-cph2-1.cdninstagram.com/v/t51.71878-15/888511231_1451039339792469_7406636070614637871_n.jpg"
},
{
"post_id": "DeUGuvUS4Kf",
"url": "https://www.instagram.com/reel/DeUGuvUS4Kf/",
"type": "reel",
"caption": "Comment **AMAZON** and I’ll send you the links 🤎\n\nIt’s always the little things on Amazon 👏🏻 These 13 finds are all under $15 and so handy to have around the…",
"hashtags": [
"#AmazonFinds",
"#AmazonHome",
"#AmazonMustHaves",
"#HomeFinds",
"#Under15"
],
"like_count": 26178,
"comment_count": 5152,
"play_count": 2168207,
"duration_seconds": 50.5,
"posted_at": "2026-10-10T12:41:33.000Z",
"is_paid_partnership": false,
"owner_username": "pleasantlybuilt",
"owner_full_name": "René Ceretto | Designer Looks for Less",
"owner_is_verified": true,
"tagged_users": [],
"sponsors": [],
"thumbnail_url": "https://scontent-cph2-1.cdninstagram.com/v/t15.5256-10/841640449_2098379774379222_4770780126742036366_n.jpg"
}
],
"next_cursor": "Ek1JBAgpPhZeZVIEDS4QOTwcAjkWJ1A8RQ5CBUMj…"
}
}可用状态:已开放
该接口已进入 v1 网关、OpenAPI 和订阅权限目录,每次调用消耗 1 个计费单位,查不到数据(
RESULT_NOT_FOUND)也照常计费。
POST /v1/social/instagram/hashtags/posts
下方请求和响应字段已与当前公开契约核对。
MCP 调用
| 项目 | 内容 |
|---|---|
| MCP Code | social_instagram_hashtags_posts |
快速调用
先创建 API 密钥,再将密钥写入服务端环境变量:
export ECOMMERCE_DATA_API_KEY="your_api_key"curl --request POST \
--url https://ecommercedataapi.com/v1/social/instagram/hashtags/posts \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"hashtag": "amazonfinds"
}'使用 AI CLI 接入
复制给 AI CLI
粘贴到 Codex、Claude Code、Gemini CLI 或其他编程智能体中直接完成接入。
请直接在当前代码库中接入 Ecommerce Data API 的「Instagram 话题帖子」接口,不要只给示例代码。
接口文档:https://ecommercedataapi.com/zh/docs/social/instagram/hashtag-posts
请求接口:POST https://ecommercedataapi.com/v1/social/instagram/hashtags/posts
API 密钥环境变量:ECOMMERCE_DATA_API_KEY
请求示例:
{
"hashtag": "amazonfinds"
}
请按以下要求执行:
1. 先阅读接口文档,并检查当前项目使用的语言、框架、HTTP 客户端、目录结构和环境变量约定。
2. 优先复用项目现有的 API 客户端和错误处理方式;如果没有,再创建最小可复用的 Ecommerce Data API 客户端与该接口调用封装。
3. 从服务端环境变量 ECOMMERCE_DATA_API_KEY 读取密钥,发送 Content-Type: application/json 和 X-API-Key 请求头。绝不能把真实密钥写入源码、前端代码、日志、测试快照或 Git。
4. 如果环境变量不存在,提示我自行设置 ECOMMERCE_DATA_API_KEY;不要索取、输出或猜测真实密钥,并继续完成不依赖真实请求的代码与测试。
5. 根据接口文档实现请求与响应类型,处理非 2xx 响应、request_id、error.code、error.message 和 429 限流。
6. 添加一个符合当前项目习惯的最小调用示例或测试。如果密钥已配置且当前环境允许外部请求,再执行一次最小真实调用;否则使用 mock 或静态验证。
7. 运行相关格式化、类型检查和测试,最后汇报修改文件、调用方法、验证结果以及仍需我配置的环境变量。还没有 API 密钥?创建 API 密钥
在 Postman 中打开当前请求
下载当前接口的预配置 Collection,再通过 Postman Import 导入。
导入后在 Collection Variables 中填写 apiKey。创建 API 密钥
Node.js 示例
const response = await fetch(
'https://ecommercedataapi.com/v1/social/instagram/hashtags/posts',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
hashtag: 'amazonfinds',
}),
}
);
const result = await response.json();
if (!response.ok) {
throw new Error(`${result.error?.code}: ${result.error?.message}`);
}
console.log(result.data);Python 示例
import os
import requests
response = requests.post(
"https://ecommercedataapi.com/v1/social/instagram/hashtags/posts",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"hashtag": "amazonfinds",
},
timeout=30,
)
response.raise_for_status()
print(response.json()["data"])请求参数
请求体直接发送下表字段,不要再包裹额外对象;未定义字段会被拒绝。
| 字段 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
hashtag | 字符串 | 是 | 话题标签,可带或不带 #。 | amazonfinds |
feed | 字符串 | 否 | top(默认,热门)、recent(最新)或 reels(仅 Reels)。 | recent |
cursor | 字符串 | 否 | 上一页响应里的 next_cursor,原样传入;第一页不传。 | Ik1IBB8pBBZDZQhVAVdRRwBEME8tRgZFC1wQa31R |
返回结构
| 字段 | 类型 | 说明 |
|---|---|---|
request_id | 字符串 | 本次请求的唯一标识。 |
data | 对象 | 接口业务数据。 |
下表字段位于 data 内。数组接口描述的是单个数组元素,分页接口描述的是 items[] 中的单条记录。
返回字段
| 字段 | 类型 | 说明 | 示例 |
|---|---|---|---|
hashtag.name | 字符串 | 话题名 | amazonfinds |
hashtag.post_count | 整数 | 话题下的帖子总数 | 9130112 |
hashtag.is_trending | 布尔值 | 是否被 Instagram 标记为热门 | true |
items.post_id | 字符串 | 帖子短码,可传给帖子详情和帖子评论 | DezQh2YRFhJ |
items.url | 字符串 | 帖子链接 | - |
items.type | 字符串 | 类型:reel、photo、carousel(多图)、video | reel |
items.caption | 字符串 | 文案 | - |
items.hashtags | 数组 | 文案里的话题标签 | - |
items.like_count | 整数 | 点赞数;作者隐藏时为 null | 5322 |
items.comment_count | 整数 | 评论数 | 170 |
items.play_count | 整数 | 播放量(Reels 和视频);图片为 null | 153434 |
items.duration_seconds | 数字 | 视频时长(秒) | 30.8 |
items.posted_at | 字符串 | 发布时间(ISO 8601,UTC) | 2026-10-22T15:03:11.000Z |
items.is_paid_partnership | 布尔值 | 是否标注为付费合作 | false |
items.owner_username | 字符串 | 作者用户名 | glossier |
items.owner_full_name | 字符串 | 作者显示名称 | - |
items.owner_is_verified | 布尔值 | 作者是否已认证 | true |
items.tagged_users | 数组 | 帖子里标记的账号 | - |
items.sponsors | 数组 | 付费合作标注的品牌方账号 | - |
items.thumbnail_url | 字符串 | 封面图 URL;图片链接由 Instagram 签名,几天后失效 | - |
next_cursor | 字符串 | 下一页游标;最后一页为 null。 | - |
返回示例
{
"request_id": "09fc4d88-6684-46c9-ac3f-0e11f9c399d5",
"data": {
"hashtag": {
"name": "amazonfinds",
"post_count": 9130112,
"is_trending": true
},
"items": [
{
"post_id": "DfTS-qEo654",
"url": "https://www.instagram.com/reel/DfTS-qEo654/",
"type": "reel",
"caption": "✨ Small details that make your home feel extra special! 🏡\n😍 Practical, stylish, and totally worth adding to your home!\n🛍️ Once you try it, you’ll wonder how …",
"hashtags": [
"#HomeEssentials",
"#HomeFinds",
"#MustHaveItems",
"#HomeHacks",
"#AmazonFinds"
],
"like_count": 99555,
"comment_count": 5754,
"play_count": 10256872,
"duration_seconds": 23.5,
"posted_at": "2026-11-04T01:39:59.000Z",
"is_paid_partnership": false,
"owner_username": "auralishomes",
"owner_full_name": "Auralis Home",
"owner_is_verified": false,
"tagged_users": [],
"sponsors": [],
"thumbnail_url": "https://scontent-cph2-1.cdninstagram.com/v/t51.71878-15/888511231_1451039339792469_7406636070614637871_n.jpg"
},
{
"post_id": "DeUGuvUS4Kf",
"url": "https://www.instagram.com/reel/DeUGuvUS4Kf/",
"type": "reel",
"caption": "Comment **AMAZON** and I’ll send you the links 🤎\n\nIt’s always the little things on Amazon 👏🏻 These 13 finds are all under $15 and so handy to have around the…",
"hashtags": [
"#AmazonFinds",
"#AmazonHome",
"#AmazonMustHaves",
"#HomeFinds",
"#Under15"
],
"like_count": 26178,
"comment_count": 5152,
"play_count": 2168207,
"duration_seconds": 50.5,
"posted_at": "2026-10-10T12:41:33.000Z",
"is_paid_partnership": false,
"owner_username": "pleasantlybuilt",
"owner_full_name": "René Ceretto | Designer Looks for Less",
"owner_is_verified": true,
"tagged_users": [],
"sponsors": [],
"thumbnail_url": "https://scontent-cph2-1.cdninstagram.com/v/t15.5256-10/841640449_2098379774379222_4770780126742036366_n.jpg"
}
],
"next_cursor": "Ek1JBAgpPhZeZVIEDS4QOTwcAjkWJ1A8RQ5CBUMj…"
}
}错误响应、请求追踪和限流头说明见错误与限流。