Token导航 LogoToken导航

Agent Skill · 研究检索

pinterest-api(pinterest API 搜索)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

pinterest-api 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 39,700。

总安装 1,374周安装 59GitHub Stars 31下载 481核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pinterest-api(pinterest API 搜索)
来源仓库:https://github.com/rawveg/skillsforge-marketplace
仓库路径:skills/pinterest-api
安装命令:
npx skills add https://github.com/rawveg/skillsforge-marketplace --skill pinterest-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rawveg/skillsforge-marketplace --skill pinterest-api

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助 API 设计、接口文档和请求响应结构梳理。适合生成 OpenAPI 草稿、检查字段命名或整理错误码。使用时需确认业务语义、鉴权方式和分页规则。涉及文档生成时应避免凭空补字段,优先提取现有代码事实。pinterest-api 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/pinterest-api

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/rawveg/skillsforge-marketplace --skill pintere…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

pinterest-api 怎么安装?

在终端执行 npx skills add https://github.com/rawveg/skillsforge-marketplace --skill pinterest-api。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

pinterest-api 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

pinterest-api 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

pinterest-api 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

pinterest-api 用的人多吗?

公开数据是累计安装 1,374 次,近一周安装 59 次,下载 481 次,GitHub 31 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

pinterest-api 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
pinterest-api

pinterest API 搜索 · 本页

1,37431接触敏感数据MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Pinterest API Skill

Comprehensive assistance with Pinterest API v5 development, including OAuth authentication, pin/board management, analytics, and API integration patterns.

When to Use This Skill

This skill should be triggered when:

  • Implementing Pinterest OAuth 2.0 authentication flows
  • Creating, updating, or managing Pins and Boards via API
  • Integrating Pinterest analytics and metrics into applications
  • Building Pinterest API clients or SDKs
  • Working with Pinterest user account data
  • Debugging Pinterest API requests or responses
  • Implementing Pinterest sharing features in web/mobile apps
  • Setting up Pinterest business account integrations
  • Working with Pinterest ad account APIs

Key Concepts

Pinterest API v5 Overview

  • Base URL: https://api.pinterest.com/v5/
  • Authentication: OAuth 2.0 with access tokens
  • Rate Limiting: Token-based rate limits (varies by endpoint)
  • Response Format: JSON
  • Required Headers: Authorization: Bearer {access_token}

Core Resources

  • Pins: Individual pieces of content (images, videos) saved to Pinterest
  • Boards: Collections that organize Pins by theme or topic
  • Sections: Subsections within Boards for additional organization
  • User Account: Pinterest user profile and account information
  • Ad Accounts: Business accounts for advertising functionality

Access Levels

  • Public Access: Read-only access to public data
  • User Authorization: Full access to user's Pins, Boards, and account
  • Business Access: Additional analytics and ad account management (requires appropriate roles)

Quick Reference

OAuth 2.0 Authentication Flow

Step 1: Generate Authorization URL
// Redirect user to Pinterest authorization page
const authUrl = `https://www.pinterest.com/oauth/?client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&response_type=code&scope=boards:read,pins:read,user_accounts:read`;

window.location.href = authUrl;
Step 2: Exchange Code for Access Token
# After user authorizes, exchange authorization code for access token
curl -X POST https://api.pinterest.com/v5/oauth/token \
  --header "Authorization: Basic {BASE64_ENCODED_CLIENT_CREDENTIALS}" \
  --header "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "grant_type=authorization_code" \
  --data-urlencode "code={AUTHORIZATION_CODE}" \
  --data-urlencode "redirect_uri={REDIRECT_URI}"

Base64 Encoding Client Credentials:

# Encode client_id:client_secret
echo -n "your_client_id:your_client_secret" | base64

Response:

{
  "access_token": "pina_ABC123...",
  "token_type": "bearer",
  "expires_in": 2592000,
  "refresh_token": "DEF456...",
  "scope": "boards:read,pins:read,user_accounts:read"
}

Pin Management

Create a Pin
curl -X POST https://api.pinterest.com/v5/pins \
  -H "Authorization: Bearer {ACCESS_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "link": "https://example.com/my-article",
    "title": "My Amazing Pin Title",
    "description": "Detailed description of the pin content",
    "board_id": "123456789",
    "media_source": {
      "source_type": "image_url",
      "url": "https://example.com/image.jpg"
    }
  }'
Get Pin Details
curl -X GET https://api.pinterest.com/v5/pins/{PIN_ID} \
  -H "Authorization: Bearer {ACCESS_TOKEN}"

Response:

{
  "id": "987654321",
  "created_at": "2025-01-15T10:30:00",
  "link": "https://example.com/my-article",
  "title": "My Amazing Pin Title",
  "description": "Detailed description of the pin content",
  "board_id": "123456789",
  "media": {
    "media_type": "image",
    "images": {
      "150x150": { "url": "...", "width": 150, "height": 150 },
      "400x300": { "url": "...", "width": 400, "height": 300 },
      "originals": { "url": "...", "width": 1200, "height": 800 }
    }
  }
}
Update a Pin
curl -X PATCH https://api.pinterest.com/v5/pins/{PIN_ID} \
  -H "Authorization: Bearer {ACCESS_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated Pin Title",
    "description": "Updated description",
    "link": "https://example.com/updated-link"
  }'
Delete a Pin
curl -X DELETE https://api.pinterest.com/v5/pins/{PIN_ID} \
  -H "Authorization: Bearer {ACCESS_TOKEN}"

Board Management

Create a Board
curl -X POST https://api.pinterest.com/v5/boards \
  -H "Authorization: Bearer {ACCESS_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My New Board",
    "description": "A collection of my favorite ideas",
    "privacy": "PUBLIC"
  }'

Privacy Options: PUBLIC, PROTECTED, SECRET

List User's Boards
curl -X GET https://api.pinterest.com/v5/boards \
  -H "Authorization: Bearer {ACCESS_TOKEN}"
Get Board Pins
curl -X GET https://api.pinterest.com/v5/boards/{BOARD_ID}/pins \
  -H "Authorization: Bearer {ACCESS_TOKEN}"

User Account

Get Current User Account
curl -X GET https://api.pinterest.com/v5/user_account \
  -H "Authorization: Bearer {ACCESS_TOKEN}"

Response:

{
  "account_type": "BUSINESS",
  "id": "123456789",
  "username": "myusername",
  "website_url": "https://example.com",
  "profile_image": "https://i.pinimg.com/...",
  "follower_count": 1500,
  "following_count": 320,
  "board_count": 25,
  "pin_count": 450
}

Analytics

Get Pin Analytics
curl -X GET "https://api.pinterest.com/v5/pins/{PIN_ID}/analytics?start_date=2025-01-01&end_date=2025-01-31&metric_types=IMPRESSION,SAVE,PIN_CLICK" \
  -H "Authorization: Bearer {ACCESS_TOKEN}"

Available Metrics:

  • IMPRESSION - Number of times pin was shown
  • SAVE - Number of times pin was saved
  • PIN_CLICK - Number of clicks to pin destination
  • OUTBOUND_CLICK - Clicks to external website
  • VIDEO_START - Video plays started

Response:

{
  "all": {
    "daily_metrics": [
      {
        "date": "2025-01-01",
        "data_status": "READY",
        "metrics": {
          "IMPRESSION": 1250,
          "SAVE": 45,
          "PIN_CLICK": 89
        }
      }
    ]
  }
}

Error Handling

Common Error Response
{
  "code": 3,
  "message": "Requested pin not found"
}

Common Error Codes:

  • 1 - Invalid request parameters
  • 2 - Rate limit exceeded
  • 3 - Resource not found
  • 4 - Insufficient permissions
  • 8 - Invalid access token
Python Error Handling Example
import requests

def create_pin(access_token, board_id, title, image_url):
    url = "https://api.pinterest.com/v5/pins"
    headers = {
        "Authorization": f"Bearer {access_token}",
        "Content-Type": "application/json"
    }
    data = {
        "board_id": board_id,
        "title": title,
        "media_source": {
            "source_type": "image_url",
            "url": image_url
        }
    }

    try:
        response = requests.post(url, headers=headers, json=data)
        response.raise_for_status()
        return response.json()
    except requests.exceptions.HTTPError as e:
        error_data = e.response.json()
        print(f"Error {error_data.get('code')}: {error_data.get('message')}")
        return None
    except requests.exceptions.RequestException as e:
        print(f"Request failed: {str(e)}")
        return None

JavaScript/Node.js Integration

// Pinterest API Client Example
class PinterestClient {
  constructor(accessToken) {
    this.accessToken = accessToken;
    this.baseUrl = 'https://api.pinterest.com/v5';
  }

  async request(endpoint, options = {}) {
    const url = `${this.baseUrl}${endpoint}`;
    const headers = {
      'Authorization': `Bearer ${this.accessToken}`,
      'Content-Type': 'application/json',
      ...options.headers
    };

    const response = await fetch(url, {
      ...options,
      headers
    });

    if (!response.ok) {
      const error = await response.json();
      throw new Error(`Pinterest API Error: ${error.message}`);
    }

    return response.json();
  }

  async createPin(boardId, title, imageUrl, description = '', link = '') {
    return this.request('/pins', {
      method: 'POST',
      body: JSON.stringify({
        board_id: boardId,
        title: title,
        description: description,
        link: link,
        media_source: {
          source_type: 'image_url',
          url: imageUrl
        }
      })
    });
  }

  async getUserBoards() {
    return this.request('/boards');
  }

  async getPinAnalytics(pinId, startDate, endDate) {
    const params = new URLSearchParams({
      start_date: startDate,
      end_date: endDate,
      metric_types: 'IMPRESSION,SAVE,PIN_CLICK'
    });
    return this.request(`/pins/${pinId}/analytics?${params}`);
  }
}

// Usage
const client = new PinterestClient('your_access_token');
const pin = await client.createPin('board_id', 'Pin Title', 'https://example.com/image.jpg');

Reference Files

This skill includes comprehensive documentation in references/:

  • api.md - Complete Pinterest API v5 endpoint reference extracted from official documentation

Use view to read reference files when detailed information about specific endpoints is needed.

Working with This Skill

For Beginners

  1. Start by understanding OAuth 2.0 authentication flow (see Quick Reference above)
  2. Get your API credentials from Pinterest Developer Portal
  3. Test authentication with curl commands before implementing in your application
  4. Use the provided Python/JavaScript examples as starting templates

For API Integration

  1. Implement OAuth flow to obtain access tokens
  2. Store refresh tokens securely for long-term access
  3. Use the Pin/Board management examples for CRUD operations
  4. Implement proper error handling for rate limits and API errors

For Analytics & Business Features

  1. Ensure you have appropriate business account access
  2. Use analytics endpoints to track Pin performance
  3. Aggregate metrics across date ranges for reporting
  4. Implement caching to avoid unnecessary API calls

Best Practices

  • Token Security: Never expose access tokens in client-side code or version control
  • Rate Limiting: Implement exponential backoff for rate limit errors
  • Pagination: Use cursor-based pagination for large result sets
  • Webhooks: Consider using webhooks for real-time updates instead of polling
  • Scopes: Request only the minimum OAuth scopes needed for your application

Common Patterns

Pagination

# Initial request
curl -X GET "https://api.pinterest.com/v5/boards/{BOARD_ID}/pins?page_size=25" \
  -H "Authorization: Bearer {ACCESS_TOKEN}"

# Follow-up with bookmark from response
curl -X GET "https://api.pinterest.com/v5/boards/{BOARD_ID}/pins?page_size=25&bookmark={BOOKMARK}" \
  -H "Authorization: Bearer {ACCESS_TOKEN}"

Bulk Operations

# Create multiple pins efficiently
def bulk_create_pins(access_token, board_id, pin_data_list):
    results = []
    for pin_data in pin_data_list:
        result = create_pin(
            access_token,
            board_id,
            pin_data['title'],
            pin_data['image_url']
        )
        results.append(result)
        time.sleep(0.5)  # Respect rate limits
    return results

Resources

Official Documentation

OAuth Scopes

Common scopes you'll need:

  • boards:read - Read board data
  • boards:write - Create/update boards
  • pins:read - Read pin data
  • pins:write - Create/update pins
  • user_accounts:read - Read user account data
  • ads:read - Read ad account analytics (business accounts)

Rate Limits

  • Pinterest implements per-user rate limiting
  • Typical limits: 1000 requests per hour per user
  • Rate limit headers in response:

- X-RateLimit-Limit - X-RateLimit-Remaining - X-RateLimit-Reset

Notes

  • Pinterest API v5 is the current version (as of 2025)
  • All endpoints require authentication via OAuth 2.0
  • Access tokens expire after 30 days
  • Use refresh tokens to obtain new access tokens
  • Business accounts have access to additional analytics features
  • Video pins require special handling compared to image pins
  • Some features require app review by Pinterest

Troubleshooting

"Invalid access token"

  • Verify token hasn't expired (30-day lifetime)
  • Use refresh token to obtain new access token
  • Check Authorization header format: Bearer {token}

"Insufficient permissions"

  • Verify OAuth scopes include required permissions
  • Business features require verified business account
  • Some operations require board/pin ownership

"Rate limit exceeded"

  • Implement exponential backoff
  • Cache responses when possible
  • Use webhooks instead of polling
  • Check X-RateLimit-Reset header for retry time

"Media upload failed"

  • Verify image URL is publicly accessible
  • Check image meets size requirements (max 10MB)
  • Ensure image format is supported (JPG, PNG, GIF)
  • For video, use video-specific endpoints

Updating

This skill was generated from Pinterest's official API documentation. To get the latest API changes:

  1. Visit https://developers.pinterest.com/docs/api/v5/
  2. Check changelog for API updates
  3. Review deprecation notices
  4. Update OAuth scopes if new features added

平台分布

Claude Code

28.38%
按下载量换算137

Codex

24.93%
按下载量换算120

Antigravity

18.88%
按下载量换算91

Gemini CLI

12.5%
按下载量换算60

windsurf

6.89%
按下载量换算33

OpenCode

3.41%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills