handlestringจำเป็น
The Pinterest username to get boards for (e.g. 'broadstbullycom' from https://www.pinterest.com/broadstbullycom/).
https://api.sandbase.ai/v1/api/pinterest/user-boardsGet a Pinterest user's boards by username: board name, URL, description, pin and follower counts, cover images and creation date.
{
"boards": [],
"credits_charged": 1,
"credits_remaining": 8036,
"cursor": null,
"success": true
}เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
This API returns the boards on a Pinterest profile. Each board has a name, URL, description, pin count, follower count, cover image and creation date. It needs the Pinterest username as handle.
follower_count to find the topics that attract the most attention.pin_count and follower_count on a schedule.curl -X POST "https://api.sandbase.ai/v1/api/pinterest/user-boards" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle": "pinterest", "trim": true}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | The Pinterest username to get boards for (e.g. 'broadstbullycom' from https://www.pinterest.com/broadstbullycom/). |
trim | boolean | No | Set to true for a trimmed down version of the response. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"boards": [
{
"created_at": "Fri, 23 Oct 2026 23:04:28 +0000",
"description": "Thoughtful finds for a slower, softer life — candles, journals and self-care tre…",
"follower_count": 4233328,
"id": "424605139808129209",
"image_cover_hd_url": "https://i.pinimg.com/474x/57/4d/64/574d645321687c7bb1ab8d1163daae9b.jpg",
"name": "Grounding gifts to romanticize your life",
"pin_count": 59,
"url": "https://www.pinterest.com/pinterest/grounding-gifts-to-romanticize-your-life/"
}
],
"credits_charged": 1,
"credits_remaining": 409649,
"cursor": "LT40MjQ2MDUxMzk4MDgxMjc3NDN8MTB8NDUyNDcwNTM2ODQ2ODIwMipHUUwqfDA1NmI5M2UyMzZhNGFl…",
"success": true
}
| Field | Meaning |
|---|---|
boards[] | List of boards that belong to the user. |
boards[].name | Title of the board. |
boards[].description | Text the owner wrote to describe the board. |
boards[].url | Full Pinterest URL of the board. |
boards[].id | Numeric board ID, returned as a string. |
boards[].pin_count / boards[].follower_count | Number of pins saved on the board and number of users who follow it. |
boards[].image_cover_hd_url | URL of the board's cover image. |
boards[].created_at | Creation date and time of the board, in a format like Fri, 23 Oct 2026 23:04:28 +0000. |
cursor | Token that points to the next page of boards. |
handle from the profile URL. For https://www.pinterest.com/pinterest/ the value is pinterest.cursor to request more boards, if your plan of use supports paging with it. The response carries it when more results may exist.trim to true for a smaller response, as used in the example.$0.018 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/pinterest/user-boards" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"handle": "example"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
handlestringจำเป็นThe Pinterest username to get boards for (e.g. 'broadstbullycom' from https://www.pinterest.com/broadstbullycom/).
trimbooleanSet to true for a trimmed down version of the response.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
{
"boards": [],
"credits_charged": 1,
"credits_remaining": 8036,
"cursor": null,
"success": true
}สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Pinterest User BoardsAPI นี้ Pinterest | $0.018 ต่อการเรียก | JSON |
Pinterest | $0.018 ต่อการเรียก | JSON |
Pinterest | $0.018 ต่อการเรียก | JSON |
Pinterest | $0.018 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/pinterest/user-boards โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.018 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: handle (string). ตัวเลือก: trim (boolean). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Pinterest User Boards ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Pinterest API แยกต่างหาก