{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Company Posts Scraper",
    "description": "Scrape public LinkedIn company posts by company URL or slug, with a posted-since date filter applied before billing. Each row has post text, URL, date, media and optional reactions and comments, plus company followers, industry, website and size. No cookies or login.",
    "version": "0.1",
    "x-build-id": "12Qq04zeGGdqNCGpg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~linkedin-company-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-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/khadinakbar~linkedin-company-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-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/khadinakbar~linkedin-company-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-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",
        "required": [
          "companyUrls"
        ],
        "properties": {
          "companyUrls": {
            "title": "LinkedIn company URLs or slugs",
            "type": "array",
            "description": "Use this to choose which public LinkedIn company pages to read. Enter full company page URLs (https://www.linkedin.com/company/shopify) or bare slugs (shopify), one per line. Duplicates are removed. Personal /in/ profile URLs are not supported; use a profile posts Actor for people.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Maximum posts",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Use this to cap how many post rows are saved and charged across all companies, for example 50. Range 1 to 1000, default 100. The run stops as soon as this many posts are saved. This is a total cap, not a per-company target. Free Apify plan runs return up to 25 posts per run.",
            "default": 100
          },
          "postedSince": {
            "title": "Posted since",
            "type": "string",
            "description": "Use this to keep only recent posts. Enter an ISO date such as 2026-10-01 or a window such as \"7 days\", \"24 hours\", \"2 weeks\" or \"1 month\". Older posts are skipped and not charged, and paging stops once a whole page is older. Leave empty to keep every post.",
            "default": ""
          },
          "keyword": {
            "title": "Keywords (any match)",
            "type": "string",
            "description": "Use this to keep only posts whose text contains a word or phrase, for example \"webinar, launch\". Separate several keywords with commas or new lines; a post matches when ANY keyword appears (case-insensitive). Posts that do not match are skipped before saving and are not charged. Leave empty to keep every post.",
            "default": ""
          },
          "minLikes": {
            "title": "Minimum reactions",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Use this to keep only popular posts, for example 100. Counts all reactions on the post. Posts below the number are skipped and not charged. Posts whose reaction count is unknown are skipped when this is above 0 (turn on Enrich post details to look them up). Default 0 keeps all.",
            "default": 0
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Use this to keep only discussed posts, for example 5. Posts with fewer comments are skipped and not charged. Default 0 keeps all.",
            "default": 0
          },
          "sortBy": {
            "title": "Order of results",
            "enum": [
              "newest",
              "engagement"
            ],
            "type": "string",
            "description": "Use this to choose the order of saved posts. \"newest\" saves posts as they are read (newest first per company). \"engagement\" reads every post that matches your filters first, then saves the most engaged ones first (reactions + comments + shares); with Maximum posts set, you get the top posts. Default newest.",
            "default": "newest"
          },
          "onlyNewPosts": {
            "title": "Only posts not seen before",
            "type": "boolean",
            "description": "Use this for scheduled monitoring. The Actor remembers the posts it already returned for each company (stored in your own account) and returns only new ones next time. The first run returns the latest posts. A run with nothing new saves no rows and charges no post fee. Default off.",
            "default": false
          },
          "maxPagesPerCompany": {
            "title": "Max pages per company",
            "minimum": 1,
            "maximum": 7,
            "type": "integer",
            "description": "Use this to limit how deep each company feed is read. From the newest post, one page usually holds up to about 100 recent posts with reaction, comment and share counts; when that source is unavailable the Actor falls back to smaller pages of 3 to 10 posts. Range 1 to 7, default 7. maxPosts still caps the total, so most runs stop well before page 7.",
            "default": 7
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 7,
            "type": "integer",
            "description": "Use this to skip the newest posts and start deeper in a company feed. Page 1 holds the most recent posts. Range 1 to 7, default 1. Combine with maxPagesPerCompany to read a later window of the feed.",
            "default": 1
          },
          "includeCompanyProfile": {
            "title": "Include company profile",
            "type": "boolean",
            "description": "Use this to add public company details to every post row: name, followers, employee count, industry, website, logo, founded year and location. Default true. Turn off when you only need post text and dates.",
            "default": true
          },
          "enrichPosts": {
            "title": "Enrich post details",
            "type": "boolean",
            "description": "Use this when you need a short comments preview for each post. Reaction, like, comment and share counts are already included from the main feed in most runs; turn this on to add a comments preview and fill counts when the fallback feed was used. Default false. It makes one extra lookup per post, so runs take longer.",
            "default": false
          },
          "concurrency": {
            "title": "Companies at the same time",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Use this to read several company pages in parallel, for example 5 for a long list. Range 1 to 5, default 5. Lower it only if you want slower, gentler reading.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}