{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinterest Pin Comments & Activity Extractor",
    "description": "Pull public comments, replies, reactions, and Tried It activity for one or more Pinterest Pins, along with each Pin's title, creator, board, and engagement summary.",
    "version": "1.1",
    "x-build-id": "jzOeBCtohAb2PkYW6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~pinterest-pin-comments-and-activity-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-pinterest-pin-comments-and-activity-extractor",
        "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/vexaloom-labs~pinterest-pin-comments-and-activity-extractor/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-pinterest-pin-comments-and-activity-extractor",
        "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/vexaloom-labs~pinterest-pin-comments-and-activity-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-pinterest-pin-comments-and-activity-extractor",
        "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": {
          "mode": {
            "title": "What to collect",
            "enum": [
              "commentsAndActivity",
              "comments",
              "activity",
              "pinSummary"
            ],
            "type": "string",
            "description": "Choose comments with replies, Tried It activity, both, or only the Pin summary.",
            "default": "commentsAndActivity"
          },
          "urls": {
            "title": "Pinterest Pin URLs or IDs",
            "type": "array",
            "description": "One or more numeric Pinterest Pin links or IDs, e.g. https://www.pinterest.com/pin/142567144448888376/. Legacy pinUrls and startUrls inputs are still accepted in code.",
            "items": {
              "type": "string"
            }
          },
          "domain": {
            "title": "Pinterest region",
            "enum": [
              "www.pinterest.com",
              "jp.pinterest.com",
              "br.pinterest.com",
              "uk.pinterest.com",
              "au.pinterest.com",
              "nz.pinterest.com",
              "co.pinterest.com",
              "de.pinterest.com",
              "fr.pinterest.com",
              "in.pinterest.com",
              "es.pinterest.com",
              "it.pinterest.com",
              "nl.pinterest.com",
              "pl.pinterest.com",
              "ru.pinterest.com",
              "tr.pinterest.com",
              "mx.pinterest.com",
              "ar.pinterest.com",
              "id.pinterest.com",
              "ph.pinterest.com",
              "th.pinterest.com",
              "kr.pinterest.com"
            ],
            "type": "string",
            "description": "Regional Pinterest site used for every request. Use the region shown in the Pin link.",
            "default": "www.pinterest.com"
          },
          "maxComments": {
            "title": "Maximum top-level comments per Pin",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Top-level comments to collect per Pin; replies are counted separately. Legacy limit input is still accepted in code.",
            "default": 10
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Fetch public replies for comments that have them.",
            "default": true
          },
          "maxRepliesPerComment": {
            "title": "Maximum replies per comment",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Reply rows to collect for each top-level comment. Set to 0 to skip replies.",
            "default": 100
          },
          "maxActivity": {
            "title": "Maximum activity rows per Pin",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Tried It and other public activity rows to collect per Pin.",
            "default": 100
          },
          "includePinSummary": {
            "title": "Include Pin summary",
            "type": "boolean",
            "description": "Emit one pinCommentsSummary row with the Pin, creator, board, media, commerce and engagement context.",
            "default": true
          },
          "commentSort": {
            "title": "Comment order",
            "enum": [
              "source",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Source keeps Pinterest's ranking; newest and oldest sort the fetched comments by their published date.",
            "default": "source"
          },
          "minLikeCount": {
            "title": "Minimum likes",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Drop comment, reply and activity rows whose published like count is lower. Rows without a published count are kept.",
            "default": 0
          },
          "minHelpfulCount": {
            "title": "Minimum helpful votes",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Drop comment, reply and activity rows whose published helpful count is lower. Rows without a published count are kept.",
            "default": 0
          },
          "sinceDate": {
            "title": "Published on or after",
            "type": "string",
            "description": "Optional inclusive date filter (YYYY-MM-DD) for comments, replies and activity. Leave empty for no lower bound."
          },
          "untilDate": {
            "title": "Published on or before",
            "type": "string",
            "description": "Optional inclusive date filter (YYYY-MM-DD) for comments, replies and activity. Leave empty for no upper bound."
          },
          "proxyConfiguration": {
            "title": "Optional proxy",
            "type": "object",
            "description": "Optional Apify proxy override. The actor works directly and falls back to the automatic Apify proxy without user setup."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}