{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Company Page Posts Scraper - No Login",
    "description": "Scrape LinkedIn company posts and business page posts with full public text, dates, media, engagement and comments. Does LinkedIn allow scraping of public posts? No login or cookies needed. Filter by date, follow reposts and export JSON or CSV.",
    "version": "0.1",
    "x-build-id": "tIoEzxd2T4haFwl0c"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/headofactors~linkedin-company-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-headofactors-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/headofactors~linkedin-company-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-headofactors-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/headofactors~linkedin-company-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-headofactors-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": [
          "targetUrls"
        ],
        "properties": {
          "targetUrls": {
            "title": "Target URLs",
            "minItems": 1,
            "maxItems": 10000,
            "type": "array",
            "description": "LinkedIn company, school, showcase or individual post URLs. Public personal profile feeds are unavailable.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Maximum number of posts to scrape per each input (overrides pagination)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum posts per target, default 10. Zero collects all publicly available recent posts (approximately 70 per company)."
          },
          "postedLimit": {
            "title": "Posted Limit",
            "enum": [
              "any",
              "1h",
              "24h",
              "week",
              "month",
              "3months",
              "6months",
              "year"
            ],
            "type": "string",
            "description": "Fetch posts no older than X time. Options: '24h', 'week', 'month'."
          },
          "postedLimitDate": {
            "title": "Posted Limit Date",
            "type": "string",
            "description": "Scrape posts from now up to and including this date. It supports the [Date time string format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format). For example, \"2011-10-10\", or \"2011-10-10T14:48:00.000+09:00\" or a timestamp: \"628021800000\""
          },
          "includeQuotePosts": {
            "title": "Include Quote Posts (shared posts with comments)",
            "type": "boolean",
            "description": "Include quote posts (shared posts with comments). By default, all posts are scraped.",
            "default": true
          },
          "includeReposts": {
            "title": "Include Reposts (shared posts without comments)",
            "type": "boolean",
            "description": "Include reposts (shared posts without comments). By default, all posts are scraped.",
            "default": true
          },
          "scrapeReactions": {
            "title": "Scrape Reactions",
            "type": "boolean",
            "description": "Accepted for compatibility. Individual reactions require signed-in access and are unavailable; a warning is returned."
          },
          "maxReactions": {
            "title": "Maximum number of reactions to scrape per post",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of reactions to scrape per post. Default is 5."
          },
          "scrapeComments": {
            "title": "Scrape Comments",
            "type": "boolean",
            "description": "Scrape comments of posts."
          },
          "maxComments": {
            "title": "Maximum number of comments to scrape per post",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of comments to scrape per post. Default is 5."
          },
          "commentsPostedLimit": {
            "title": "Comments Posted Limit (filter)",
            "enum": [
              "any",
              "1h",
              "24h",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Fetch comments no older than X time. Options: '24h', 'week', 'month'."
          },
          "contextCountry": {
            "title": "Context Country",
            "enum": [
              "any",
              "US",
              "GB",
              "DE",
              "FR"
            ],
            "type": "string",
            "description": "Set the context country for LinkedIn. This can affect the content you see on LinkedIn, as it may vary by region."
          },
          "cursor": {
            "title": "Continuation cursor",
            "type": "string",
            "description": "Signed next_cursor from the previous response. Keep all other input fields unchanged. The Apify actor follows this automatically."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}