{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Scraper — Keyword Search, Pins, Videos & Boards",
    "description": "Pinterest scraper for keyword search, pins, video pins, boards, profiles, comments, pin.it links, Pinterest Trends, and a scheduled watch for new pins. Images, outbound links, saves, creator stats. JSON or CSV, no login.",
    "version": "0.0",
    "x-build-id": "oHKv0c52HbtGTtqVi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~pinterest-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-pinterest-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/memo23~pinterest-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-pinterest-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/memo23~pinterest-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-pinterest-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": "Start URLs",
            "type": "array",
            "description": "**Supported paths:** ideas `/ideas/slug/id/`, pin `/pin/id/` or `/pin/name--id/`, profile `/{user}/`, board `/{user}/{board}/`, board section `/{user}/{board}/{section}/`, search `/search/{pins|videos|boards|users}/…`, and `pin.it` share links (they open the pin, board or profile they point at). Country domains such as `pinterest.de` or `pinterest.co.uk` work. An ideas hub returns at most the 18 pins Pinterest shows a logged-out visitor. Via API, both plain strings and `{ \"url\": \"…\" }` objects are accepted. Unsupported entries are skipped with a warning (the run fails only if none are usable). All URLs share one **max items** budget. Leave empty to use keyword search instead. Pin links in the new format (pinterest.com/pin/e1_…) cannot be read without a Pinterest account; use the board, profile or search the pin is in.",
            "items": {
              "type": "string"
            }
          },
          "flattenedOutput": {
            "title": "Flattened output",
            "type": "boolean",
            "description": "If true, each pin is deep-flattened to one level with dot-separated keys (e.g. `board.owner.username`, `comments.0.content`). If false, the full merged pin record is stored.",
            "default": false
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Each non-empty line becomes its own search at `https://www.pinterest.com/search/{Search type}/?q=…` using **Search type** below. Example lines: `nails`, `spring nail art`. All queries share one **max items** cap. Unused when **Start URLs** is set.",
            "items": {
              "type": "string"
            }
          },
          "searchScope": {
            "title": "Search type",
            "enum": [
              "pins",
              "videos",
              "boards",
              "users",
              "suggestions"
            ],
            "type": "string",
            "description": "Which Pinterest search tab to use when scraping from **Search queries** (or legacy keyword). **All pins** is the default. **Videos** returns video pins. **Boards** and **Profiles** find matching boards / accounts and then scrape the pins inside them unless **Emit board/profile rows** is on. **Suggested phrases** returns the phrases Pinterest offers for each seed, not pins.",
            "default": "pins"
          },
          "searchKeyword": {
            "title": "Search keyword (legacy)",
            "type": "string",
            "description": "Single search term if **Start URLs** and **Search queries** are empty. Same as adding one entry to **Search queries**. Prefer **Search queries** for new setups."
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Adds a `comments` array to each pin: text, author, date, likes.",
            "default": false
          },
          "includeReplies": {
            "title": "Include comment replies",
            "type": "boolean",
            "description": "Nests public replies under each comment. Turn **Include comments** on as well.",
            "default": false
          },
          "includeMoreIdeas": {
            "title": "Include more-ideas pins",
            "type": "boolean",
            "description": "For each pin start URL, also collect the pins Pinterest shows under it as more ideas. Each one is a separate result.",
            "default": false
          },
          "moreIdeasPerPin": {
            "title": "More-ideas pins per pin",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on more-ideas pins collected for each pin start URL.",
            "default": 50
          },
          "includeOnlyUserInfo": {
            "title": "Include only user info",
            "type": "boolean",
            "description": "Merges public follower counts, avatars and names for the pinner (and board owner when different) into each pin.",
            "default": false
          },
          "boardsFromProfile": {
            "title": "Profile boards only",
            "type": "boolean",
            "description": "For profile URLs, save one row per public board instead of the profile's pins.",
            "default": false
          },
          "listingRows": {
            "title": "Emit board/profile rows",
            "type": "boolean",
            "description": "When **Search type** is Boards or Profiles, save those boards or accounts as rows instead of opening them to scrape pins.",
            "default": false
          },
          "includeSentiment": {
            "title": "Add sentiment analysis",
            "type": "boolean",
            "description": "Adds a `sentiment` object (label, score, confidence) to each pin from its title/description/alt text. Heuristic — no AI/API call, no extra latency. Billed per pin via the **Additional data** event.",
            "default": false
          },
          "includeContentCategory": {
            "title": "Add content category",
            "type": "boolean",
            "description": "Adds a `content_category` object (label, confidence) to each pin — e.g. Home Decor, Fashion & Style, Food & Drink, Beauty — from its text and domain. Heuristic — no AI/API call. Billed per pin via the **Additional data** event.",
            "default": false
          },
          "minSaveCount": {
            "title": "Minimum saves",
            "minimum": 0,
            "type": "integer",
            "description": "Keep pins saved at least this many times. 0 keeps everything.",
            "default": 0
          },
          "requireDestination": {
            "title": "Only pins that link out",
            "type": "boolean",
            "description": "Keep only pins with a destination website (product pages, articles, recipes).",
            "default": false
          },
          "destinationHosts": {
            "title": "Destination hosts",
            "type": "array",
            "description": "Keep only pins whose destination host matches one of these (e.g. etsy.com). Leave empty for every host.",
            "items": {
              "type": "string"
            }
          },
          "dropPromoted": {
            "title": "Drop promoted pins",
            "type": "boolean",
            "description": "Skip pins Pinterest marks as promoted.",
            "default": false
          },
          "minFollowerCount": {
            "title": "Minimum creator followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep pins whose creator has at least this many followers. 0 keeps everything.",
            "default": 0
          },
          "pinWatch": {
            "title": "Watch mode",
            "enum": [
              "all",
              "unseen",
              "changed"
            ],
            "type": "string",
            "description": "all = save every matching pin (default). unseen = only pins this watch has not seen. changed = pins whose save or comment counts moved, plus new pins.",
            "default": "all"
          },
          "watchKey": {
            "title": "Watch name",
            "type": "string",
            "description": "Stable label for this scheduled job (e.g. nails-daily). Reuse the same name on every run of the same schedule so later runs know what they already saw. Leave empty to use default."
          },
          "trendMarket": {
            "title": "Trends market",
            "enum": [
              "US",
              "CA",
              "GB+IE",
              "DE",
              "FR",
              "IT",
              "ES",
              "BR",
              "MX",
              "AU+NZ",
              "IN"
            ],
            "type": "string",
            "description": "Country or region whose Pinterest Trends list to read. Leave unset to skip Trends and use URLs or keyword search instead."
          },
          "trendList": {
            "title": "Trends list",
            "enum": [
              "rising",
              "month",
              "year",
              "season"
            ],
            "type": "string",
            "description": "Which Trends list to read for the market above.",
            "default": "rising"
          },
          "maxItems": {
            "title": "Maximum number of items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of pins to collect (enqueues across search pages until this cap or no more results).",
            "default": 10000
          },
          "maxSearchPages": {
            "title": "List end page",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of **search** API pages to crawl (e.g. **1** = first page only). Leave empty for no page limit (still limited by max items)."
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "type": "integer",
            "description": "Maximum concurrent requests.",
            "default": 10
          },
          "minConcurrency": {
            "title": "Min concurrency",
            "type": "integer",
            "description": "Minimum concurrent requests.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "type": "integer",
            "description": "Retries per request before failure.",
            "default": 3
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Leave empty — the actor already routes all traffic through its own built-in residential proxy at no extra cost to you. Only set this if you want to use your own proxies."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}