{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Profile Activity Scraper: Comments, Reactions, Posts",
    "description": "What a LinkedIn profile commented and reacted to, and the posts of a company page, in one run: text, date, author and counts. New-only watch, webhook. No cookies, no LinkedIn account. From $0.80 per 1,000 rows.",
    "version": "0.1",
    "x-build-id": "iSfkecY6fOeqMBqSf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alexmorain~linkedin-profile-activity-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alexmorain-linkedin-profile-activity-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-profile-activity-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alexmorain-linkedin-profile-activity-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-profile-activity-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alexmorain-linkedin-profile-activity-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": {
          "profiles": {
            "title": "Profiles (comments and reactions)",
            "type": "array",
            "description": "One LinkedIn profile per line: a profile URL (<code>linkedin.com/in/...</code>) or just the handle (<code>satyanadella</code>). The Actor returns the comments this person wrote and the posts this person reacted to. Duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "title": "Company pages (posts)",
            "type": "array",
            "description": "One company page per line: a URL (<code>linkedin.com/company/...</code>) or just the page name (<code>microsoft</code>). The Actor returns the posts of the page, with reposts and posts of its affiliated pages as LinkedIn lists them.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "collect": {
            "title": "What to collect for profiles",
            "enum": [
              "both",
              "comments",
              "reactions"
            ],
            "type": "string",
            "description": "Comments, reactions, or both in the same run. Rows are billed per comment and per reaction.",
            "default": "both"
          },
          "reactionTypes": {
            "title": "Reaction types to keep",
            "type": "array",
            "description": "Keep only these reaction types. Empty keeps all. The filter is applied after reading: filtered rows are not billed, but it does not reach further back than the all-types list (about 1,000 reactions per profile).",
            "items": {
              "type": "string",
              "enum": [
                "LIKE",
                "PRAISE",
                "EMPATHY",
                "APPRECIATION",
                "INTEREST",
                "ENTERTAINMENT"
              ],
              "enumTitles": [
                "Like",
                "Celebrate (praise)",
                "Support (empathy)",
                "Love (appreciation)",
                "Insightful (interest)",
                "Funny (entertainment)"
              ]
            },
            "default": []
          },
          "maxCommentsPerProfile": {
            "title": "Max comments per profile",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stops reading a profile after this many comments, newest first.",
            "default": 100
          },
          "maxReactionsPerProfile": {
            "title": "Max reactions per profile",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stops reading a profile after this many reactions, newest first. LinkedIn lists about 1,000 reactions per profile, even when the person gave more.",
            "default": 100
          },
          "maxPostsPerCompany": {
            "title": "Max posts per company page",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Stops reading a company page after this many posts, newest first. LinkedIn lists about 400 posts per page.",
            "default": 50
          },
          "maxItems": {
            "title": "Max rows per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Total rows (comments, reactions and posts) 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 rows not delivered by an earlier run with the same watch name. Rows already delivered are skipped and not billed. The Actor still reads each list in full, so the data source cost of a run does not shrink. With this option on, the limits below count the rows already known: they are a window on the newest rows, so a run with nothing new delivers nothing.",
            "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, sources 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}