{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Company Employees Scraper",
    "description": "Scrape employees of a LinkedIn company: name, headline, location, profile URL and photo. Public data with no cookies; full list with your own session.",
    "version": "0.0",
    "x-build-id": "rVhCcLOh0KlV8fcaP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bgfc97~linkedin-company-employees-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bgfc97-linkedin-company-employees-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/bgfc97~linkedin-company-employees-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bgfc97-linkedin-company-employees-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/bgfc97~linkedin-company-employees-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bgfc97-linkedin-company-employees-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": "Company URLs or slugs",
            "type": "array",
            "description": "One or more LinkedIn company pages, as full URLs (e.g. https://www.linkedin.com/company/microsoft/) or bare slugs (e.g. microsoft). For each company the actor returns its employees plus a company summary. People-profile or job URLs are not supported here.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max employees per company",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of employee records to return per company. The company summary record is always returned in addition to this. Set high to get everything available.",
            "default": 100
          },
          "li_at": {
            "title": "li_at session cookie (optional, YOUR own)",
            "type": "string",
            "description": "OPTIONAL. Your OWN LinkedIn li_at session cookie. Leave empty to scrape only the public company page (returns company metadata, total employee count and the small set of employees LinkedIn shows publicly — most are anonymized to 'LinkedIn Member' for logged-out visitors). Provide your li_at to pull the FULL employee list through LinkedIn's internal API. Use ONLY a cookie you own and are permitted to use — never someone else's credentials. It is sent only as a request cookie and is never logged or stored."
          },
          "enrichProfiles": {
            "title": "Enrich each employee from their public profile",
            "type": "boolean",
            "description": "For each employee found, also fetch their public LinkedIn profile page to fill in headline, location and photo when the company-page card does not include them. Slower and costs more requests, but produces richer records. Recommended when you need headline/location for public-mode results.",
            "default": false
          },
          "publicPageFetches": {
            "title": "Public company-page fetches (rotation)",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many times to re-fetch the public company page with a fresh proxy session to accumulate distinct publicly-named employees (LinkedIn rotates which employees it shows to guests). Higher = a few more names but more requests. Ignored when a li_at cookie is supplied. Typically yields only a handful of named employees regardless (see the README limitations).",
            "default": 4
          },
          "useUnblocker": {
            "title": "Escalate to Unblocker on block",
            "type": "boolean",
            "description": "When residential-proxy attempts get bot-blocked (HTTP 999 / challenge), retry the same page through the Apify Proxy UNBLOCKER group, which defeats heavier anti-bot protection (may cost more per request). Recommended on. Note: the Unblocker defeats bot detection, not the login wall — pages that require login still need a li_at cookie.",
            "default": true
          },
          "graphqlQueryId": {
            "title": "Voyager people-search queryId (advanced, optional)",
            "type": "string",
            "description": "ADVANCED. Only used when a li_at cookie is provided. LinkedIn's internal people-search GraphQL endpoint is identified by a versioned queryId that LinkedIn changes when it deploys. A current default is built in; if the authenticated employee list stops working, paste the latest voyagerSearchDashClusters queryId here (find it in your browser's Network tab on a LinkedIn people search). Leave empty to use the default."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy settings used for the first attempts, with a fresh proxy session on every retry. Residential proxies are strongly recommended — LinkedIn aggressively bot-blocks datacenter IPs. If blocked, the actor can additionally escalate to the Unblocker group (see the option above).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "timeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 90,
            "type": "integer",
            "description": "Timeout per HTTP request to LinkedIn, in seconds (5-90).",
            "default": 45
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}