{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Scraper — Pins, Boards, Profiles & Commerce",
    "description": "Search Pinterest pins, videos, boards and profiles. Collect creator posts, public comments and replies, images, destination links, available engagement, commerce fields and optional website contacts.",
    "version": "1.0",
    "x-build-id": "TZwu7krjvAF7TBg7t"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trakk~pinterest-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trakk-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/trakk~pinterest-scraper/runs": {
      "post": {
        "operationId": "runs-sync-trakk-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/trakk~pinterest-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-trakk-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": {
          "scrapeType": {
            "title": "🎯 What would you like to collect?",
            "enum": [
              "search",
              "pins",
              "boards",
              "boardPins",
              "profiles",
              "profilePins",
              "profileBoards",
              "comments",
              "ideas",
              "suggestions"
            ],
            "type": "string",
            "description": "🎯 What would you like to collect?. See the README for scope and source availability.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search phrases",
            "type": "array",
            "description": "One phrase per entry. Used by Search and Keyword suggestions. Commas are treated literally.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Pinterest URLs, pin IDs or usernames",
            "type": "array",
            "description": "Use matching pin, board, profile or ideas URLs for the selected mode. Numeric pin IDs, profile @usernames and pin.it share links are accepted. Encoded e1_ search IDs cannot be opened as pin details.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "pins",
              "videos",
              "boards",
              "profiles"
            ],
            "type": "string",
            "description": "Search for. See the README for scope and source availability.",
            "default": "pins"
          },
          "profileFeed": {
            "title": "Profile pins",
            "enum": [
              "created",
              "saved"
            ],
            "type": "string",
            "description": "Profile pins. See the README for scope and source availability.",
            "default": "created"
          },
          "maxItems": {
            "title": "Maximum saved rows for the entire run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Counts all saved pin, board, profile, comment, reply and suggestion rows together. Filtered and duplicate candidates do not consume this limit.",
            "default": 100
          },
          "maxItemsPerSource": {
            "title": "Maximum saved rows per phrase or URL",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Combined saved-row allowance for one phrase or URL, including requested comment/reply rows.",
            "default": 100
          },
          "maxPagesPerSource": {
            "title": "Maximum pages per source",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "A requested result count does not guarantee that many public records. The run reports source limits and pagination stops.",
            "default": 20
          },
          "maxConcurrency": {
            "title": "Concurrent requests",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Concurrent requests. See the README for scope and source availability.",
            "default": 8
          },
          "maxRetries": {
            "title": "Retries after a temporary source error",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Retries after a temporary source error. See the README for scope and source availability.",
            "default": 2
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Request timeout (seconds). See the README for scope and source availability.",
            "default": 20
          },
          "maxCommentsPerPin": {
            "title": "Comments and replies per pin enrichment",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Comments and replies per pin enrichment. See the README for scope and source availability.",
            "default": 20
          },
          "maxRepliesPerComment": {
            "title": "Replies per parent comment",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Replies per parent comment. See the README for scope and source availability.",
            "default": 20
          },
          "maxWebsitePages": {
            "title": "Pages checked per website",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Pages checked per website. See the README for scope and source availability.",
            "default": 2
          },
          "maxContactDomains": {
            "title": "Websites checked per run",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Websites checked per run. See the README for scope and source availability.",
            "default": 25
          },
          "minSaves": {
            "title": "Minimum shared-content saves",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Uses the shared-content save count when Pinterest exposes it. Unknown counts do not pass a positive threshold.",
            "default": 0
          },
          "minFollowers": {
            "title": "Minimum profile followers",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Minimum profile followers. See the README for scope and source availability.",
            "default": 0
          },
          "maxSourceRequests": {
            "title": "Source request allowance",
            "minimum": 10,
            "maximum": 3000,
            "type": "integer",
            "description": "Source request allowance. See the README for scope and source availability.",
            "default": 500
          },
          "includePinDetails": {
            "title": "Add full pin details when the numeric ID is available",
            "type": "boolean",
            "description": "Search/board feeds often expose e1_ IDs that Pinterest does not accept in detail lookups. Available feed data is retained and detailStatus explains coverage; no futile lookup is made for those IDs.",
            "default": true
          },
          "includeProfileDetails": {
            "title": "Add full details to profile search results",
            "type": "boolean",
            "description": "Add full details to profile search results. See the README for scope and source availability.",
            "default": true
          },
          "includeComments": {
            "title": "Add comments to collected pins",
            "type": "boolean",
            "description": "Available for numeric pin IDs with a public shared-content thread. Comment rows count toward the total and per-source row limits.",
            "default": false
          },
          "includeReplies": {
            "title": "Include replies to comments",
            "type": "boolean",
            "description": "Include replies to comments. See the README for scope and source availability.",
            "default": true
          },
          "includeWebsiteContacts": {
            "title": "Find public contacts on linked websites",
            "type": "boolean",
            "description": "Off by default. Finds published email addresses, tel: phone numbers and social links on a bounded number of linked-site pages. Contact evidence is included on the associated pin/profile row.",
            "default": false
          },
          "deduplicateAcrossSources": {
            "title": "Remove duplicate records across different inputs",
            "type": "boolean",
            "description": "Repeated IDs within one source are always deduplicated. Disable this to retain the same record found through different inputs.",
            "default": true
          },
          "excludePromoted": {
            "title": "Exclude explicitly promoted pins",
            "type": "boolean",
            "description": "Exclude explicitly promoted pins. See the README for scope and source availability.",
            "default": false
          },
          "onlyWithWebsite": {
            "title": "Only pins or profiles with a website",
            "type": "boolean",
            "description": "Only pins or profiles with a website. See the README for scope and source availability.",
            "default": false
          },
          "onlyVideos": {
            "title": "Only video pins",
            "type": "boolean",
            "description": "Only video pins. See the README for scope and source availability.",
            "default": false
          },
          "onlyVerifiedMerchants": {
            "title": "Only verified merchants",
            "type": "boolean",
            "description": "Only verified merchants. See the README for scope and source availability.",
            "default": false
          },
          "publishedAfter": {
            "title": "Pins published after",
            "type": "string",
            "description": "Exclusive cutoff: ISO date/time, Unix seconds or milliseconds as text. Missing dates are excluded when enabled; no cutoff is silently relaxed."
          },
          "includeDomains": {
            "title": "Include linked domains",
            "type": "array",
            "description": "Include linked domains. See the README for scope and source availability.",
            "items": {
              "type": "string"
            }
          },
          "excludeDomains": {
            "title": "Exclude linked domains",
            "type": "array",
            "description": "Exclude linked domains. See the README for scope and source availability.",
            "items": {
              "type": "string"
            }
          },
          "mustContain": {
            "title": "Text must contain every phrase",
            "type": "array",
            "description": "Text must contain every phrase. See the README for scope and source availability.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude any of these text phrases",
            "type": "array",
            "description": "Exclude any of these text phrases. See the README for scope and source availability.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Connection configuration",
            "type": "object",
            "description": "Optional connection settings. Leave off for the initial sample.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}