{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Company Employees Scraper",
    "description": "Extract targeted LinkedIn company employees with names, job titles, locations, profile URLs, and matched roles. Build B2B prospect lists for recruiting, decision-maker discovery, account mapping, and market research. Supports no-cookie discovery and authenticated search.",
    "version": "0.0",
    "x-build-id": "fGJHlVgFgIknb8vdB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/generous_fog~linkedin-company-employees-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-generous_fog-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/generous_fog~linkedin-company-employees-scraper/runs": {
      "post": {
        "operationId": "runs-sync-generous_fog-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/generous_fog~linkedin-company-employees-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-generous_fog-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": {
          "dryRun": {
            "title": "Dry run",
            "type": "boolean",
            "description": "Preview planned company and role searches without using LinkedIn cookies or charging for results.",
            "default": false
          },
          "accessMode": {
            "title": "Access mode",
            "enum": [
              "publicIndex",
              "authenticated"
            ],
            "type": "string",
            "description": "Public web index works without cookies for discoverable profiles. Authenticated LinkedIn search uses your own session cookies for deeper company people results.",
            "default": "publicIndex"
          },
          "companyUrls": {
            "title": "LinkedIn company URLs",
            "type": "array",
            "description": "One or more LinkedIn company page URLs, for example https://www.linkedin.com/company/microsoft/",
            "items": {
              "type": "string"
            }
          },
          "roles": {
            "title": "Roles, titles, or keywords",
            "type": "array",
            "description": "Target employee roles such as Founder, Head of Sales, Recruiter, or Software Engineer. Leave empty to collect all visible employees.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip profiles whose headline contains any of these terms.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "liAt": {
            "title": "LinkedIn li_at cookie",
            "type": "string",
            "description": "Your authenticated LinkedIn li_at session cookie. Stored securely and never included in output."
          },
          "jsessionId": {
            "title": "LinkedIn JSESSIONID cookie",
            "type": "string",
            "description": "Your LinkedIn JSESSIONID cookie used for CSRF authentication. Stored securely and never included in output."
          },
          "searchMode": {
            "title": "Search mode",
            "enum": [
              "title",
              "keywords"
            ],
            "type": "string",
            "description": "Title match keeps results whose current headline contains the role. Keyword search returns broader LinkedIn matches.",
            "default": "title"
          },
          "geoUrn": {
            "title": "LinkedIn location Geo URN",
            "type": "string",
            "description": "Optional LinkedIn geographic URN, for example 102713980 for India."
          },
          "maxPagesPerRole": {
            "title": "Max pages per role",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum LinkedIn search-result pages to request for each company and role combination. Each page normally contains about 10 people.",
            "default": 2
          },
          "maxResultsPerCompany": {
            "title": "Max employees per company",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum unique employee records saved for each company. Use 0 for no additional limit.",
            "default": 50
          },
          "delayMs": {
            "title": "Delay between requests",
            "minimum": 1000,
            "maximum": 60000,
            "type": "integer",
            "description": "Delay in milliseconds between LinkedIn requests. Increase this if the account is being rate limited.",
            "default": 3000
          },
          "includeProfileImages": {
            "title": "Include profile images",
            "type": "boolean",
            "description": "Include a profile image URL when LinkedIn exposes one in search results.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify proxy. Residential proxy is recommended when processing many companies."
          },
          "strictCompanyMatch": {
            "title": "Require company match",
            "type": "boolean",
            "description": "In no-cookie mode, keep only profiles whose indexed title or snippet mentions the target company.",
            "default": true
          },
          "countryCode": {
            "title": "Search country",
            "type": "string",
            "description": "Two-letter country code used by the no-cookie public index search.",
            "default": "us"
          },
          "languageCode": {
            "title": "Search language",
            "type": "string",
            "description": "Two-letter language code used by the no-cookie public index search.",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}