Pinterest 用户 Board
curl --request POST \
--url https://api.socq.ai/v1/pinterest/user-boards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"urls": [
"<string>"
],
"callback_url": "<string>",
"results_limit": 25
}
'import requests
url = "https://api.socq.ai/v1/pinterest/user-boards"
payload = {
"urls": ["<string>"],
"callback_url": "<string>",
"results_limit": 25
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({urls: ['<string>'], callback_url: '<string>', results_limit: 25})
};
fetch('https://api.socq.ai/v1/pinterest/user-boards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.socq.ai/v1/pinterest/user-boards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'urls' => [
'<string>'
],
'callback_url' => '<string>',
'results_limit' => 25
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.socq.ai/v1/pinterest/user-boards"
payload := strings.NewReader("{\n \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 25\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.socq.ai/v1/pinterest/user-boards")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 25\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.socq.ai/v1/pinterest/user-boards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 25\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "<string>",
"status": "<string>",
"created_time": "<string>"
}
}{
"code": 422,
"error": {
"message": "<string>",
"type": "<string>",
"details": {}
}
}Pinterest
Pinterest 用户 Board
获取 Pinterest 主页的全部 Board 及 Pin 数、关注数。
POST
/
v1
/
pinterest
/
user-boards
Pinterest 用户 Board
curl --request POST \
--url https://api.socq.ai/v1/pinterest/user-boards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"urls": [
"<string>"
],
"callback_url": "<string>",
"results_limit": 25
}
'import requests
url = "https://api.socq.ai/v1/pinterest/user-boards"
payload = {
"urls": ["<string>"],
"callback_url": "<string>",
"results_limit": 25
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({urls: ['<string>'], callback_url: '<string>', results_limit: 25})
};
fetch('https://api.socq.ai/v1/pinterest/user-boards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.socq.ai/v1/pinterest/user-boards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'urls' => [
'<string>'
],
'callback_url' => '<string>',
'results_limit' => 25
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.socq.ai/v1/pinterest/user-boards"
payload := strings.NewReader("{\n \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 25\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.socq.ai/v1/pinterest/user-boards")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 25\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.socq.ai/v1/pinterest/user-boards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"urls\": [\n \"<string>\"\n ],\n \"callback_url\": \"<string>\",\n \"results_limit\": 25\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "<string>",
"status": "<string>",
"created_time": "<string>"
}
}{
"code": 422,
"error": {
"message": "<string>",
"type": "<string>",
"details": {}
}
}Pinterest 用户 Board
列出一个 Pinterest 主页下所有公开的 Board。每个 Board 返回名称、描述、封面、所有者、创建时间,以及 Pin 数、关注者数、分区数和协作者数。Board 能看出一个品牌或创作者怎么归类灵感、重点经营哪些主题、哪些合集真正有人关注,所以审视竞品的 Pinterest 布局、按主题筛选创作者时,第一步通常就是调它。{
"urls": [
"https://www.pinterest.com/marthastewart/"
],
"results_limit": 25
}
标准结果字段
任务结果使用下方稳定的 SocQ 字段。系统会统一来源特有的字段名和格式,但不会推断或补充来源未提供的数据。如需缩小返回字段集合,MCP 查询使用fields,Typed 工具使用 _result_fields,CLI 使用 --result-fields。声明字段的值为 null 时仍会保留。
| 字段 | 类型 | 可空 | 说明 |
|---|---|---|---|
id | string | 是 | 当前结果项的唯一标识。 |
platform | string | 否 | 结果所属的平台,例如 instagram 或 linkedin。 |
resource | string | 否 | 该结果对应的 SocQ 资源,例如 videos 或 comments。 |
type | string | 否 | 结果项的类别,例如 video、post 或 comment。 |
url | string | 是 | Board 地址。 |
published_at | string | 是 | Board 的创建时间,使用 ISO 8601 格式。 |
collected_at | string | 否 | SocQ 采集或处理该结果的时间,使用 ISO 8601 格式。 |
name | string | 是 | Board 名称。 |
text | string | 是 | Board 描述。 |
author | object | 是 | Board 的所有者账号。 |
author.id | string | 是 | Board 所有者的唯一标识。 |
author.username | string | 是 | 账号的公开用户名或账号标识。 |
author.name | string | 是 | Board 所有者的显示名称。 |
author.url | string | 是 | Board 所有者的主页地址。 |
author.avatar_url | string | 是 | 账号头像图片的地址。 |
author.is_verified | boolean | 是 | 账号是否已通过平台认证。 |
author.is_private | boolean | 是 | 账号是否为私密账号。 |
cover_url | string | 是 | Board 封面图片的地址。 |
is_collaborative | boolean | 是 | 其他账号是否可以向该 Board 添加 Pin。 |
metrics | object | 是 | Board 的规模与关注情况。 |
metrics.pins_count | integer | 是 | 保存在该 Board 中的 Pin 数量。 |
metrics.followers_count | integer | 是 | 关注该 Board 的用户数量。 |
metrics.sections_count | integer | 是 | Board 划分的分区数量。 |
metrics.collaborators_count | integer | 是 | 可以添加 Pin 的协作者数量。 |
任务完成响应
{
"code": 200,
"data": {
"task_id": "example-pinterest-user-boards",
"status": "succeeded",
"public_id": "pinterest/user-boards",
"result_count": 1,
"credits_amount": 0.5,
"results": {
"limit": 50,
"next_cursor": null,
"has_more": false,
"schema_id": "board",
"schema_version": "1.0",
"items": [
{
"id": "32088284784058747",
"platform": "pinterest",
"resource": "user-boards",
"type": "board",
"url": "https://www.pinterest.com/marthastewart/letscelebrate-pin-party/",
"published_at": "2013-06-05T14:01:03Z",
"collected_at": "2026-11-17T14:40:47.052902Z",
"name": "#LetsCelebrate Pin Party",
"text": "Repin your favorite party on this board with #LetsCelebrate in the caption for the chance to win one of 10 celebrations-in-a-box we're giving away. The blogger who is repinned the most will receive a feature on MarthaStewart.com and a $250 JCP gift card.",
"author": {
"id": "32088353503445352",
"username": "marthastewart",
"name": "Martha Stewart",
"url": "https://www.pinterest.com/marthastewart/",
"avatar_url": "https://i.pinimg.com/75x75_RS/c8/11/4c/c8114c783347e27daef00e5d4a6ac4f3.jpg",
"is_verified": null,
"is_private": null
},
"cover_url": "https://i.pinimg.com/474x/8a/7e/d0/8a7ed0d71f0e2437849563d27f22cc6b.jpg",
"is_collaborative": true,
"metrics": {
"pins_count": 1153,
"followers_count": 1507446,
"sections_count": 0,
"collaborators_count": 13
}
}
]
}
}
}
请求体
application/json
通过 urls 提供 Pinterest 主页链接,例如 https://www.pinterest.com/username/。results_limit 按每个主页计算,默认 25,可填 1–500 之间的整数。每个 Board 计 0.5 积分。

