{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Boards Scraper — User Board Lists & Pins",
    "description": "Scrape Pinterest boards by board URL or username. User mode lists every board a profile owns with follower, pin and section counts; board mode returns board details plus its pins with images, links and save counts. No cookies or login.",
    "version": "0.1",
    "x-build-id": "wbexatt7ONLxmZqiu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~pinterest-boards-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-pinterest-boards-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/khadinakbar~pinterest-boards-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-pinterest-boards-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/khadinakbar~pinterest-boards-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-pinterest-boards-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": "Board or profile URLs",
            "type": "array",
            "description": "Pinterest URLs to scrape, one per line. Use a board URL such as 'https://www.pinterest.com/nike/back-to-school/' to get that board plus its pins. Use a profile URL such as 'https://www.pinterest.com/etsy/' to get every board that user owns. The type is detected per URL. Do NOT paste single pin links (/pin/<id>/): this tool works at board level and skips them with a warning. Example: ['https://www.pinterest.com/marthastewart/baking-and-dessert-recipes-and-ideas/'].",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Usernames (all their boards)",
            "type": "array",
            "description": "Pinterest handles without the @ sign or URL, one per line. Each handle returns every public board that user owns, the same as pasting their profile URL. Leave empty if you only use Board or profile URLs. Do NOT put board names here: a board slug alone is ambiguous, so give the full board URL in startUrls instead. Example: ['nike', 'etsy'].",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "board-pins",
              "user-boards"
            ],
            "type": "string",
            "description": "How each input is read. 'auto' (default) decides per input: a board URL returns board pins, a profile URL or username returns that user's boards. 'board-pins' treats every input as a board URL and skips the rest. 'user-boards' treats every input as a profile or username and lists its boards. Keep 'auto' unless you mix ambiguous inputs and want to force one reading.",
            "default": "auto"
          },
          "maxPinsPerBoard": {
            "title": "Max pins per board",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Most pins to return from each board. Pins are billed one by one, so this is also your spending limit per board. 50 is the default and is the fastest. Values above 150 or 800 start the run with more memory so big boards finish faster; the memory size is chosen when the run starts. Set 0 to get board details only, with no pins. Maximum 5000.",
            "default": 50
          },
          "maxBoardsPerUser": {
            "title": "Max boards per user",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most boards to return for each profile or username, in the order Pinterest shows them on the profile. Default 50, maximum 500. Only used when an input is a profile or username; it has no effect on board URLs.",
            "default": 50
          },
          "includeBoardPins": {
            "title": "Also scrape pins for each user board",
            "type": "boolean",
            "description": "Only for profile or username inputs. Off (default): you get the list of boards only, which is fast and cheap. On: every board found is also scraped for pins, up to 'Max pins per board' each, and every pin is billed. Turn on only when you need pins from all of a user's boards. Board URLs always return pins, so this setting does not change them.",
            "default": false
          },
          "onlyWithOutboundLink": {
            "title": "Only pins that link to a website",
            "type": "boolean",
            "description": "On: return only pins that carry an outbound link to a store, blog or other site, and skip pure image saves. Skipped pins are not billed and do not count toward 'Max pins per board'. Off (default): return every pin. Useful for finding shop and blog links for ecommerce and SEO research.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy for Pinterest requests. The default uses Apify residential proxies, which Pinterest profile pages need; the board pin routes start without a proxy and switch to a proxy only if Pinterest blocks them. Turn Apify Proxy off only if you are sure your own network is not blocked.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}