Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Pinterest Board Pins

API 文件
https://api.sandbase.ai/v1/api/pinterest/board

Returns a paginated list of pins from a specified Pinterest board URL, including pin metadata, images, and aggregated pin metrics.

價格
$0.018美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 2 個選填

Playground

輸入
The URL of the Pinterest board to fetch pins from.
Pagination cursor from a previous response to get the next page.
Set to true for a trimmed down version of the response.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

Pinterest Board Pins API

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.

Use cases

  • Download pin images and descriptions from a curated board to build a visual reference library.
  • Track aggregated_pin_data.aggregated_stats.saves across pins to see which board content gets saved most.
  • Check which domains a board links to by reading domain on each pin.
  • Page through a brand's board to archive its pins with their IDs and dominant colors.

Request

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.

Parameters

NameTypeRequiredDescription
urlstringYesThe URL of the Pinterest board to fetch pins from.
cursorstringNoPagination cursor from a previous response to get the next page.
trimbooleanNoSet to true for a trimmed down version of the response.

Example 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
}

Response fields

FieldMeaning
pins[].idIdentifier of the pin.
pins[].description / pins[].grid_titleThe pin description text and the title shown in the grid. grid_title can be an empty string.
pins[].domainDomain the pin links to. Pins uploaded directly show Uploaded by user.
pins[].images.orig.url / pins[].images.orig.width / pins[].images.orig.heightURL 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_colorMain color of the pin image as a hex code.
pins[].auto_alt_textGenerated text describing the image. It can be null.
pins[].aggregated_pin_data.aggregated_stats.saves / pins[].aggregated_pin_data.aggregated_stats.doneNumber of saves and the done count for the pin.
pins[].board.name / pins[].board.idName and ID of the board that holds the pin.
pins[].board.owner.username / pins[].board.owner.full_nameUsername and display name of the board owner.
cursorToken for the next page of pins.

Notes

  • Pass the cursor value from a response as the cursor parameter to get the next page.
  • Set trim to true to get a smaller response.
  • The url must be a full board address, for example https://www.pinterest.com/pinterest/official-news/.
  • To get more detail on one pin, use Pinterest Pin Details. To list the boards of a user, use Pinterest User Boards.

Pricing

$0.018 per successful call. Failed calls are not charged.

Read the first page of a public board

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.

Give your agent a bounded visual-research task

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.

探索更多

相關 APIs

所有 APIs
API價格回應
Pinterest每次呼叫 $0.018JSON
Pinterest每次呼叫 $0.018JSON
Pinterest每次呼叫 $0.018JSON
Pinterest每次呼叫 $0.018JSON

問題

常見問題

我要如何使用 Pinterest Board Pins API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/pinterest/board。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Pinterest Board Pins API 的費用是多少?

每次 $0.018,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Pinterest Board Pins API 接受哪些參數?

必要:url (string)。 選填:cursor (string) 和 trim (boolean)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Pinterest Board Pins API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Pinterest 開發者帳號或 API 金鑰嗎?

不需要。Pinterest Board Pins 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Pinterest API 存取權。

我可以把使用者名稱或 pin URL 傳給 Board Pins 嗎?

請使用您選定的完整公開 board URL。使用者名稱、pin URL 與 board URL 代表不同資源。若 board 不明,請另外檢查 User Boards,並在發出 board 請求前先查看其輸出。

第一個 Board Pins 回應會包含整個 board 嗎?

不要這樣假設。這只是一頁。參考文件描述了可用於接續的 cursor,但本指南未驗證後續頁面的往返、重建遺失的 token,或自動匯出整個 board。

Pinterest 請求有包含在每日免費額度內嗎?

2026-11-08 的檢查顯示這兩個端點每次呼叫為 $0.018,且未列出可用的免費額度資格。執行前請查看最新的端點定價;不要假設其他 API 平台的額度可套用。