{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Company Posts Batch Scraper - No Cookies",
    "description": "Scrape public LinkedIn company posts in bulk without cookies. Extract post text, URLs, dates, engagement counts, media, article previews, and company metadata.",
    "version": "0.1",
    "x-build-id": "StYFvRsiawfhgXqaU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/qaseemiqbal~linkedin-company-posts-batch-scraper-no-cookies/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-qaseemiqbal-linkedin-company-posts-batch-scraper-no-cookies",
        "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/qaseemiqbal~linkedin-company-posts-batch-scraper-no-cookies/runs": {
      "post": {
        "operationId": "runs-sync-qaseemiqbal-linkedin-company-posts-batch-scraper-no-cookies",
        "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/qaseemiqbal~linkedin-company-posts-batch-scraper-no-cookies/run-sync": {
      "post": {
        "operationId": "run-sync-qaseemiqbal-linkedin-company-posts-batch-scraper-no-cookies",
        "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 handles or URLs",
            "type": "array",
            "description": "LinkedIn company handles or full company page URLs. Examples: `microsoft`, `google`, `https://www.linkedin.com/company/meta/`.",
            "items": {
              "type": "string"
            }
          },
          "companyUrls": {
            "title": "LinkedIn company page URLs",
            "type": "array",
            "description": "Optional request-list input for LinkedIn company page URLs. Use URLs like `https://www.linkedin.com/company/microsoft/`.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "companyListText": {
            "title": "Bulk company list",
            "type": "string",
            "description": "Optional pasted list of company handles or URLs. Separate items with commas, semicolons, or new lines.",
            "default": ""
          },
          "maxPostsPerCompany": {
            "title": "Max posts per company",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of recent public posts to save for each company. Lower values make runs faster and cheaper.",
            "default": 100
          },
          "onlyPostsSince": {
            "title": "Only posts since",
            "type": "string",
            "description": "Optional date filter in `YYYY-MM-DD` format. Leave empty to collect recent posts up to the selected limit.",
            "default": ""
          },
          "includeMedia": {
            "title": "Include media and links",
            "type": "boolean",
            "description": "Include public media attachments, shared links, and article preview data when LinkedIn exposes them.",
            "default": true
          },
          "includeReactionBreakdown": {
            "title": "Include reaction breakdown",
            "type": "boolean",
            "description": "Include reaction counts by type when publicly available. Total reaction counts may still be present when breakdowns are missing.",
            "default": true
          },
          "includeCompanyMetadata": {
            "title": "Include company metadata",
            "type": "boolean",
            "description": "Include public company metadata such as company name, description, logo URL, and follower count when available.",
            "default": true
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "posts",
              "postsAndCompanySummaries",
              "companySummariesOnly"
            ],
            "type": "string",
            "description": "Choose whether to save only post records, post records plus company summaries, or only company summaries/errors.",
            "default": "posts"
          },
          "deduplicatePosts": {
            "title": "Deduplicate posts",
            "type": "boolean",
            "description": "Skip duplicate posts within the same run using the post ID or canonical post URL when available.",
            "default": true
          },
          "continueOnError": {
            "title": "Continue on errors",
            "type": "boolean",
            "description": "Continue processing the remaining companies if one company fails or returns restricted public data.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of companies processed in parallel. Higher values can be faster but may increase blocking risk.",
            "default": 8
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Number of retries for transient request failures. Blocked responses are not retried to avoid wasting proxy traffic.",
            "default": 2
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 15,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum time to wait for one LinkedIn HTTP request before treating it as timed out.",
            "default": 30
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings for requests. Apify Proxy is recommended for public LinkedIn scraping reliability.",
            "default": {
              "useApifyProxy": true
            }
          },
          "browserFallback": {
            "title": "Browser fallback",
            "type": "boolean",
            "description": "Use a headless browser only when HTTP extraction finds no posts. This can improve coverage but increases runtime and Compute Unit usage.",
            "default": false
          },
          "debugMode": {
            "title": "Debug mode",
            "type": "boolean",
            "description": "Enable only when troubleshooting. Debug mode may add diagnostic fields or more verbose logs in future versions.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}