{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Scraper — Pins, Videos, Boards & Profiles",
    "description": "Export public Pinterest keyword searches and known pins, boards or profiles. Includes media URLs, source provenance, real cursor pagination and optional offline English sentiment/topic analysis. Independent tool.",
    "version": "0.1",
    "x-build-id": "uxDgfkNBNquyhryNY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/peerless_columbine~pinterest-pins-boards-profiles-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-peerless_columbine-pinterest-pins-boards-profiles-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/peerless_columbine~pinterest-pins-boards-profiles-scraper/runs": {
      "post": {
        "operationId": "runs-sync-peerless_columbine-pinterest-pins-boards-profiles-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/peerless_columbine~pinterest-pins-boards-profiles-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-peerless_columbine-pinterest-pins-boards-profiles-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": "Public Pinterest URLs",
            "type": "array",
            "description": "Search, pin, board, profile, category or ideas URLs. One string per URL; no login links.",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "title": "Keyword result type",
            "enum": [
              "all-pins",
              "videos",
              "boards",
              "profiles"
            ],
            "type": "string",
            "description": "Applies to queries. Direct search URLs determine their own result scope.",
            "default": "all-pins"
          },
          "queries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Each query is fetched separately; mixed-language text is preserved.",
            "items": {
              "type": "string"
            }
          },
          "limit": {
            "title": "Maximum saved rows per seed",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum unique saved rows for each query or URL. maxResults and maxPagesPerSeed also bound the run.",
            "default": 50000
          },
          "sentinent_analysis": {
            "title": "Optional text sentiment",
            "type": "boolean",
            "description": "Add English VADER sentiment from title and image alt text. Offline by default: no API key or model charge. Empty text omits sentiment fields. Other languages require the explicit BYO model.",
            "default": false
          },
          "content_analysis": {
            "title": "Optional text category analysis",
            "type": "boolean",
            "description": "Classify public pin text with our independent English topic labels and aliases. Adds category fields only when a rule matches; rule strength is not a calibrated probability. No external model required.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy connection",
            "type": "object",
            "description": "Defaults to the existing Apify Residential service, which incurs account usage charges. This route returned bounded real pins, videos, boards and profiles in cloud tests. Set useApifyProxy=false for direct local access. Custom HTTP(S) proxies must be public.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "language": {
            "title": "Requested language",
            "type": "string",
            "description": "Accept-Language header, not an exit-IP country override.",
            "default": "en-US"
          },
          "dnsResolver": {
            "title": "DNS resolver",
            "enum": [
              "system",
              "google-doh"
            ],
            "type": "string",
            "description": "Use google-doh explicitly on fake-IP DNS networks. Validated public IP connection and TLS verification remain required.",
            "default": "system"
          },
          "profileMode": {
            "title": "Direct profile URL output",
            "enum": [
              "profile",
              "pins",
              "boards"
            ],
            "type": "string",
            "description": "Profile metadata, paginated saved pins or paginated boards. Does not change keyword profiles searches.",
            "default": "profile"
          },
          "boardMode": {
            "title": "Direct board URL output",
            "enum": [
              "pins",
              "board"
            ],
            "type": "string",
            "description": "Return paginated pins or one board metadata record.",
            "default": "pins"
          },
          "analysisProvider": {
            "title": "Analysis provider",
            "enum": [
              "lexical",
              "disabled",
              "openai"
            ],
            "type": "string",
            "description": "lexical performs offline English sentiment/topic analysis when flags are enabled. openai is an optional BYO-key text model with explicit paid-request gates; its outputs use match_type=model.",
            "default": "lexical"
          },
          "allowPaidAnalysis": {
            "title": "Explicitly enable BYO-key analysis requests",
            "type": "boolean",
            "description": "Required only for analysisProvider=openai. Model charges are outside Apify limits. Offline lexical analysis makes no model requests.",
            "default": false
          },
          "aiModel": {
            "title": "BYO analysis model",
            "type": "string",
            "description": "Required only for analysisProvider=openai. Explicit Responses-compatible model with structured outputs."
          },
          "maxPagesPerSeed": {
            "title": "Page ceiling per input",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard client-side bound.",
            "default": 100
          },
          "pageSize": {
            "title": "Requested source page size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Pinterest may return more or fewer; the saved-row limits are always enforced.",
            "default": 25
          },
          "maxResults": {
            "title": "Global stored-row ceiling",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard client-side bound.",
            "default": 50000
          },
          "maxRequests": {
            "title": "Global HTTP attempt ceiling",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard client-side bound.",
            "default": 1000
          },
          "requestTimeoutSecs": {
            "title": "Request timeout in seconds",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Hard client-side bound.",
            "default": 25
          },
          "maxRetries": {
            "title": "Retries per GET",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Hard client-side bound.",
            "default": 1
          },
          "maxAiRequests": {
            "title": "BYO model request ceiling",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on optional BYO model requests. Does not limit offline lexical analysis.",
            "default": 10
          },
          "requestDelaySecs": {
            "title": "Minimum interval between source requests",
            "minimum": 0.25,
            "maximum": 30,
            "type": "number",
            "description": "All source requests are sequential.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}