{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Pin Scraper — Saves, Sentiment & Topic Tags",
    "description": "Turn Pinterest pin and board URLs into rows with title, description, saves, repins, shares, reactions, creator, board and image/video URLs, plus offline sentiment and topic labels (no API key, no extra fee). For marketers and content researchers. $1.50 per 1,000 pins.",
    "version": "0.2",
    "x-build-id": "ymlEjHzt0TeGIOWvv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/peerless_columbine~pinterest-pins-boards-profiles-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-peerless_columbine-pinterest-pins-boards-profiles-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/peerless_columbine~pinterest-pins-boards-profiles-scraper/runs": {
      "post": {
        "operationId": "runs-sync-peerless_columbine-pinterest-pins-boards-profiles-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/peerless_columbine~pinterest-pins-boards-profiles-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-peerless_columbine-pinterest-pins-boards-profiles-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "startUrls": {
            "title": "Public Pinterest URLs",
            "type": "array",
            "description": "Public Pinterest URLs, one per line. Supported: pin (https://www.pinterest.com/pin/563018699561284/), board (https://www.pinterest.com/ikea/kitchen/), profile (https://www.pinterest.com/ikea/), search (https://www.pinterest.com/search/pins/?q=garden) and ideas/category pages. pin.it short links are followed. Login, settings and private pages are rejected. Leave empty if you only use queries.",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "title": "Keyword result type",
            "enum": [
              "all-pins",
              "videos",
              "boards",
              "profiles"
            ],
            "type": "string",
            "description": "What a keyword in queries should return: all-pins (default), videos, boards or profiles. Only applies to queries; a search URL in startUrls keeps its own scope.",
            "default": "all-pins"
          },
          "queries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search on Pinterest, one per line, e.g. \"boho living room\" or \"vegan meal prep\". Each keyword is searched separately and returns up to limit pins. Note: Pinterest's logged-out search returns an encrypted pin ID (starts with \"e1_\") and no saves/repin counts; for those counts, pass pin URLs in startUrls.",
            "items": {
              "type": "string"
            }
          },
          "limit": {
            "title": "Maximum saved rows per seed",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum rows to save per query or URL, e.g. 20. maxResults caps the whole run.",
            "default": 50000
          },
          "sentinent_analysis": {
            "title": "Optional text sentiment",
            "type": "boolean",
            "description": "true = add a free offline English sentiment score and label (positive/neutral/negative) computed from the pin title and image alt text. No API key needed. Example: true.",
            "default": false
          },
          "content_analysis": {
            "title": "Optional text category analysis",
            "type": "boolean",
            "description": "true = add a free offline topic label such as \"Home & Garden > Interior Decorating\" based on the pin text. No API key needed. Example: true.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy connection",
            "type": "object",
            "description": "Proxy used to reach Pinterest. Default: Apify Residential proxy (tested; its traffic is billed to your Apify account as platform usage). Use {\"useApifyProxy\": false} only for local runs. Custom proxies: {\"proxyUrls\": [\"http://user:pass@host:port\"]}.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "language": {
            "title": "Requested language",
            "type": "string",
            "description": "Language sent to Pinterest as the Accept-Language header, e.g. en-US or de-DE. It does not change the country of the IP address.",
            "default": "en-US"
          },
          "dnsResolver": {
            "title": "DNS resolver",
            "enum": [
              "system",
              "google-doh"
            ],
            "type": "string",
            "description": "Leave at system. Use google-doh only when running locally behind a VPN/fake-IP DNS that resolves Pinterest to private addresses.",
            "default": "system"
          },
          "profileMode": {
            "title": "Direct profile URL output",
            "enum": [
              "profile",
              "pins",
              "boards"
            ],
            "type": "string",
            "description": "What a profile URL returns: profile = one row with the profile's details (default), pins = the profile's saved pins, boards = the profile's boards.",
            "default": "profile"
          },
          "boardMode": {
            "title": "Direct board URL output",
            "enum": [
              "pins",
              "board"
            ],
            "type": "string",
            "description": "What a board URL returns: pins = the board's pins (default), board = one row with the board's details.",
            "default": "pins"
          },
          "analysisProvider": {
            "title": "Analysis provider",
            "enum": [
              "lexical",
              "disabled",
              "openai"
            ],
            "type": "string",
            "description": "lexical (default) = free offline sentiment/topic labels when the two analysis switches are on. disabled = no analysis. openai = use your own OpenAI-compatible model (needs allowPaidAnalysis=true and aiModel; model costs are billed by your provider, not Apify).",
            "default": "lexical"
          },
          "allowPaidAnalysis": {
            "title": "Explicitly enable BYO-key analysis requests",
            "type": "boolean",
            "description": "Must be true to allow analysisProvider=openai. Ignored for the free lexical analysis.",
            "default": false
          },
          "aiModel": {
            "title": "BYO analysis model",
            "type": "string",
            "description": "Model name for analysisProvider=openai, e.g. gpt-4.1-mini. Leave empty otherwise."
          },
          "maxPagesPerSeed": {
            "title": "Page ceiling per input",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Safety cap on result pages fetched per query or URL (default 100).",
            "default": 100
          },
          "pageSize": {
            "title": "Requested source page size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Results requested per page (default 25). Pinterest may return slightly more or fewer; limit is always respected.",
            "default": 25
          },
          "maxResults": {
            "title": "Global stored-row ceiling",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Safety cap on rows for the whole run, across all queries and URLs (default 50000).",
            "default": 50000
          },
          "maxRequests": {
            "title": "Global HTTP attempt ceiling",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Safety cap on HTTP requests for the whole run (default 1000).",
            "default": 1000
          },
          "requestTimeoutSecs": {
            "title": "Request timeout in seconds",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Seconds to wait for one Pinterest response (default 25).",
            "default": 25
          },
          "maxRetries": {
            "title": "Retries per GET",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Retries for a failed request (default 1).",
            "default": 1
          },
          "maxAiRequests": {
            "title": "BYO model request ceiling",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on model requests when analysisProvider=openai (default 10). Does not affect the free lexical analysis.",
            "default": 10
          },
          "requestDelaySecs": {
            "title": "Minimum interval between source requests",
            "minimum": 0.25,
            "maximum": 30,
            "type": "number",
            "description": "Pause between requests in seconds (default 1). Requests are sent one at a time.",
            "default": 1
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}