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

Pinterest Search

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

Search Pinterest pins by keyword and get pin IDs, URLs, titles, descriptions and images, with cursor pagination.

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

Playground

輸入
Search query for Pinterest pins.
Pagination cursor from a previous response to fetch the next page.
Set to true for a trimmed down version of the response.
輸出範例
回應outputs · 14.6 KB · 337 行
{
  "credits_charged": 1,
  "credits_remaining": 11346,
  "cursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1ZsWlVSbXRXTVVreVZrZHpOV0pIUlhoWFZFWlhVbTFvTTFWWGMzZGtNRFZYVm14d2JHRXpRbEpXYlhSWFVtc3hWMVZ1VW1wU1dFSnpWV3hvVTJWV1pISlhhM1JYVm10V05sVldVbE5XVmxwWFUydE9WVlpGUlhoV01GcGhWbFpTY2s5V1pGTk5iRVY0Vm10ak1XUXhWWGxTYTFwT1ZsWmFWVlpyVmt0VlJscHhVVzVLVGxac1NsaFdWM1JQWVVkR05sWnNXbGhYU0VKWVZqSjRZVk5HVm5WU2JGWnBWa1ZhYjFkV1ZsWmxSVFZ6VTJ4V1YySkZTbFJVVlZwM1pWWlplRmRzVG1sTmExcEhWREZXVjJGRk1IbGxSa1pXWVRKU1QxUldXbE5rUlRGV1QxZHNVMkpZWjNkV1ZFbDNaVVpTYzFOcmFHaFRSVXBaVm0weFUxTkdiRmhsU0dSVVVteGFNRmxyVlRWaFIwcFdUVWhvVjAxV2NIWlVhMXBTWlVaT2MxcEhSbE5TTWswMVdtdGFWMU5YU2paVmJYaFRWMGRvUmxkc1ZsZGhNV1J6…",
  "pins": [
    {
      "id": "7712307576909621",
      "node_id": "__EMPTY__",
      "title": {
        "args": [],
        "args_reformatted": [],
        "format": "Explore featured boards",
        "text": "Explore featured boards"
      },
      "url": "https://www.pinterest.com/pin/7712307576909621"
    },
    {
      "auto_alt_text": "a kitchen with white cabinets and wood flooring is shown in this image, there are lights hanging from the ceiling",
      "board": {
        "board_order_modified_at": "Tue, 04 Aug 2026 11:58:03 +0000",
        "collaborating_users": [],
        "collaborator_count": 0,
        "cover_images": {
          "236x": {
            "url": "https://i.pinimg.com/236x/40/26/df/4026df1049b860526228e96273e3b34c.jpg",
            "width": 236
          }
        },
        "id": "435441926410593228",
        "image_cover_hd_url": "https://i.pinimg.com/474x/40/26/df/4026df1049b860526228e96273e3b34c.jpg",
        "image_cover_url": "https://i.pinimg.com/200x150/40/26/df/4026df1049b860526228e96273e3b34c.jpg",
        "images": {
          "236x": [
            {
              "dominant_color": "#C9C5BA",
              "height": 351,
              "url": "https://i.pinimg.com/236x/6c/a2/d2/6ca2d2eb61a1e531097771faff9ee719.jpg",
              "width": 236
            },
            {
              "dominant_color": "#DFD3C7",
              "height": 355,
              "url": "https://i.pinimg.com/236x/d8/40/a1/d840a1477feb8bc6bc95f470f3703e72.jpg",
              "width": 236
            },
            {
              "dominant_color": "#F7F4F1",
              "height": 354,
              "url": "https://i.pinimg.com/236x/a6/fe/77/a6fe778b767a4a48864d29a41a1b377d.jpg",
              "width": 236
            },
            "… 12 more items in the full response"
          ]
        },
        "is_collaborative": false,
        "name": "Ideas for the House",
        "node_id": "Qm9hcmQ6NDM1NDQxOTI2NDEwNTkzMjI4",
        "owner": {
          "follower_count": 38,
          "full_name": "Nichole Donaldson",
          "id": "435441995129835993",
          "image_large_url": "https://s.pinimg.com/images/user/default_140.png",
          "image_medium_url": "https://s.pinimg.com/images/user/default_75.png",
          "image_small_url": "https://s.pinimg.com/images/user/default_30.png",
          "is_ads_only_profile": false,
          "is_verified_merchant": false,
          "node_id": "VXNlcjo0MzU0NDE5OTUxMjk4MzU5OTM=",
          "username": "nmbtooth",
          "verified_identity": {}
        },
        "pin_count": 338,
        "pin_thumbnail_urls": [
          "https://i.pinimg.com/150x150/6c/a2/d2/6ca2d2eb61a1e531097771faff9ee719.jpg",
          "https://i.pinimg.com/150x150/d8/40/a1/d840a1477feb8bc6bc95f470f3703e72.jpg",
          "https://i.pinimg.com/150x150/a6/fe/77/a6fe778b767a4a48864d29a41a1b377d.jpg",
          "… 2 more items in the full response"
        ],
        "section_count": 0,
        "type": "board",
        "url": "/nmbtooth/ideas-for-the-house/"
      },
      "created_at": "Sun, 30 Nov 2025 17:03:38 +0000",
      "description": "Youthful Home Colors, Saturated Paint Tones, Color Blocking Ideas, Modern Vibrant Paint, Eclectic Room Colors, Artistic Paint Guide, Bold Kitchen Colors, Vivid Entryway Paint, Soft Color Palette, Serene Interior Scheme, Pastel Paint Colors, Mint Green, Dusty Rose, Lavender Paint, Tranquil Home Design, Spa Inspired Colors, Calm Paint Palette, Cozy Pastels, Peaceful Living Space, Gentle Color Combinations, Subtle Wall Colors, Soothing Neutrals, Light Color Flow, Pastel Room Ideas, Minimalist Calm Colors, Quiet Interior Style, Pale Paint Tones, Relaxed Home Palette, Neutral Pastels, Peaceful Bedr…",
      "domain": "etsy.com",
      "grid_title": "",
      "id": "435441857742802519",
      "images": {
        "170x": {
          "height": 419,
          "url": "https://i.pinimg.com/236x/ee/a9/36/eea936a0aacafb70bda6a41f6b50fb22.jpg",
          "width": 236
        },
        "236x": {
          "height": 419,
          "url": "https://i.pinimg.com/236x/ee/a9/36/eea936a0aacafb70bda6a41f6b50fb22.jpg",
          "width": 236
        },
        "474x": {
          "height": 836,
          "url": "https://i.pinimg.com/474x/ee/a9/36/eea936a0aacafb70bda6a41f6b50fb22.jpg",
          "width": 470
        },
        "736x": {
          "height": 836,
          "url": "https://i.pinimg.com/736x/ee/a9/36/eea936a0aacafb70bda6a41f6b50fb22.jpg",
          "width": 470
        },
        "orig": {
          "height": 836,
          "url": "https://i.pinimg.com/originals/ee/a9/36/eea936a0aacafb70bda6a41f6b50fb22.jpg",
          "width": 470
        }
      },
      "is_promoted": false,
      "link": "https://www.etsy.com/listing/1744469622/mid-century-modern-home-paint-palette",
      "node_id": "UGluOjQzNTQ0MTg1Nzc0MjgwMjUxOQ==",
      "pinner": {
        "follower_count": 38,
        "full_name": "Nichole Donaldson",
        "id": "435441995129835993",
        "image_large_url": "https://s.pinimg.com/images/user/default_140.png",
        "image_medium_url": "https://s.pinimg.com/images/user/default_75.png",
        "image_small_url": "https://s.pinimg.com/images/user/default_30.png",
        "is_ads_only_profile": false,
        "is_verified_merchant": false,
        "node_id": "VXNlcjo0MzU0NDE5OTUxMjk4MzU5OTM=",
        "username": "nmbtooth",
        "verified_identity": {}
      },
      "seo_alt_text": "a kitchen with white cabinets and wood flooring is shown in this image, there are lights hanging from the ceiling",
      "title": "",
      "url": "https://www.pinterest.com/pin/435441857742802519"
    },
    {
      "auto_alt_text": "a kitchen with white cabinets and marble counter tops next to an island in front of a window",
      "board": {
        "board_order_modified_at": "Wed, 29 Jul 2026 04:31:34 +0000",
        "collaborating_users": [],
        "collaborator_count": 0,
        "cover_images": {
          "236x": {
            "url": "https://i.pinimg.com/236x/c8/f2/b4/c8f2b442bda7ceb60ae0840ac9b66f33.jpg",
            "width": 236
          }
        },
        "id": "1085719491358486627",
        "image_cover_hd_url": "https://i.pinimg.com/474x/c8/f2/b4/c8f2b442bda7ceb60ae0840ac9b66f33.jpg",
        "image_cover_url": "https://i.pinimg.com/200x150/c8/f2/b4/c8f2b442bda7ceb60ae0840ac9b66f33.jpg",
        "images": {
          "236x": [
            {
              "dominant_color": "#AB9174",
              "height": 354,
              "url": "https://i.pinimg.com/236x/2a/27/14/2a2714bc052a2e3f562b36bcaffd62c8.jpg",
              "width": 236
            },
            {
              "dominant_color": "#7A5C3C",
              "height": 354,
              "url": "https://i.pinimg.com/236x/77/83/ab/7783ab529fe20c4990b27426b12a83ed.jpg",
              "width": 236
            },
            {
              "dominant_color": "#5B3716",
              "height": 354,
              "url": "https://i.pinimg.com/236x/94/55/a8/9455a8998071aeb28740cbf9305ddcab.jpg",
              "width": 236
            },
            "… 12 more items in the full response"
          ]
        },
        "is_collaborative": false,
        "name": "Luxury Kitchen Design 2026 | Marble Island & Warm",
        "node_id": "Qm9hcmQ6MTA4NTcxOTQ5MTM1ODQ4NjYyNw==",
        "owner": {
          "follower_count": 13,
          "full_name": "Decor Vibe",
          "id": "1085719560076101399",
          "image_large_url": "https://i.pinimg.com/140x140_RS/6c/59/b8/6c59b834029fc8ab590d66dd69d5651c.jpg",
          "image_medium_url": "https://i.pinimg.com/75x75_RS/6c/59/b8/6c59b834029fc8ab590d66dd69d5651c.jpg",
          "image_small_url": "https://i.pinimg.com/30x30_RS/6c/59/b8/6c59b834029fc8ab590d66dd69d5651c.jpg",
          "is_ads_only_profile": false,
          "is_verified_merchant": false,
          "node_id": "VXNlcjoxMDg1NzE5NTYwMDc2MTAxMzk5",
          "username": "DecorVibes_57",
          "verified_identity": {}
        },
        "pin_count": 26,
        "pin_thumbnail_urls": [
          "https://i.pinimg.com/150x150/43/ba/35/43ba359a52a7812fff1f572281363c84.jpg",
          "https://i.pinimg.com/150x150/2e/41/d7/2e41d742c1ad7ef18d6d121c3596ba9c.jpg",
          "https://i.pinimg.com/150x150/0d/88/89/0d88895e076ef3356a30e38b3e2fb9b3.jpg",
          "… 2 more items in the full response"
        ],
        "section_count": 0,
        "type": "board",
        "url": "/DecorVibes_57/luxury-kitchen-design-2026-marble-island-warm/"
      },
      "created_at": "Thu, 16 Jul 2026 07:34:24 +0000",
      "description": "#Contemporar a timeless home with this minimalist white and oak kitchen featuring a luxurious marble waterfall island, warm LED lighting, modern pendant lights, handleless cabinets, and elegant gold accents. This Scandinavian-inspired kitchen blends clean lines, soft neutral tones, and functional storage to achieve the perfect quiet luxury aesthetic. Save this pin for modern kitchen inspiration, new home ideas, apartment decor, and contemporary interior design trends. #KitchenDesign #ModernKitchen #MinimalistKitchen #WhiteKitchen #LuxuryKitchen #KitchenInspiration #KitchenDecor #KitchenIdeas #…",
      "domain": "Uploaded by user",
      "grid_title": "Minimalist White & Wood Kitchen Design Ideas 2026 | Luxury Modern Kitchen with Marble Island & Warm",
      "id": "1085719422753799926",
      "images": {
        "170x": {
          "height": 354,
          "url": "https://i.pinimg.com/236x/2a/27/14/2a2714bc052a2e3f562b36bcaffd62c8.jpg",
          "width": 236
        },
        "236x": {
          "height": 354,
          "url": "https://i.pinimg.com/236x/2a/27/14/2a2714bc052a2e3f562b36bcaffd62c8.jpg",
          "width": 236
        },
        "474x": {
          "height": 711,
          "url": "https://i.pinimg.com/474x/2a/27/14/2a2714bc052a2e3f562b36bcaffd62c8.jpg",
          "width": 474
        },
        "736x": {
          "height": 1104,
          "url": "https://i.pinimg.com/736x/2a/27/14/2a2714bc052a2e3f562b36bcaffd62c8.jpg",
          "width": 736
        },
        "orig": {
          "height": 1536,
          "url": "https://i.pinimg.com/originals/2a/27/14/2a2714bc052a2e3f562b36bcaffd62c8.png",
          "width": 1024
        }
      },
      "is_promoted": false,
      "node_id": "UGluOjEwODU3MTk0MjI3NTM3OTk5MjY=",
      "pinner": {
        "follower_count": 13,
        "full_name": "Decor Vibe",
        "id": "1085719560076101399",
        "image_large_url": "https://i.pinimg.com/140x140_RS/6c/59/b8/6c59b834029fc8ab590d66dd69d5651c.jpg",
        "image_medium_url": "https://i.pinimg.com/75x75_RS/6c/59/b8/6c59b834029fc8ab590d66dd69d5651c.jpg",
        "image_small_url": "https://i.pinimg.com/30x30_RS/6c/59/b8/6c59b834029fc8ab590d66dd69d5651c.jpg",
        "is_ads_only_profile": false,
        "is_verified_merchant": false,
        "node_id": "VXNlcjoxMDg1NzE5NTYwMDc2MTAxMzk5",
        "username": "DecorVibes_57",
        "verified_identity": {}
      },
      "seo_alt_text": "a kitchen with white cabinets and marble counter tops next to an island in front of a window",
      "story_pin_data": {
        "has_affiliate_products": false,
        "has_product_pins": false,
        "id": "3682775557497058432",
        "metadata": {
          "canvas_aspect_ratio": 0.6666667,
          "compatible_version": "0.16.0",
          "is_compatible": false,
          "is_editable": false,
          "is_promotable": true,
          "pin_image_signature": "2a2714bc052a2e3f562b36bcaffd62c8",
          "pin_title": "Minimalist White & Wood Kitchen Design Ideas 2026 | Luxury Modern Kitchen with Marble Island & Warm",
          "root_pin_id": "1085719422753799926",
          "root_user_id": "1085719560076101399",
          "version": "0.16.0"
        },
        "node_id": "U3RvcnlQaW5EYXRhOjM2ODI3NzU1NTc0OTcwNTg0MzI=",
        "page_count": 1,
        "pages": [
          {
            "blocks": [
              {
                "block_style": {
                  "corner_radius": 0,
                  "height": 100,
                  "rotation": 0,
                  "width": 100,
                  "x_coord": 0,
                  "y_coord": 0
                },
                "block_type": 2,
                "image_signature": "2a2714bc052a2e3f562b36bcaffd62c8",
                "text": "",
                "tracking_id": "3677430908951946496",
                "type": "story_pin_image_block"
              }
            ],
            "id": "1472918326",
            "image_signature": "2a2714bc052a2e3f562b36bcaffd62c8",
            "image_signature_adjusted": "2a2714bc052a2e3f562b36bcaffd62c8",
            "layout": 0,
            "music_attributions": [],
            "should_mute": false,
            "style": {
              "background_color": "#CDC3B9"
            },
            "type": "storypinpage"
          }
        ],
        "pages_preview": [
          {
            "blocks": [
              {
                "block_style": {

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Pinterest Search API

Search Pinterest for a query and get matching pins. Set trim for a compact response.

Use cases

  • Research visual trends for a product category.
  • Find inspiration and competitor creatives.
  • Collect pins for mood boards.

Request

curl -X POST "https://api.sandbase.ai/v1/api/pinterest/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "home office ideas", "trim": true}'

Parameters

NameTypeRequiredDescription
querystringYesSearch query for Pinterest pins.
trimbooleanNoSet to true for a trimmed down version of the response.
cursorstringNoPagination cursor from a previous response to fetch the next page.

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "cursor": "<next cursor>",
  "pins": [
    {
      "id": "4887421732865150",
      "url": "https://www.pinterest.com/pin/4887421732865150",
      "images": {
        "url": "https://i.pinimg.com/…"
      }
    }
  ]
}

Notes

  • Paginate with the cursor from the previous response.

Pricing

Flat price per call. Failed calls are not charged.

Search one page of Pinterest pins

Use a nonempty query describing the visual topic, such as home office ideas. Search is independent of Board Pins: a keyword is not a board URL. The current schema has optional cursor and trim fields without declared defaults. Omit cursor for this first request; trim true is an explicit choice for a compact response, not an assumed server default. There is no declared count or limit parameter to invent.

Review the returned pins for relevance. Search results are a dated sample, not search-volume data, proof of a trend or a market-wide ranking. Do not automatically open every pin, download its images or choose a board from a result. Missing titles and counts remain unknown.

Already chose a public board? Use Board Pins in a separate request. The reference describes cursor for later pages, but this guide stops at the first page and does not replay a sample token or promise exhaustive coverage.

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 Search API?

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

Pinterest Search API 的費用是多少?

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

Pinterest Search API 接受哪些參數?

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

Pinterest Search API 會回傳什麼?

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

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

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

我第一次做 Pinterest 搜尋需要哪些輸入?

傳送非空查詢。第一次請求可省略 cursor;trim 為選用項目,且未宣告預設值。若要精簡回應,請明確將 trim 設為 true。所選 schema 未宣告 count 或 limit。

我應該自動抓取每個搜尋結果的詳細資料嗎?

不應該。先查看第一個 pins 陣列,再有意識地選擇任何後續動作。Pin 詳情、board 請求與更多頁面都是不同的呼叫。單靠搜尋結果無法證明搜尋量、熱門程度或銷售量。

我要如何區分沒有結果與回應失敗?

請要求完成的 SandBase 回應、outputs[0].data 中的物件,以及 pins 陣列。若存在明確且非 true 的 success 標記,請將其視為失敗。存在的空陣列與缺少陣列或錯誤是不同的。不要用空清單取代無效回應。