{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Video Scraper & Downloader: MP4, Captions & Analytics",
    "description": "Collect public Pinterest video pins by keyword, pin link, pin id, pin.it link, board, profile or search link: MP4 and HLS links, quality variants, captions, length, creator, board, saves and more.",
    "version": "0.1",
    "x-build-id": "R1NLraQhFroSvGMr3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zapticx~pinterest-video-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zapticx-pinterest-video-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/zapticx~pinterest-video-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zapticx-pinterest-video-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/zapticx~pinterest-video-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zapticx-pinterest-video-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": {
          "searchQueries": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to search in Pinterest's video results, one per line, such as <code>dinner recipes</code> or <code>nail art</code>. Each keyword is one search.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Pinterest links",
            "type": "array",
            "description": "One link per line, on any Pinterest country domain: a pin (<code>https://www.pinterest.com/pin/905364331356325440/</code>), a <code>pin.it</code> short link, a board (<code>https://www.pinterest.com/username/board-name/</code>), a profile (<code>https://www.pinterest.com/username/</code>) or a search link (<code>https://www.pinterest.com/search/videos/?q=diy</code>).",
            "items": {
              "type": "string"
            }
          },
          "pinIds": {
            "title": "Pin IDs",
            "type": "array",
            "description": "Numeric pin ids, one per line, such as <code>905364331356325440</code> (the number in a pin link).",
            "items": {
              "type": "string"
            }
          },
          "maxVideos": {
            "title": "Max videos",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many videos in total, across all inputs. Only delivered videos are charged.",
            "default": 50
          },
          "maxVideosPerInput": {
            "title": "Max videos per input",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap for each keyword, link or id, so one input cannot use the whole run. 0 means no per-input cap.",
            "default": 0
          },
          "maxPagesPerInput": {
            "title": "Max pages per input",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Safety cap on result pages read for one keyword, board or profile. One page holds up to 25 pins.",
            "default": 20
          },
          "minDurationSeconds": {
            "title": "Minimum length (seconds)",
            "minimum": 0,
            "maximum": 36000,
            "type": "integer",
            "description": "Skip videos shorter than this. 0 keeps every length.",
            "default": 0
          },
          "maxDurationSeconds": {
            "title": "Maximum length (seconds)",
            "minimum": 0,
            "maximum": 36000,
            "type": "integer",
            "description": "Skip videos longer than this. 0 means no upper limit.",
            "default": 0
          },
          "orientation": {
            "title": "Orientation",
            "enum": [
              "any",
              "vertical",
              "horizontal",
              "square"
            ],
            "type": "string",
            "description": "Keep only vertical, horizontal or square videos.",
            "default": "any"
          },
          "mp4Only": {
            "title": "Only videos with an MP4 file",
            "type": "boolean",
            "description": "Leave out videos for which no MP4 file could be confirmed (stream only).",
            "default": false
          },
          "captionsOnly": {
            "title": "Only videos with captions",
            "type": "boolean",
            "description": "Leave out videos that have no caption track.",
            "default": false
          },
          "dedupeVideos": {
            "title": "Remove duplicate videos",
            "type": "boolean",
            "description": "The same video saved to several boards or found by several inputs is returned once. Turn off to get every pin copy (the same pin is still never repeated).",
            "default": true
          },
          "verifyCdnMp4": {
            "title": "Find MP4 files for stream-only results",
            "type": "boolean",
            "description": "Keyword results and some idea pins list only a stream. When on, the Actor checks Pinterest's CDN for the matching MP4 with a light HEAD request (no download) and returns it only if the check passes.",
            "default": true
          },
          "enrichPins": {
            "title": "Add full engagement for profile videos",
            "type": "boolean",
            "description": "Profile results carry saves but not repins, comments, shares or hashtags. When on, each profile video gets one extra pin lookup to add them. Keyword and board results cannot be enriched (Pinterest returns no public pin id there).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}