{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Search Scraper: Pins, Boards, Profiles & Comments",
    "description": "Scrape Pinterest without a login: the pins of searches, search URLs, boards, sections and profiles, boards and people searches, pin URLs. Each pin's id, URL, title, description, image and size, video, link, date, reactions, saves, pinner and board; comments as an add-on. Misses free.",
    "version": "0.2",
    "x-build-id": "fbp7OW5XbrGFXXWq8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~pinterest-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-pinterest-search-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/hyperbach~pinterest-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-pinterest-search-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/hyperbach~pinterest-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-pinterest-search-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": "Search queries",
            "type": "array",
            "description": "What to search for on Pinterest, one query a line (`minimalist kitchen design`), as you would type it in Pinterest's search box. Each query reads the results of `searchScope` (All Pins by default). Up to 200 inputs a run (every list together). An empty query gets a free `invalid` row, a query given twice a free `duplicate` row.",
            "items": {
              "type": "string"
            }
          },
          "searchScope": {
            "title": "What the search queries read",
            "enum": [
              "pins",
              "videos",
              "products",
              "boards",
              "people"
            ],
            "type": "string",
            "description": "The results each search query reads: `pins` (All Pins, the default), `videos` (video pins only), `products` (shopping pins with their price; read on Pinterest's US view, the only view that prices products), `boards` (board rows) or `people` (profile rows). A search URL keeps its own scope.",
            "default": "pins"
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Pinterest search URLs, as your browser shows them: `https://www.pinterest.com/search/pins/?q=garden%20ideas` (All Pins), `/search/videos/?q=…`, `/search/buyable_pins/?q=…` (Products), `/search/boards/?q=…` or `/search/users/?q=…`; any Pinterest country domain. The query and the scope are read; Pinterest applies no other URL parameter, and the row lists the ones it dropped. A board, profile or pin URL here is read as what it is.",
            "items": {
              "type": "string"
            }
          },
          "boardUrls": {
            "title": "Board URLs",
            "type": "array",
            "description": "Pinterest boards, one a line: `https://www.pinterest.com/IKEAUSA/kitchens/` or `IKEAUSA/kitchens`; a board section's URL (`…/kitchens/ikea-house-warming/`) reads that section only. Each gives one `board` row and the board's pins, up to `maxPins`, with each pin's save and repin counts. A board that does not exist gets a free `not_found` row.",
            "items": {
              "type": "string"
            }
          },
          "profileUrls": {
            "title": "Profile URLs or usernames",
            "type": "array",
            "description": "Pinterest profiles, one a line: `https://www.pinterest.com/westelm/` or the username `westelm`. Each gives one `profile` row (followers, following, pins, boards, about, website) and the pins the profile created, up to `maxPins`, with their numeric ids, saves and repins.",
            "items": {
              "type": "string"
            }
          },
          "pinUrls": {
            "title": "Pin URLs",
            "type": "array",
            "description": "Pins by their URL, one a line: `https://www.pinterest.com/pin/1063131055810571289/`, a `/pin/<title>--<number>/` URL, a `pin.it` short link or the bare number. Each gives one `pin` row with its saves, comments, repins and shares. A pin URL from a logged-out search (`/pin/e1_…/`) opens for a logged-in viewer only and gets a free `invalid` row.",
            "items": {
              "type": "string"
            }
          },
          "maxPins": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop each input after this many rows (1 to 10,000): pins for a pin search, a board, a section or a profile; boards for a boards search; profiles for a people search. A pin Pinterest repeats on a later page, or one an earlier input of the run already delivered, is skipped and not counted. A broad search ends at Pinterest's own end of the list, about 900 pins on our test; a board ends at its own pin count.",
            "default": 50
          },
          "maxItems": {
            "title": "Max charged rows (the whole run)",
            "minimum": 0,
            "maximum": 200000,
            "type": "integer",
            "description": "Stop the run after this many pin, board and profile rows across every input (0 = no limit). Comment rows ride with their pins and are bounded by `maxCommentsPerPin`; the free rows are not counted. An input left unread at the cap gets a free `not_read` row.",
            "default": 0
          },
          "includeComments": {
            "title": "Add each pin's comments",
            "type": "boolean",
            "description": "Read the comments of every delivered pin (a search's, a board's, a profile's or a pin URL's) as `comment` rows after their pin: the text, the date, the commenter's public name and profile, the reactions and the reply count. Each comment row is its own charge. A pin whose comments are off says so in `comments_status`. Off by default.",
            "default": false
          },
          "maxCommentsPerPin": {
            "title": "Max comments per pin",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "With `includeComments`: at most this many comment rows a pin (1 to 500), in Pinterest's order.",
            "default": 20
          },
          "searchPinDetails": {
            "title": "Find a search pin's numeric id",
            "type": "boolean",
            "description": "Logged out, Pinterest's search names a pin by an encrypted id. Switched on, each search pin is looked up in its pinner's public feeds (the numeric id and URL, and the counts of the pin's record). An All Pins search pin carries its save, comment and repin counts without it; on a Videos search the add-on also reads the pin's board feed for its save and repin counts. Our tests found the numeric id for about a third of the pins; a pin on one of Pinterest's automatic preview boards or pinners has neither, and `details_note` says why. Charged only for a pin it fills. Off by default.",
            "default": false
          },
          "checkVideoMp4": {
            "title": "Check each video pin for an MP4 file",
            "type": "boolean",
            "description": "Pinterest's answer gives most video pins only an HLS stream (`video_url`). Switched on, each such pin gets one extra 1-byte read of the 720-px MP4 file Pinterest's CDN keeps beside the stream, and `video_mp4_url` is written only when the CDN serves it (12 of 20 videos in our tests). The read holds each video pin's row until it ends, so a run with video pins takes a few seconds longer. No extra charge. Off by default.",
            "default": false
          },
          "onlyWithLink": {
            "title": "Only pins with a link",
            "type": "boolean",
            "description": "Skip pins that link to no website. A skipped pin is free and not counted.",
            "default": false
          },
          "minReactions": {
            "title": "Min reactions",
            "minimum": 0,
            "type": "integer",
            "description": "Skip pins with fewer reactions than this (the count Pinterest shows on the pin). 0 = no filter.",
            "default": 0
          },
          "excludeWords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Skip pins whose title, description, alt text or link holds any of these words as a whole word (any case: \"art\" skips \"Art deco\", not \"smart\").",
            "items": {
              "type": "string"
            }
          },
          "minImageWidth": {
            "title": "Min image width (px)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Skip pins whose full-size image is narrower than this. 0 = no filter.",
            "default": 0
          },
          "createdAfter": {
            "title": "Created on or after",
            "type": "string",
            "description": "Skip pins created before this day (YYYY-MM-DD). Pinterest's lists are not in date order, so the walk reads on."
          },
          "noAiPins": {
            "title": "No AI-generated pins",
            "type": "boolean",
            "description": "Ask Pinterest's search to leave out pins it marks as AI-generated (its own filter; pins, videos and products searches).",
            "default": false
          },
          "productDomain": {
            "title": "Products from one shop",
            "type": "string",
            "description": "Products searches only: the shop's domain (`wayfair.com`); Pinterest's own merchant filter."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Products searches: skip products cheaper than this, in the price's own currency (Pinterest's search does not apply a price filter itself, so the actor reads the served price). A product with no price is skipped when a price filter is set."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Products searches: skip products dearer than this, in the price's own currency."
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}