{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Scraper Pro",
    "description": "Scrape Pinterest pins, board pins, user boards, and user profiles. Modes: search by keyword, pin detail by URL, user pins, user boards, board pins, and user profile. Pro filters: minSaves, imageOnly, excludeAds. No login required.",
    "version": "2.0",
    "x-build-id": "rtmREif23goSbeaxH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~pinterest-scraper-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-pinterest-scraper-pro",
        "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/crawlerbros~pinterest-scraper-pro/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-pinterest-scraper-pro",
        "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/crawlerbros~pinterest-scraper-pro/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-pinterest-scraper-pro",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to collect",
            "enum": [
              "auto",
              "pinDetail",
              "comments",
              "searchPins",
              "searchVideos",
              "searchUsers",
              "searchBoards",
              "userProfile",
              "userPins",
              "userBoards",
              "boardDetail",
              "boardPins",
              "ideas",
              "search"
            ],
            "type": "string",
            "description": "Choose the Pinterest use case. The legacy `search` value remains accepted for existing users.",
            "default": "pinDetail"
          },
          "startUrls": {
            "title": "Pinterest URLs (auto-detect)",
            "type": "array",
            "description": "Mixed public Pinterest links for mode=`auto`. Each unambiguous Pin, profile, board, idea, or search link is routed to the matching collector; unsupported section links are skipped.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Search words",
            "type": "array",
            "description": "Words or phrases for search modes, for example `minimalist home office`.",
            "default": [
              "minimalist home office"
            ],
            "items": {
              "type": "string"
            }
          },
          "pinUrls": {
            "title": "Pin URLs",
            "type": "array",
            "description": "Public Pinterest pin links or numeric IDs (used when mode=`pinDetail`).",
            "default": [
              "https://www.pinterest.com/pin/142567144448888376/"
            ],
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Pinterest usernames",
            "type": "array",
            "description": "Pinterest usernames, @usernames, or public profile links.",
            "default": [
              "nasa"
            ],
            "items": {
              "type": "string"
            }
          },
          "boardUrls": {
            "title": "Board URLs",
            "type": "array",
            "description": "Public board links or `username/board-name` paths, for example `https://www.pinterest.com/nasa/ceres/`.",
            "default": [
              "https://www.pinterest.com/nasa/ceres/"
            ],
            "items": {
              "type": "string"
            }
          },
          "ideaUrls": {
            "title": "Idea topic URLs",
            "type": "array",
            "description": "Public Pinterest idea-topic links, for example `https://www.pinterest.com/ideas/beauty/935541271955/`.",
            "default": [
              "https://www.pinterest.com/ideas/beauty/935541271955/"
            ],
            "items": {
              "type": "string"
            }
          },
          "ideaSlugs": {
            "title": "Idea topic paths",
            "type": "array",
            "description": "Idea topic path pairs such as `beauty/935541271955`. Used when `mode=ideas`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum rows returned across all supplied inputs.",
            "default": 50
          },
          "urls": {
            "title": "Pin URLs (comments alias)",
            "type": "array",
            "description": "Compatibility alias for pinUrls, useful with mode=comments.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "ja",
              "ko",
              "ar",
              "hi",
              "id",
              "th",
              "vi",
              "nl",
              "pl",
              "tr",
              "ru",
              "cs",
              "da",
              "el",
              "fi",
              "hu",
              "no",
              "ro",
              "sv",
              "uk",
              "zh",
              "bn",
              "ms",
              "fil"
            ],
            "type": "string",
            "description": "Pinterest UI language (affects ranked search results).",
            "default": "en"
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum search result pages to walk per keyword or board (1 page ≈ 25 pins). Default 10.",
            "default": 10
          },
          "minSaves": {
            "title": "Min saves (Pro filter)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Keep Pins whose Pinterest save count is at least N. Pins without a published count are retained as unknown."
          },
          "minCreatorFollowers": {
            "title": "Min creator followers",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep Pins whose public creator follower count reaches N. Unknown counts are retained."
          },
          "verifiedOnly": {
            "title": "Verified accounts only",
            "type": "boolean",
            "description": "Keep only rows where Pinterest explicitly reports a verified creator or profile.",
            "default": false
          },
          "requireOutboundLink": {
            "title": "Require destination link",
            "type": "boolean",
            "description": "For Pin results, keep only Pins with a public destination URL supplied by Pinterest.",
            "default": false
          },
          "imageOnly": {
            "title": "Image-only (Pro filter)",
            "type": "boolean",
            "description": "Drop video pins, keep image pins only.",
            "default": false
          },
          "excludeAds": {
            "title": "Exclude promoted/ads (Pro filter)",
            "type": "boolean",
            "description": "Drop promoted/sponsored pins.",
            "default": false
          },
          "commerceOnly": {
            "title": "Commerce only (shoppable pins)",
            "type": "boolean",
            "description": "Pro filter: when true, return only product/shoppable pins. Equivalent to Pinterest's native 'Products' filter (commerce_only=true).",
            "default": false
          },
          "enrichPinDetails": {
            "title": "Enrich collection Pins",
            "type": "boolean",
            "description": "For `userPins` and `boardPins`, visit each public Pin detail page for detail-only fields. Slower but more complete.",
            "default": false
          },
          "includeComments": {
            "title": "Include Pin comments",
            "type": "boolean",
            "description": "Add real comment/activity rows for collected Pins. Pinterest's public cookieless path is used automatically.",
            "default": false
          },
          "maxComments": {
            "title": "Maximum comments per Pin",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum public comment/activity rows per Pin when comments are enabled or mode=comments.",
            "default": 10
          },
          "limit": {
            "title": "Maximum comments per Pin (alias)",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Compatibility alias for maxComments.",
            "default": 10
          },
          "cookies": {
            "title": "Optional Pinterest cookies",
            "type": "array",
            "description": "Optional Cookie Editor JSON export. All public modes work without cookies; never share this secret publicly."
          },
          "cookiesJson": {
            "title": "Optional cookies JSON (alias)",
            "type": "string",
            "description": "Compatibility alias for pasting a Cookie Editor JSON export."
          },
          "proxyConfiguration": {
            "title": "Optional proxy",
            "type": "object",
            "description": "Optional Apify proxy settings. Public direct-pin pages do not require login; some feed surfaces may be withheld from datacenter traffic."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}