Pinterest 画板详情 API
接口健康状态
- 24h 健康值
- 正常
- 健康 / 正常
- 可用
- 少量可用
- 基本不可用
24 小时趋势
30 天趋势
画板详情:返回单个对象;主要字段 id、name、url、description、pin_count、section_count。
请求发到 POST https://api.everyinfra.com/api/v1/social,platform 填 pinterest,action 填 board_detail。 单价 $1.39 / 千次(每次 $0.001389),失败和空结果都不收费。 同步返回;慢任务可在请求体加 "mode": "async",先拿 job_id 再轮询。
Pinterest 画板详情按画板链接 url 读一个画板:名称、简介、Pin 数、分区数、粉丝数、是否协作画板、可见性、所有者的用户名和昵称,以及创建时间。它回答「这个画板收了多少内容、有多少人关注、归谁所有」,适合评估一个画板值不值得合作或跟踪。
画板列表返回的字段和这里相同,两页的区别在输入:只有用户名、想列出这个人的所有画板,用画板列表那一页,一次最多 50 个;手里已经是画板链接、只看这一个画板,用这一页。
AI 提示词
#请帮我用 EveryInfra 的「Pinterest 画板详情」接口(pinterest/board_detail)写一个数据采集脚本。
接口约定:
- 请求:POST https://api.everyinfra.com/api/v1/social,请求头 Authorization: Bearer <API Key>;Key 从环境变量 EVERYINFRA_API_KEY 读取,不要写进代码。
- 请求体里 platform 填 pinterest,action 填 board_detail,参数放在 params 里。
- 必填参数:
- url:pin 使用含 /pin/数字ID/ 的具体 Pin 链接;board_detail 使用 /用户名/画板名/ 的画板链接,后者也接受相对路径。不能把画板 URL 当成 Pin。
- 返回一个对象,主要字段:id、name、url、description、pin_count(Pin 数)、section_count(画板分区数)、follower_count、cover_image_url(封面图)、is_collaborative(是否为多人协作画板)、privacy(可见性设置)、owner_username(所有者用户名)、owner_name(所有者昵称);一共 13 个字段,完整列表见 https://api.everyinfra.com/api/v1/social/catalog?platform=pinterest。
- 示例请求体:
{
"platform": "pinterest",
"action": "board_detail",
"params": {
"url": "https://www.pinterest.com/pinterest/official-news/"
}
}
- 计费:$1.39 / 千次;失败和空结果不扣费。
- 一次要采几十上百个时,在请求体加 "mode": "async":先拿到 job_id,再轮询 GET https://api.everyinfra.com/api/v1/jobs/{job_id} 取结果。
- 返回 422 时,按错误信息里的候选参数和允许值修正;返回 429 或 503 时,按 Retry-After 等待后重试。
写代码前,先问清楚我要采哪些对象、一共多少个、需要哪些字段、结果存成什么格式,再把方案和大概花费讲给我确认。请求参数
#| 参数名 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
Authorization | header | string | 是 | - | Bearer 加你的 API Key。在控制台创建;不要放进网址或代码仓库。 |
platform | body | string | 是 | pinterest | 平台标识,固定值。 |
action | body | string | 是 | board_detail | 能力标识,固定值。 |
url | body.params | string | 是 | - | pin 使用含 /pin/数字ID/ 的具体 Pin 链接;board_detail 使用 /用户名/画板名/ 的画板链接,后者也接受相对路径。不能把画板 URL 当成 Pin。 |
代码示例
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "pinterest",
"action": "board_detail",
"params": {
"url": "https://www.pinterest.com/pinterest/official-news/"
}
}'OpenAPI 定义 (JSON)示例从环境变量 EVERYINFRA_API_KEY 读取 Key,复制出去的代码不含你的 Key。
响应示例
#{ "id": "req_…", "platform": "pinterest", "action": "board_detail", "results": { "id": "•••", "name": "Official news", "url": "https://www.pinterest.com/pinterest/official-news/", "description": "Get the inside scoop on Pinterest news. Be the first to know about new products, program updates and behind-the-scenes.", "pin_count": 51, "section_count": 0, "follower_count": 4251514, "cover_image_url": "https://i.pinimg.com/200x150/15/e3/b1/15e3b17f9d7fc968276788a0c7fccb70.jpg", "is_collaborative": false, "privacy": "public", "owner_username": "•••", "owner_name": "•••", "platform": "pinterest" }, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
返回字段
#业务数据在 results 里;下表是每条记录可能包含的字段,平台没有提供的值不会被编造。
| 字段 | 含义 |
|---|---|
id | 该记录在原平台上的唯一标识。仅在同一平台内唯一,跨平台可能重复。 |
name | 名称。用于账号/商品/商家类能力,指该对象本身的名字。 |
url | 该记录在原平台上的可访问链接。 |
description | 简介或描述,通常比 text 短。 |
pin_count | Pin 数。 |
section_count | 画板分区数。 |
follower_count | 粉丝数。null 表示不公开,不等于 0。 |
cover_image_url | 封面图。 |
is_collaborative | 是否为多人协作画板。 |
privacy | 可见性设置。 |
owner_username | 所有者用户名。 |
owner_name | 所有者昵称。 |
created_at | 创建时间,格式同 posted_at。 |
platform | 数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。 |
常见问题
#url 填什么形式的链接?
#填画板链接,形如 /用户名/画板名/,完整的网址或相对路径都接受,示例是 https://www.pinterest.com/pinterest/official-news/。路径里含 /pin/ 的是单个 Pin 的链接,不是画板,填进来不对。
pin_count 和 follower_count 怎么看?
#pin_count 是画板里的 Pin 数,看收了多少内容;follower_count 是画板的粉丝数,为 null 表示不公开,不等于 0。两个数配上 created_at,能看出一个画板建了多久、攒下多少内容和关注。
怎么判断一个画板是不是多人在维护?
#看 is_collaborative,为真表示多人协作画板。owner_username 和 owner_name 是所有者的用户名和昵称,privacy 是可见性设置。
错误与计费
#- 401
- 缺少 Key 或 Key 无效。
- 402
- 余额不足,先充值。
- 422
- 参数名或取值不对,按错误信息给的候选改;不扣费。
- 429
- 超过每分钟请求上限,按 Retry-After 等待后再试。
- 503
- 暂时无法完成,预扣的费用退回;结果未知时先核对,不要直接重发。
- 200 空结果
- 没有数据,不扣费。