{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Post Comments & Reactions Scraper (No Cookies)",
    "description": "Comments, replies and reactions of LinkedIn posts in one run: author name, headline, profile URL, date, text. Post URLs or a profile's recent posts, new-only watch, webhook. No cookies, no LinkedIn account. From $0.80 per 1,000 rows.",
    "version": "0.1",
    "x-build-id": "kGB7yjCIdi15blIC7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alexmorain~linkedin-post-comments-reactions-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alexmorain-linkedin-post-comments-reactions-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/alexmorain~linkedin-post-comments-reactions-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alexmorain-linkedin-post-comments-reactions-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/alexmorain~linkedin-post-comments-reactions-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alexmorain-linkedin-post-comments-reactions-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": {
          "posts": {
            "title": "Post URLs or URNs",
            "type": "array",
            "description": "One LinkedIn post per line: a post URL (<code>linkedin.com/posts/...</code> or <code>linkedin.com/feed/update/urn:li:activity:...</code>) or a URN (<code>urn:li:activity:...</code>, <code>urn:li:share:...</code>, <code>urn:li:ugcPost:...</code>). Duplicates are removed. Leave empty if you only use the profile and company field below.",
            "items": {
              "type": "string"
            }
          },
          "sourceUrls": {
            "title": "Profiles or company pages (latest posts)",
            "type": "array",
            "description": "Optional. Profile URLs (<code>linkedin.com/in/...</code>) or company page URLs (<code>linkedin.com/company/...</code>). The Actor lists their most recent posts and reads the engagement of each. Combined with the post list above, a post is read once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postsPerSource": {
            "title": "Latest posts per profile or page",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many of the most recent posts to read for each profile or company page.",
            "default": 5
          },
          "collect": {
            "title": "What to collect",
            "enum": [
              "both",
              "comments",
              "reactions"
            ],
            "type": "string",
            "description": "Comments (with replies if you keep them on), reactions, or both in the same run. Rows are billed per comment and per reaction.",
            "default": "both"
          },
          "includeReplies": {
            "title": "Include replies to comments",
            "type": "boolean",
            "description": "Replies come with their parent comment (up to 10 per thread) and are billed as comments. Each reply row has <code>isReply: true</code> and the <code>parentCommentId</code>.",
            "default": true
          },
          "reactionTypes": {
            "title": "Reaction types to keep",
            "type": "array",
            "description": "Keep only these reaction types. Empty keeps all. The filter is applied after reading: it saves you money (filtered rows are not billed) but it does not reach further than the all-types list, which LinkedIn serves up to 5,000 reactions per post.",
            "items": {
              "type": "string",
              "enum": [
                "LIKE",
                "PRAISE",
                "EMPATHY",
                "APPRECIATION",
                "INTEREST",
                "ENTERTAINMENT"
              ],
              "enumTitles": [
                "Like",
                "Celebrate (praise)",
                "Support (empathy)",
                "Love (appreciation)",
                "Insightful (interest)",
                "Funny (entertainment)"
              ]
            },
            "default": []
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stops reading a post after this many comment rows (replies included).",
            "default": 100
          },
          "maxReactionsPerPost": {
            "title": "Max reactions per post",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stops reading a post after this many reaction rows. LinkedIn lists at most 5,000 reactions per post, even when the post shows more.",
            "default": 100
          },
          "maxItems": {
            "title": "Max rows per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Total comment and reaction rows for the whole run. The run stops cleanly when it is reached.",
            "default": 10000
          },
          "onlyNew": {
            "title": "New rows only (watch)",
            "type": "boolean",
            "description": "Deliver only the comments and reactions not delivered by an earlier run with the same watch name. Rows already delivered are skipped and not billed. The Actor still reads each post in full, because LinkedIn does not list comments by date.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Name of the memory used by the new-only option, kept in your own Apify account. Use one name per monitoring job.",
            "default": "default"
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. A summary of the run (rows delivered, posts read) is sent here with a POST when the run ends. Works with Slack, Discord, Make, Zapier or n8n. The URL is never logged."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}