{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Scraper",
    "description": "Scrape Pinterest pins, boards, profiles and search results without login. Full pin detail (image/video URLs, saves, outbound link, domain), board feeds, and user profiles via Pinterest's public web API, with auto-escalating anti-bot fallback.",
    "version": "0.1",
    "x-build-id": "mx0knZ2g3jBozlzZY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/inexhaustible_glass~pinterest-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-inexhaustible_glass-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/inexhaustible_glass~pinterest-scraper/runs": {
      "post": {
        "operationId": "runs-sync-inexhaustible_glass-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/inexhaustible_glass~pinterest-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-inexhaustible_glass-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": {
          "startUrls": {
            "title": "Pinterest URLs",
            "type": "array",
            "description": "Pin, board, or profile URLs to scrape. The kind is auto-detected: /pin/<id> → one pin, /<user>/<board> → a board + its pins, /<user> → profile + their pins. You can also paste a search URL (/search/pins/?q=...).",
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search Pinterest for. Each query returns matching pins up to Max items.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Usernames",
            "type": "array",
            "description": "Pinterest usernames (with or without @) to scrape. Returns the profile plus their pins (or boards, if 'Scrape user boards' is on).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items per target",
            "minimum": 1,
            "maximum": 2500,
            "type": "integer",
            "description": "Maximum pins/boards to fetch for each search, board, or user. Single pins ignore this.",
            "default": 100
          },
          "endPage": {
            "title": "End page (max pages per target)",
            "minimum": 1,
            "type": "integer",
            "description": "Cap how many resource pages to fetch per target (search/board/profile). Empty = until maxItems. Lower = faster, fewer results."
          },
          "scrapeUserBoards": {
            "title": "Scrape user boards (instead of pins)",
            "type": "boolean",
            "description": "For username/profile targets, fetch the user's boards instead of their pins.",
            "default": false
          },
          "includeUserInfoOnly": {
            "title": "User info only",
            "type": "boolean",
            "description": "For profile URLs: output only the user's profile record, skip their pins/boards.",
            "default": false
          },
          "includeComments": {
            "title": "Include comments (for pin URLs)",
            "type": "boolean",
            "description": "For pin targets, also output the pin's top/highlighted comments (text, author, reply count) as separate rows. Comes free with the pin detail — no extra requests.",
            "default": false
          },
          "includeCommentReplies": {
            "title": "Include comment replies",
            "type": "boolean",
            "description": "For pin URLs with includeComments: also output nested replies under each comment (parent_comment_id links them).",
            "default": false
          },
          "maxComments": {
            "title": "Max comments per pin",
            "type": "integer",
            "description": "Cap how many comments to fetch per pin when includeComments is on.",
            "default": 100
          },
          "includeBoardSections": {
            "title": "Include board sections (for board URLs)",
            "type": "boolean",
            "description": "For board targets, also output the board's sections and the pins inside each section as separate rows.",
            "default": false
          },
          "useWarp": {
            "title": "Use WARP egress (free clean IP)",
            "type": "boolean",
            "description": "Route traffic through a free Cloudflare WARP IP (built in — no setup). This is the default egress and keeps runs free. Turn off to use an Apify proxy instead.",
            "default": true
          },
          "useResidentialProxy": {
            "title": "Use residential proxy (paid fallback)",
            "type": "boolean",
            "description": "Also fetch an Apify RESIDENTIAL proxy as a paid last resort, used only if WARP gets blocked. Costs extra proxy credits. With WARP off, residential becomes the base egress.",
            "default": false
          },
          "proxyCountry": {
            "title": "Proxy country",
            "type": "string",
            "description": "Optional 2-letter country code for the residential proxy (e.g. US, GB, DE). Leave blank for automatic."
          },
          "outputFields": {
            "title": "Output fields (whitelist)",
            "type": "array",
            "description": "Optional list of field names to keep in each output row (e.g. id, description, image_url). Empty = keep all fields.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}