{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Company Posts Scraper",
    "description": "Posts from any LinkedIn company page or person: text, exact publication time, reactions, comment counts and media. No login, no cookie. Up to 70 posts per company, and a date filter so a repeat run only pays for what is new. Comment text optional.",
    "version": "0.1",
    "x-build-id": "bI39CC5cTtGWk3Eea"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lightmoon~linkedin-company-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lightmoon-linkedin-company-posts-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/lightmoon~linkedin-company-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lightmoon-linkedin-company-posts-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/lightmoon~linkedin-company-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lightmoon-linkedin-company-posts-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": {
          "companies": {
            "title": "Company pages",
            "type": "array",
            "description": "One per line: `https://www.linkedin.com/company/stripe/`, `linkedin.com/company/stripe`, or just `stripe`. Up to **70 posts per company** — that is where LinkedIn's public feed ends, and the run summary names every company that reached it. **A company's name is not always its address**: Back Market lives at `back-market`. Open the company on LinkedIn and copy the part of the URL after /company/.",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "People",
            "type": "array",
            "description": "One per line: `https://www.linkedin.com/in/satyanadella` or just `satyanadella`. A person's public page shows **about a dozen recent posts and no more** — there is no second page to ask for, so this is a window rather than an archive.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Single posts",
            "type": "array",
            "description": "A post link copied from LinkedIn, in any form: the long `…-activity-7496332962540589056-vQLE` address, `https://www.linkedin.com/feed/update/urn:li:activity:7496332962540589056/`, or the bare id.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Maximum posts in the run",
            "minimum": 0,
            "type": "integer",
            "description": "Across every source. 0 means no limit. Free-plan runs are capped by your own Apify usage, so start small.",
            "default": 200
          },
          "maxPostsPerSource": {
            "title": "Posts per company or person",
            "minimum": 1,
            "maximum": 70,
            "type": "integer",
            "description": "70 is the most a company page will give and about a dozen is the most a person's page holds, so anything above 70 has the same effect as 70.",
            "default": 30
          },
          "includeComments": {
            "title": "Include comment text",
            "type": "boolean",
            "description": "Off by default because it is the expensive half: comments need a second request to a page ten times heavier than the post itself, and they are billed as a separate event. Every post already carries its **comment count** without this. What you get here is the comments LinkedIn shows a signed-out visitor — usually the first handful, not all of them.",
            "default": false
          },
          "maxComments": {
            "title": "Comments per post",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many comments to keep per post when the switch above is on.",
            "default": 10
          },
          "postedAfter": {
            "title": "Posted on or after",
            "type": "string",
            "description": "`2026-08-01`, or a full timestamp. **This is the filter that makes a repeating run cheap**: the publication date is known before anything else is fetched, so an older post is skipped without being billed and without its comments being fetched."
          },
          "postedBefore": {
            "title": "Posted on or before",
            "type": "string",
            "description": "`2026-08-31`, or a full timestamp. Both bounds include the day you name."
          },
          "minReactions": {
            "title": "At least this many reactions",
            "minimum": 0,
            "type": "integer",
            "description": "A post whose counter LinkedIn did not render is not treated as zero: it is skipped and reported separately in the run summary."
          },
          "minComments": {
            "title": "At least this many comments",
            "minimum": 0,
            "type": "integer",
            "description": "Counted from LinkedIn's own total, not from how many comments are readable."
          },
          "skipReposts": {
            "title": "Skip reposts",
            "type": "boolean",
            "description": "Keeps only what this company or person wrote themselves. A repost still names the original author in the row, so leave this off if you want to see who they amplify.",
            "default": false
          },
          "onlyWithText": {
            "title": "Only posts with text",
            "type": "boolean",
            "description": "Drops a repost shared without any words of its own.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}