{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Post Comments Scraper (No Cookies)",
    "description": "Comments, replies and everyone who reacted on any public LinkedIn post. No cookies or login. Per-comment reaction breakdown, post-author flag, thread position, keyword and recency filters.",
    "version": "0.2",
    "x-build-id": "ADZHFe2tvBaWutvvq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/capable_cauldron~linkedin-post-comments-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-capable_cauldron-linkedin-post-comments-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/capable_cauldron~linkedin-post-comments-scraper/runs": {
      "post": {
        "operationId": "runs-sync-capable_cauldron-linkedin-post-comments-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/capable_cauldron~linkedin-post-comments-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-capable_cauldron-linkedin-post-comments-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",
        "required": [
          "postUrls"
        ],
        "properties": {
          "postUrls": {
            "title": "LinkedIn post URLs",
            "minItems": 1,
            "type": "array",
            "description": "One or more LinkedIn posts. Any of these forms work:\n- https://www.linkedin.com/posts/google_welcome-to-the-gemini-era-activity-7196224250288955393-hd08\n- https://www.linkedin.com/feed/update/urn:li:activity:7196224250288955393/\n- urn:li:activity:7196224250288955393 or the bare id 7196224250288955393\n\nTracking parameters (utm_source, rcm, ...) are stripped automatically. Up to 1,000 posts per run.",
            "items": {
              "type": "string"
            }
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound on comment rows per post. Replies count toward it when they are included. The post is billed for the rows you actually receive.",
            "default": 100
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Also return replies under each comment as their own rows (itemType = reply, with parentCommentId). Turn off for top-level comments only.",
            "default": true
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "mostRelevant",
              "mostRecent"
            ],
            "type": "string",
            "description": "Most relevant is LinkedIn's default thread order. Most recent lists newest first and is the right choice with a Posted within window or when you monitor a post on a schedule.",
            "default": "mostRelevant"
          },
          "postedWithin": {
            "title": "Posted within",
            "enum": [
              "any",
              "24h",
              "week",
              "month",
              "3months",
              "6months",
              "year"
            ],
            "type": "string",
            "description": "Keep only comments posted inside this window. Combine with Most recent so the run stops paging as soon as it reaches older comments.",
            "default": "any"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep only comments whose text contains at least one of these words or phrases (case-insensitive). Example: interested, send me, DM. Leave empty for all comments.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minCommentReactions": {
            "title": "Min reactions on a comment",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Skip comments with fewer reactions than this. Set to 1 or more to keep only comments that got a response.",
            "default": 0
          },
          "excludeAuthorComments": {
            "title": "Exclude the post author's own comments",
            "type": "boolean",
            "description": "Drop comments and replies written by the person or company that published the post.",
            "default": false
          },
          "includeReactions": {
            "title": "Also scrape who reacted",
            "type": "boolean",
            "description": "Add one row per reaction (itemType = reaction) with the reactor's name, headline, profile URL and reaction type. Billed as a separate, cheaper event.",
            "default": false
          },
          "maxReactionsPerPost": {
            "title": "Max reactions per post",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound on reaction rows per post.",
            "default": 100
          },
          "reactionTypes": {
            "title": "Reaction types",
            "uniqueItems": true,
            "type": "array",
            "description": "Only collect these reaction types. Leave empty for all of them.",
            "items": {
              "type": "string",
              "enum": [
                "like",
                "celebrate",
                "love",
                "insightful",
                "support",
                "funny",
                "curious"
              ],
              "enumTitles": [
                "Like",
                "Celebrate",
                "Love",
                "Insightful",
                "Support",
                "Funny",
                "Curious"
              ]
            },
            "default": []
          },
          "dedupePeople": {
            "title": "One row per person",
            "type": "boolean",
            "description": "Keep only the first row for each person across every post in the run, so the dataset is a clean lead list instead of a full transcript. Skipped duplicates are not billed.",
            "default": false
          },
          "maxDatasetItems": {
            "title": "Max total rows",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Hard cap on rows saved across all posts. The run stops when it is reached.",
            "default": 10000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}