主题
Pinterest 页面保存数实时查询
POST /v3/business_data/social_media/pinterest/live
接口说明
该接口用于实时查询指定页面 URL 在 Pinterest 上的保存次数(Pins 数)。
Pinterest 中的 Pin 可理解为用户对的“保存”。针对你提交的每个页面 URL,本接口会返回该页面通过 Pinterest Save Button 产生的保存次数。
- 单次任务最多可提交 10 个页面 URL
- 按 每个 URL 分别计费
- 请求方式:
POST - 接口路径:
/v3/business_data/social_media/pinterest/live
完整请求地址:
https://api.seermartech.cn/v3/business_data/social_media/pinterest/live
计费说明
该接口按请求中的目标 URL 数量计费,即 targets 数组中每个 URL 都会产生一次计费。
由于参考文档未提供固定单价,本文不展示固定人民币参考价。扣费以响应头 X-SeerMarTech-Charge-CNY 为准。
请求格式
- 请求体为 UTF-8 编码的 JSON
- POST 请求体格式为 JSON 数组:
[{ ... }] - 单次 POST 调用提交一个任务
- 调用频率上限:2000 次/分钟
请求参数
任务级参数
| 字段名 | 类型 | 填 | 说明 |
|---|---|---|---|
targets | array | 是 | 目标页面 URL 列表。使用完整绝对地址, http:// 或 https://。例如:https://example.com/page。最多可传 10 个 URL,并按每个 URL 计费。 |
tag | string | 否 | 自定义任务标识,最长 255 个字符。可用于请求与结果的对应匹,返回结果中的 data 对象会原样带回该值。 |
返回结果说明
接口返回 JSON 数据,顶层 tasks 数组,每个任务含结果。
顶层字段
| 字段名 | 类型 | 说明 |
|---|---|---|
version | string | 当前 API 版本 |
status_code | integer | 通用状态码。完整列表参考 /v3/appendix/errors |
status_message | string | 通用状态信息。完整列表参考 /v3/appendix/errors |
time | string | 执行耗时,单位秒 |
cost | float | 本次请求总费用,单位 USD |
tasks_count | integer | tasks 数组中的任务数 |
tasks_error | integer | 返回错误的任务数 |
tasks | array | 任务结果数组 |
tasks 数组字段
| 字段名 | 类型 | 说明 |
|---|---|---|
id | string | 任务唯一标识,UUID 格式 |
status_code | integer | 任务状态码,范围通常为 10000-60000 |
status_message | string | 任务状态信息 |
time | string | 任务执行耗时,单位秒 |
cost | float | 当前任务费用,单位 USD |
result_count | integer | result 数组中的结果数量 |
path | array | 请求路径 |
data | object | 回显请求时提交的参数 |
result | array | 结果数组 |
result 数组字段
| 字段名 | 类型 | 说明 |
|---|---|---|
type | string | 结果类型,固定为 social_media_pinterest_item |
page_url | string | 当前结果对应的页面 URL,与请求 targets 中的 URL 对应 |
pins_count | integer | 该页面在 Pinterest 上的保存次数。表示通过 Pinterest Save Button 从该页面产生的保存数 |
请求示例
cURL
bash
curl --location --request POST "https://api.seermartech.cn/v3/business_data/social_media/pinterest/live" \
--header "Authorization: Bearer smt_live_YOUR_KEY" \
--header "Content-Type: application/json" \
--data-raw '[
{
"tag": "some_string_123",
"targets": [
"https://www.simplyrecipes.com/recipes/grilled_salmon_with_cucumber_mango_salsa/",
"https://tasty.co/recipe/classic-lasagna",
"https://www.allrecipes.com/recipe/255263/sicilian-roasted-chicken/"
]
}
]'Python
python
import requests
url = "https://api.seermartech.cn/v3/business_data/social_media/pinterest/live"
headers = {
"Authorization": "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json"
}
payload = [
{
"tag": "some_string_123",
"targets": [
"https://www.simplyrecipes.com/recipes/grilled_salmon_with_cucumber_mango_salsa/",
"https://tasty.co/recipe/classic-lasagna",
"https://www.allrecipes.com/recipe/255263/sicilian-roasted-chicken/"
]
}
]
response = requests.post(url, json=payload, headers=headers)
print(response.json)TypeScript
typescript
import axios from "axios";
const payload = [
{
tag: "some_string_123",
targets: [
"https://www.simplyrecipes.com/recipes/grilled_salmon_with_cucumber_mango_salsa/",
"https://tasty.co/recipe/classic-lasagna",
"https://www.allrecipes.com/recipe/255263/sicilian-roasted-chicken/"
]
}
];
axios({
method: "post",
url: "https://api.seermartech.cn/v3/business_data/social_media/pinterest/live",
headers: {
"Authorization": "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json"
},
data: payload
})
.then((response) => {
// 返回结果
console.log(response.data);
})
.catch((error) => {
console.error(error);
});响应示例
json
{
"version": "0.1.20210721",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.6007 sec.",
"cost": 0.00012,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.6007 sec.",
"cost": 0.00012,
"result_count": 3,
"path": [
"v3",
"business_data",
"social_media",
"pinterest",
"live"
],
"data": {
"api": "business_data",
"function": "pinterest",
"targets": [
"https://www.simplyrecipes.com/recipes/grilled_salmon_with_cucumber_mango_salsa/",
"https://tasty.co/recipe/classic-lasagna",
"https://www.allrecipes.com/recipe/255263/sicilian-roasted-chicken/"
],
"tag": "some_string_123"
},
"result": [
{
"type": "social_media_pinterest_item",
"page_url": "https://www.simplyrecipes.com/recipes/grilled_salmon_with_cucumber_mango_salsa/",
"pins_count": 125
},
{
"type": "social_media_pinterest_item",
"page_url": "https://tasty.co/recipe/classic-lasagna",
"pins_count": 98
},
{
"type": "social_media_pinterest_item",
"page_url": "https://www.allrecipes.com/recipe/255263/sicilian-roasted-chicken/",
"pins_count": 47
}
]
}
]
}状态码与错误处理
请重点处理以下两层状态:
- 请求级状态
- 查看顶层
status_code与status_message
- 任务级状态
- 查看
tasks[].status_code与tasks[].status_message
完整错误码与状态说明参考:
/v3/appendix/errors
建议在接时建立统一的异常处理机制,覆盖以下:
- 鉴权失败
- 请求参数格式错误
targets数量限- URL 非完整绝对地址
- 平台数据源暂时不可用
- 单个任务返回错误但 HTTP 请求本身成功
使用建议
- 提交
targets时务使用标准完整 URL - 若需要批量监控多个页面在 Pinterest 上的传播表现,可通过
tag标记不同业务批次 - 由于按 URL 计费,建议优提交高价值页面,如商品页、博客文章页、食谱页或活动落地页
- 若需做周期性监控,可定时轮询并保存
pins_count变化趋势
实用场景
- 监控传播:定期查询博客、食谱、指南页在 Pinterest 上的保存次数,评估在视觉社交平台的自然扩散效果。
- 筛选高潜力页面:对一批落地页或文章页批量比对
pins_count,快速识别更容易被收藏和二次传播的主题。 - 评估按钮布局效果:在页面增加或调整 Pinterest Save Button 后,对比改版前后的保存次数变化,验证交互优化是否提升分享率。
- 支持选题决策:根据不同类型的 Pinterest 保存表现,反推用户偏好,为后续 SEO策划和专题制作提供依据。
- 跟踪营销活动页面热度:监测活动页、商品页、专题页的 Pinterest 保存量变化,判断活动素材是否备持续传播价值。