{
  "openapi": "3.0.1",
  "info": {
    "title": "Post Comments Engagements Scraper Linkedin & Video Transcript",
    "description": "LinkedIn Post Comments & Engagement Scraper extracts post comments, reactions, engagement metrics, author details, and video transcripts. Ideal for LinkedIn audience research, content analysis, engagement tracking, sentiment analysis, and competitive intelligence.",
    "version": "0.1",
    "x-build-id": "B1kJPN3WfGyViONzM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/api-empire~post-comments-engagements-scraper-linkedin/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-api-empire-post-comments-engagements-scraper-linkedin",
        "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/api-empire~post-comments-engagements-scraper-linkedin/runs": {
      "post": {
        "operationId": "runs-sync-api-empire-post-comments-engagements-scraper-linkedin",
        "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/api-empire~post-comments-engagements-scraper-linkedin/run-sync": {
      "post": {
        "operationId": "run-sync-api-empire-post-comments-engagements-scraper-linkedin",
        "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": {
          "postUrls": {
            "title": "🎥 LinkedIn post URLs or activity IDs",
            "type": "array",
            "description": "One LinkedIn post per line. Paste a full post URL (https://www.linkedin.com/feed/update/urn:li:activity:7483582759836336130/), a urn:li:activity / urn:li:ugcPost URN, or just the numeric activity ID. Video posts return the full video + transcript block; text and image posts return comments plus post context. The base actor's `startUrls` key is still accepted for backward compatibility.",
            "items": {
              "type": "string"
            }
          },
          "postFormatFilter": {
            "title": "🎞️ Which post formats to keep",
            "enum": [
              "all",
              "video",
              "nonVideo"
            ],
            "type": "string",
            "description": "Narrows the run by post format, read from the post's own page. `Video posts only` is the point of this actor — it drops text and image posts before any row is charged. `Everything except video` is the inverse. Skipped posts still appear in the dataset as an uncharged accounting row with errorReason=filtered_post_format, so a 10-in-4-out run is auditable instead of looking broken. Default: all posts.",
            "default": "all"
          },
          "requireTranscript": {
            "title": "📝 Only posts that actually have a transcript",
            "type": "boolean",
            "description": "LinkedIn publishes a spoken transcript on roughly half of native video posts — measured 11 of 21 (52%) on a live 32-post sample. Turn this ON to keep only the posts that genuinely carry one; posts without a transcript are recorded as an uncharged row with errorReason=no_transcript rather than being billed. Leave OFF to keep every post and read transcriptAvailable per row. Default: off.",
            "default": false
          },
          "commentsPerVideoPost": {
            "title": "💬 Comments per post",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many comments to return per post (1–500). Logged out, LinkedIn itself shows a guest roughly the first 9–10 top-level comments per post, so a higher number only changes the outcome on the cookie path — every row reports commentsAvailable vs commentsTotal so you can see the real coverage. The base actor's `resultLimitPerPost` key is still accepted. Default: 100.",
            "default": 100
          },
          "sortOrder": {
            "title": "🔀 Comment sort order",
            "enum": [
              "REVERSE_CHRONOLOGICAL",
              "RELEVANCE"
            ],
            "type": "string",
            "description": "Applies on the authenticated (cookie) path. Most recent returns newest comments first; Most relevant returns LinkedIn's relevance order. Logged out, LinkedIn serves a fixed guest slice and ignores any sort parameter — the value is not silently pretended to work.",
            "default": "REVERSE_CHRONOLOGICAL"
          },
          "liAt": {
            "title": "🍪 LinkedIn li_at cookie (optional)",
            "type": "string",
            "description": "Leave empty. This actor runs logged out by default and the video, transcript and post-context columns need no cookie at all. Supplying your own li_at only raises the comment ceiling past LinkedIn's guest slice and adds reply threads, per-reaction-type breakdowns and the edited/pinned markers. Stored as a secret and used only for the requests that need it."
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Optional. By default the actor goes direct and escalates on its own — datacenter, then residential with a fresh exit IP — whenever LinkedIn returns HTTP 999 (its rate limit) or serves a guest wall. Set a proxy here to start higher up the ladder."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}