urlstringbắt buộc
The URL of the Pinterest board to fetch pins from.
https://api.sandbase.ai/v1/api/pinterest/boardReturns a paginated list of pins from a specified Pinterest board URL, including pin metadata, images, and aggregated pin metrics.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns a page of pins from a public Pinterest board. Each pin includes its description, image URLs in several sizes, the source domain, board and owner details, and save counts. The only required input is the board url.
aggregated_pin_data.aggregated_stats.saves across pins to see which board content gets saved most.domain on each pin.curl -X POST "https://api.sandbase.ai/v1/api/pinterest/board" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.pinterest.com/pinterest/official-news/"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The URL of the Pinterest board to fetch pins from. |
cursor | string | No | Pagination cursor from a previous response to get the next page. |
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.
{
"credits_charged": 1,
"credits_remaining": 409647,
"cursor": "Y2JZakk0ZUU1WWR6Qk9SRmw1VDBSVk1rNXFRVEZPUkVVMFRYcHJkMHRyWkZKVVEzQTRUVWRWTlU5RVNY…",
"pins": [
{
"access": [],
"aggregated_pin_data": {
"aggregated_stats": {
"done": 1,
"saves": 99
},
"creator_analytics": null,
"did_it_data": {
"details_count": 1,
"images_count": 1,
"rating": -1,
"recommend_scores": [
{
"count": 0,
"score": 1
}
],
"recommended_count": 1,
"responses_count": 0,
"tags": [],
"type": "aggregateddiditdata"
},
"id": "4932015542193108810",
"is_shop_the_look": false,
"node_id": "QWdncmVnYXRlZFBpbkRhdGE6NDkzMjAxNTU0MjE5MzEwODgxMA=="
},
"alt_text": null,
"attribution": null,
"auto_alt_text": "a room filled with lots of yellow stools next to a table and shelves on the wall",
"board": {
"collaborated_by_me": false,
"followed_by_me": false,
"id": "424605139806979476",
"is_collaborative": false,
"layout": "default",
"name": "Official news",
"node_id": "Qm9hcmQ6NDI0NjA1MTM5ODA2OTc5NDc2",
"owner": {
"full_name": "Pinterest",
"id": "424605208526455283",
"image_medium_url": "https://i.pinimg.com/75x75_RS/1c/b5/61/1cb561c8e7b9c709f78d110a4b5f0863.jpg",
"image_small_url": "https://i.pinimg.com/30x30_RS/1c/b5/61/1cb561c8e7b9c709f78d110a4b5f0863.jpg",
"is_primary_website_verified": true,
"is_verified_merchant": false,
"node_id": "VXNlcjo0MjQ2MDUyMDg1MjY0NTUyODM=",
"username": "pinterest"
}
},
"call_to_action_text": null,
"campaign_id": null,
"carousel_data": null,
"category": "",
"collection_pin": null,
"creator_analytics": null
}
],
"success": true
}
| Field | Meaning |
|---|---|
pins[].id | Identifier of the pin. |
pins[].description / pins[].grid_title | The pin description text and the title shown in the grid. grid_title can be an empty string. |
pins[].domain | Domain the pin links to. Pins uploaded directly show Uploaded by user. |
pins[].images.orig.url / pins[].images.orig.width / pins[].images.orig.height | URL of the original-size image, with its width and height. The images object also lists smaller versions, each with its own url, width and height. |
pins[].dominant_color | Main color of the pin image as a hex code. |
pins[].auto_alt_text | Generated text describing the image. It can be null. |
pins[].aggregated_pin_data.aggregated_stats.saves / pins[].aggregated_pin_data.aggregated_stats.done | Number of saves and the done count for the pin. |
pins[].board.name / pins[].board.id | Name and ID of the board that holds the pin. |
pins[].board.owner.username / pins[].board.owner.full_name | Username and display name of the board owner. |
cursor | Token for the next page of pins. |
cursor value from a response as the cursor parameter to get the next page.trim to true to get a smaller response.url must be a full board address, for example https://www.pinterest.com/pinterest/official-news/.$0.018 per successful call. Failed calls are not charged.
Supply the complete board URL you selected, for example https://www.pinterest.com/pinterest/official-news/. A username, pin URL or search keyword is not a board address. If you do not yet know a board, first inspect the separate User Boards endpoint and review its results; do not send a missing URL or automatically walk every returned board.
The required field is url. Omit optional cursor for the first request and choose trim explicitly if you need a compact response. Neither optional field has a declared default in this schema. The first page is not a complete board export. A documented cursor field alone does not establish that a continuation call was tested today.
The reference includes image variants and nested save counts for some pins. Retain pin identifiers and source links needed for your research, treat missing values as unknown and confirm the actual image structure before use. A returned image URL does not establish permission to republish that image. Do not automatically download media or expand to pin details.
Need topic discovery instead? Start independently with Pinterest Search. Comparing a keyword sample with a curated board answers different questions; neither establishes Pinterest-wide demand.
Already have a SandBase key? Keep SANDBASE_API_KEY in your local environment and use the API tab for Bearer authentication and POST /v1/api/. Already connected your agent? Give it the exact endpoint and one keyword or board URL. Starting a project? Share the setup Skill, Markdown quickstart and your question. Ask for one request and a saved response before expanding the task.
Read outputs[0].data only from a completed SandBase response and require its pins field to be an array. If a success flag is present, require true; the search sample omits it, so do not require an absent flag. The reference payload is a pins/cursor object, not another platform's code/data wrapper. A missing array or an upstream error is not an empty result; a present empty array is a valid distinct outcome. Image shapes and descriptive fields vary across trimmed references. Inspect what is present rather than inventing a title, image size or engagement count.
Pricing checked on 2026-11-08: both endpoints list $0.018 per call; this inspection did not list free-quota eligibility. Check current pricing before execution. Search, board, pin-detail and later-page requests are separate calls. This update made no business query and does not verify continuation. See the Pinterest Python first-request tutorial for bounded examples and separately dated historical evidence.
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/board" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.pinterest.com/pinterest/official-news/"
}'Đặ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.
urlstringbắt buộcThe URL of the Pinterest board to fetch pins from.
cursorstringPagination cursor from a previous response to get the next page.
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.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Pinterest Board PinsAPI 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/board 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: url (string). Tùy chọn: cursor (string) và 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 Board Pins 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.
Hãy dùng URL board công khai đầy đủ mà bạn đã chọn. Username, URL của pin và URL của board xác định các tài nguyên khác nhau. Nếu board chưa rõ, hãy kiểm tra User Boards riêng và xem kỹ đầu ra của nó trước khi gửi yêu cầu board.
Đừng giả định như vậy. Đó chỉ là một trang. Tài liệu tham chiếu mô tả cursor để tiếp tục, nhưng hướng dẫn này không xác minh vòng lặp sang trang sau, không tái tạo token bị thiếu và cũng không tự động xuất toàn bộ board.
Kiểm tra ngày 2026-11-08 liệt kê $0.018 mỗi lần gọi cho hai endpoint này và không liệt kê điều kiện dùng hạn mức miễn phí. Hãy kiểm tra giá endpoint hiện tại trước khi thực thi; đừng cho rằng mức cho phép của một nền tảng API khác sẽ áp dụng ở đây.