handlestringbắt buộc
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
}Chọn một ví dụ để nạp đầu vào và kết quả của nó vào 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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
handlestringbắt buộcThe 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.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
{
"boards": [],
"credits_charged": 1,
"credits_remaining": 8036,
"cursor": null,
"success": true
}Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Pinterest User BoardsAPI này Pinterest | $0.018 mỗi lần gọi | JSON |
Pinterest | $0.018 mỗi lần gọi | JSON |
Pinterest | $0.018 mỗi lần gọi | JSON |
Pinterest | $0.018 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/pinterest/user-boards với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.018 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: handle (string). Tùy chọn: trim (boolean). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Pinterest User Boards chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Pinterest.