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.018 每次调用JSON
Pinterest$0.018 每次调用JSON
Pinterest$0.018 每次调用JSON
Pinterest$0.018 每次调用JSON

问题

常见问题

如何使用 Pinterest Search API?

向 https://api.sandbase.ai/v1/api/pinterest/search 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 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 key 吗?

不需要。Pinterest Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Pinterest API 访问权限。

首次进行 Pinterest 搜索需要哪些输入?

发送一个非空查询。首次请求省略 cursor;trim 可选,且未声明默认值。若要获得更紧凑的响应,请明确将 trim 设为 true。所选 schema 未声明 count 或 limit。

我应该自动为每个搜索结果抓取详情吗?

不应该。先查看第一个 pins 数组,再有意选择后续操作。Pin 详情、board 请求和附加页面都是独立调用。仅凭搜索结果无法证明搜索量、热度或销量。

我如何区分没有结果和请求失败?

要求返回已完成的 SandBase 响应、outputs[0].data 处存在对象,以及一个 pins 数组。若存在明确的非 true success 标志,则应拒绝。存在的空数组与缺失的数组或错误不同。不要把无效响应替换为空列表。