{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Scraper & Downloader: Pins, Boards, Profiles & Media",
    "description": "Fastest Pinterest scraper & bulk downloader. Scrape pins, boards, user profiles, and search keywords. Extract outbound product links, merchant domains, and rich metadata, or download high-res images & MP4 videos to cloud storage. Direct-first zero-cost proxy.",
    "version": "1.0",
    "x-build-id": "mznYXU2h6rAsc4Hd7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vnx0~pinterest-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vnx0-pinterest-downloader",
        "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/vnx0~pinterest-downloader/runs": {
      "post": {
        "operationId": "runs-sync-vnx0-pinterest-downloader",
        "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/vnx0~pinterest-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-vnx0-pinterest-downloader",
        "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": "Start URLs",
            "minItems": 0,
            "maxItems": 1000,
            "type": "array",
            "description": "Pinterest URLs to scrape: board URLs, board sections, pin URLs, short links (pin.it), or user profile URLs (e.g. https://www.pinterest.com/username/).",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "minItems": 0,
            "maxItems": 100,
            "type": "array",
            "description": "Keywords to search on Pinterest. Each query returns matching pins.",
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "Search keyword (single)",
            "type": "string",
            "description": "Single search keyword. Useful for integrations with Zapier, Make, and n8n. If provided, combined with search queries."
          },
          "searchType": {
            "title": "Search result type",
            "enum": [
              "pins",
              "videos"
            ],
            "type": "string",
            "description": "Type of results to collect from keyword searches: all pins (images and videos) or video pins only.",
            "default": "pins"
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of pins to scrape across all URLs and queries combined.",
            "default": 100
          },
          "onlyPinsWithLink": {
            "title": "Only pins with external links",
            "type": "boolean",
            "description": "Filter results to only pins that link to external websites (e.g. Amazon, Etsy, Shopify, blogs). Essential for e-commerce, dropshipping, and affiliate research.",
            "default": false
          },
          "linkDomains": {
            "title": "Filter by link domains",
            "type": "array",
            "description": "Keep only pins linking to these specific domains (e.g. 'amazon.com', 'etsy.com', 'shopify.com'). One domain per line.",
            "items": {
              "type": "string"
            }
          },
          "downloadMedia": {
            "title": "Download media files",
            "type": "boolean",
            "description": "Save original images and videos permanently to the Apify Key-Value Store. If disabled, only metadata and CDN URLs are saved to the dataset.",
            "default": false
          },
          "downloadVideos": {
            "title": "Include videos",
            "type": "boolean",
            "description": "Download video pins alongside images. Only applies when media downloading is enabled above.",
            "default": false
          },
          "minWidth": {
            "title": "Minimum image width",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Skip images narrower than this. Use 0 for no filtering. Helpful for excluding low-quality thumbnails.",
            "default": 0
          },
          "minHeight": {
            "title": "Minimum image height",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Skip images shorter than this. Use 0 for no filtering. Combine with minimum width to only keep high-resolution images.",
            "default": 0
          },
          "cookies": {
            "title": "Pinterest cookies",
            "type": "string",
            "description": "Pinterest session cookies as a JSON array for accessing private or secret boards. Leave empty for public content."
          },
          "delay": {
            "title": "Delay between requests",
            "minimum": 0,
            "maximum": 30,
            "type": "number",
            "description": "Wait time between consecutive requests to avoid rate limiting. Increase if you get blocked or receive empty results.",
            "default": 0.5
          },
          "forceProxy": {
            "title": "Force proxy from start",
            "type": "boolean",
            "description": "Force using proxy immediately from the start instead of Direct-First. (Not needed for most scrapes).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings. Defaults to Direct-First ($0 proxy cost) with automatic Apify Proxy backup on HTTP 429/403. If residential or custom proxies are selected, they are used immediately."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}