{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Scraper | Pins, Boards and Profiles",
    "description": "Pinterest scraper to extract pins, boards, user profiles and search results. Get Pinterest data with working pin links, images in 9 sizes, videos, saves, comments and replies, engagement metrics, outbound links, creator and board info, prices and SEO metadata. No login needed, 30+ fields per pin.",
    "version": "1.0",
    "x-build-id": "lrAXgHNQbQ0BDfrah"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~pinterest-scraper-ppr/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-pinterest-scraper-ppr",
        "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/silentflow~pinterest-scraper-ppr/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-pinterest-scraper-ppr",
        "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/silentflow~pinterest-scraper-ppr/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-pinterest-scraper-ppr",
        "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": "Keywords to search on Pinterest, one per line (e.g. 'home decor ideas', 'fall outfits'). Each row says which keyword found it.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "📂 Search Type",
            "enum": [
              "pins",
              "videos",
              "boards",
              "profiles",
              "keywords"
            ],
            "type": "string",
            "description": "What the keyword search collects: pins, video pins only, boards, profiles, or the search phrases Pinterest suggests for your keyword.",
            "default": "pins"
          },
          "startUrls": {
            "title": "🔗 Pinterest URLs",
            "type": "array",
            "description": "Pinterest URLs to scrape: pins, boards, board sections, profiles, idea pages (/ideas/...) or search pages.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of results for the whole run, shared evenly between your keywords and URLs.",
            "default": 100
          },
          "includeDetails": {
            "title": "📊 Include SEO & Price Data",
            "type": "boolean",
            "description": "Fetch SEO metadata, original pin source, and product prices.",
            "default": false
          },
          "includeComments": {
            "title": "💬 Include Comments",
            "type": "boolean",
            "description": "Add each pin's public comments to its row: text, author, date, likes and replies.",
            "default": false
          },
          "maxComments": {
            "title": "Max Comments per Pin",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of comments, replies included, returned for each pin.",
            "default": 20
          },
          "includeRelatedPins": {
            "title": "🧩 Include Related Pins",
            "type": "boolean",
            "description": "For pin URLs, also return the pins Pinterest shows under the pin as 'More ideas', up to Max Results. Each one says which pin it came from.",
            "default": false
          },
          "includeUserBoardsOnly": {
            "title": "🗂️ Profile Boards Only",
            "type": "boolean",
            "description": "For profile URLs, return the profile's boards instead of its pins: one row per board with its name, URL, pin count, follower count, creation date and last update. Example: <code>https://www.pinterest.com/hgtv/</code> returns the boards of HGTV.",
            "default": false
          },
          "minSaves": {
            "title": "Minimum Saves",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only pins saved at least this many times."
          },
          "onlyPinsWithLink": {
            "title": "Only Pins With a Link",
            "type": "boolean",
            "description": "Keep only pins that link to a website: product pages, articles, recipes.",
            "default": false
          },
          "linkDomains": {
            "title": "Link Domains",
            "type": "array",
            "description": "Keep only pins linking to these websites, one per line (e.g. 'etsy.com', 'wayfair'). Leave empty to keep every site.",
            "items": {
              "type": "string"
            }
          },
          "includeUserInfoOnly": {
            "title": "👤 User Info Only",
            "type": "boolean",
            "description": "For user profile URLs, return only user info without fetching their pins.",
            "default": false
          },
          "search": {
            "title": "Search Keyword (single)",
            "type": "string",
            "description": "Single keyword, kept for inputs written before Search Keywords. Use Search Keywords instead."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}