{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Scraper: Keyword Pins, Boards & Profiles with Saves",
    "description": "Pinterest pins by keyword, board or profile with image, title, outbound link, author and board, plus the pin link, saves and repins that Pinterest hides from logged-out search. Board and profile stats, keyword annotations, new-pin monitoring for scheduled runs. No login or cookies.",
    "version": "0.1",
    "x-build-id": "ZCoirqvPz1LmswYUp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/roomy_tweet~pinterest-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-roomy_tweet-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/roomy_tweet~pinterest-scraper/runs": {
      "post": {
        "operationId": "runs-sync-roomy_tweet-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/roomy_tweet~pinterest-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-roomy_tweet-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "One keyword per line. Each one returns the pins Pinterest shows for that search, in order (position 1 is the top result).",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Pinterest links",
            "type": "array",
            "description": "One per line: a search link (pinterest.com/search/pins/?q=…), a board link (pinterest.com/username/board-name/), a profile link (pinterest.com/username/ or @username) or a pin link (pinterest.com/pin/123…/). Country sites such as br.pinterest.com work too.",
            "items": {
              "type": "string"
            }
          },
          "maxPinsPerSource": {
            "title": "Pins per keyword, board or profile",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Most pins to save for each keyword, board or profile. 0 saves only the board and profile rows.",
            "default": 50
          },
          "resolvePinLinks": {
            "title": "Find pin links, saves and repins",
            "type": "boolean",
            "description": "For each search result, looks the pin up in its board's public widget feed and in its author's feed to recover the pin link, saves and repins. Works for most pins, not all: see idStatus in the results. Turn off for faster runs when you only need images, titles and outbound links.",
            "default": true
          },
          "includePinDetails": {
            "title": "Read each pin's page",
            "type": "boolean",
            "description": "Adds comments, shares, hashtags and any missing title, date or video link by reading the pin's own data. Only possible for pins with a pin link. One extra request per pin, charged as \"pin-details\".",
            "default": false
          },
          "onlyWithLink": {
            "title": "Only pins with an outbound link",
            "type": "boolean",
            "description": "Keeps only pins that link to a website (blog post, product page). Use it to see which sites rank for a keyword.",
            "default": false
          },
          "includeSourceInfo": {
            "title": "Save board and profile rows",
            "type": "boolean",
            "description": "For each board link, one row with the board's name, pin count and followers. For each profile link, one row with followers, pin count, monthly views and website. Turn off if you only want pins.",
            "default": true
          },
          "includeProfileBoards": {
            "title": "List each profile's boards",
            "type": "boolean",
            "description": "For each profile link, also saves one row per public board (name, link, pin count, followers).",
            "default": false
          },
          "onlyNewPins": {
            "title": "Only pins not saved before",
            "type": "boolean",
            "description": "Pins saved by earlier runs for the same keyword, board or profile are skipped and not charged. The first run saves everything.",
            "default": false
          },
          "stateStoreName": {
            "title": "Memory name",
            "type": "string",
            "description": "Named key-value store that keeps the saved pins. Use different names for different watchlists.",
            "default": "pinterest-monitor"
          },
          "resetState": {
            "title": "Forget saved pins",
            "type": "boolean",
            "description": "Starts the memory from zero in this run.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Lookups running at the same time. Keep it low to be gentle with the site.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. By default the Actor connects directly and switches to Apify Proxy by itself if Pinterest refuses the connection."
          },
          "failOnQualityDrop": {
            "title": "Fail the run on a quality warning",
            "type": "boolean",
            "description": "Marks the run as failed when the quality check finds a problem (for example most pins without image). Useful for alerts on scheduled runs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}