{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Sales Navigator Company Employees",
    "description": "Get every employee Sales Navigator lists for your companies, as flat rows, with a found-X-of-Y report for each company that names any gap.",
    "version": "1.0",
    "x-build-id": "bYIH9cmD2DmVeDWvk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rayackery~salesnav-company-employees/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rayackery-salesnav-company-employees",
        "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/rayackery~salesnav-company-employees/runs": {
      "post": {
        "operationId": "runs-sync-rayackery-salesnav-company-employees",
        "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/rayackery~salesnav-company-employees/run-sync": {
      "post": {
        "operationId": "run-sync-rayackery-salesnav-company-employees",
        "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": [
          "companies",
          "browserRequest"
        ],
        "properties": {
          "companies": {
            "title": "Companies",
            "type": "array",
            "description": "The companies to collect employees for, one per line: a LinkedIn company page link (linkedin.com/company/…), a Sales Navigator company link, a numeric company ID or a company name. Every company is searched on its own. A person who works at two of your companies is saved once, under the first.",
            "items": {
              "type": "string"
            }
          },
          "browserRequest": {
            "title": "LinkedIn session (Copy as cURL)",
            "type": "string",
            "description": "Copy your session from Chrome:<br>1. Open a search in Sales Navigator in Chrome.<br>2. Open DevTools (⌥⌘I on Mac, Ctrl+Shift+I on Windows), open the Network tab and filter <code>salesApi</code>.<br>3. Reload, right-click a <code>salesApiLeadSearch</code> row, and choose Copy → Copy as cURL (bash).<br>4. Paste the result here. It holds your login; it's stored encrypted."
          },
          "profileScraperMode": {
            "title": "Profile detail",
            "enum": [
              "Full",
              "Short"
            ],
            "type": "string",
            "description": "Short rows come straight from the search results and cost the least. Full rows also fetch each person's Sales Navigator profile: slower, and it adds a charge for every row that gets one.",
            "default": "Full"
          },
          "publicProfiles": {
            "title": "Add public profile sections",
            "type": "boolean",
            "description": "Also open each person's public LinkedIn profile, for the sections Sales Navigator doesn't carry (certifications, projects, volunteering, courses, publications, patents, honors and awards, organizations) and for fuller positions, education and skills. Full rows only. Each public profile counts as a profile view on your LinkedIn account, so turn on LinkedIn's private viewing mode before you start. They are opened one every 4 to 8 seconds, and every one LinkedIn returns adds a charge.",
            "default": false
          },
          "maxPublicProfiles": {
            "title": "Max public profiles",
            "minimum": 1,
            "type": "integer",
            "description": "The most public profiles to open in one run. After that, rows are still saved, with their Sales Navigator details only. Only used when public profile sections are on.",
            "default": 300
          },
          "maxItems": {
            "title": "Max items, in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows, counted across all your companies. Use 0 for no limit.",
            "default": 100
          },
          "maxItemsPerCompany": {
            "title": "Max items per company",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each company after this many rows. Use 0 for no limit.",
            "default": 0
          },
          "checkOnly": {
            "title": "Check only",
            "type": "boolean",
            "description": "Count each company and estimate the run without saving or charging rows. The status line and the log show how many people match and how many requests a full run needs.",
            "default": false
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxies are used by default. Choose your own country so the run looks like it comes from where you normally log in to LinkedIn.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Place names or LinkedIn geo IDs, for example Germany or Berlin. Only people located there are included. Each name is matched to LinkedIn's closest suggestion, and the run log shows which one was used.",
            "items": {
              "type": "string"
            }
          },
          "excludeLocations": {
            "title": "Exclude locations",
            "type": "array",
            "description": "Places to leave out. Same format as Locations.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Keywords",
            "type": "string",
            "description": "Words to look for in people's profiles. LinkedIn's boolean operators (AND, OR, NOT and quotes) work."
          },
          "jobTitles": {
            "title": "Current job titles",
            "type": "array",
            "description": "Titles people hold now, for example Head of Sales. Each is matched to LinkedIn's closest title suggestion; a title with no match is searched as written.",
            "items": {
              "type": "string"
            }
          },
          "excludeCurrentJobTitles": {
            "title": "Exclude current job titles",
            "type": "array",
            "description": "Titles to leave out. Same format as Current job titles.",
            "items": {
              "type": "string"
            }
          },
          "pastJobTitles": {
            "title": "Past job titles",
            "type": "array",
            "description": "Titles people held earlier in their career.",
            "items": {
              "type": "string"
            }
          },
          "excludePastJobTitles": {
            "title": "Exclude past job titles",
            "type": "array",
            "description": "Past titles to leave out.",
            "items": {
              "type": "string"
            }
          },
          "schools": {
            "title": "Schools",
            "type": "array",
            "description": "School names or LinkedIn school IDs. Only people who studied there are included.",
            "items": {
              "type": "string"
            }
          },
          "excludeSchools": {
            "title": "Exclude schools",
            "type": "array",
            "description": "Schools to leave out. Same format as Schools.",
            "items": {
              "type": "string"
            }
          },
          "industryIds": {
            "title": "Industry IDs",
            "type": "array",
            "description": "Numeric LinkedIn industry IDs. Choose an industry in a Sales Navigator search and read its ID from the address bar.",
            "items": {
              "type": "string"
            }
          },
          "excludeIndustryIds": {
            "title": "Exclude industry IDs",
            "type": "array",
            "description": "Industries to leave out. Same format as Industry IDs.",
            "items": {
              "type": "string"
            }
          },
          "seniorityLevelIds": {
            "title": "Seniority levels",
            "type": "array",
            "description": "Only include people at these seniority levels.",
            "items": {
              "type": "string",
              "enum": [
                "100",
                "110",
                "120",
                "130",
                "200",
                "210",
                "220",
                "300",
                "310",
                "320"
              ],
              "enumTitles": [
                "In Training",
                "Entry Level",
                "Senior",
                "Strategic",
                "Entry Level Manager",
                "Experienced Manager",
                "Director",
                "Vice President",
                "CXO",
                "Owner / Partner"
              ]
            }
          },
          "excludeSeniorityLevelIds": {
            "title": "Exclude seniority levels",
            "type": "array",
            "description": "Leave out people at these seniority levels.",
            "items": {
              "type": "string",
              "enum": [
                "100",
                "110",
                "120",
                "130",
                "200",
                "210",
                "220",
                "300",
                "310",
                "320"
              ],
              "enumTitles": [
                "In Training",
                "Entry Level",
                "Senior",
                "Strategic",
                "Entry Level Manager",
                "Experienced Manager",
                "Director",
                "Vice President",
                "CXO",
                "Owner / Partner"
              ]
            }
          },
          "functionIds": {
            "title": "Job functions",
            "type": "array",
            "description": "Only include people who work in these functions.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10",
                "11",
                "12",
                "13",
                "14",
                "15",
                "16",
                "17",
                "18",
                "19",
                "20",
                "21",
                "22",
                "23",
                "24",
                "25",
                "26"
              ],
              "enumTitles": [
                "Accounting",
                "Administrative",
                "Arts and Design",
                "Business Development",
                "Community and Social Services",
                "Consulting",
                "Education",
                "Engineering",
                "Entrepreneurship",
                "Finance",
                "Healthcare Services",
                "Human Resources",
                "Information Technology",
                "Legal",
                "Marketing",
                "Media and Communication",
                "Military and Protective Services",
                "Operations",
                "Product Management",
                "Program and Project Management",
                "Purchasing",
                "Quality Assurance",
                "Real Estate",
                "Research",
                "Sales",
                "Customer Success and Support"
              ]
            }
          },
          "excludeFunctionIds": {
            "title": "Exclude job functions",
            "type": "array",
            "description": "Leave out people who work in these functions.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10",
                "11",
                "12",
                "13",
                "14",
                "15",
                "16",
                "17",
                "18",
                "19",
                "20",
                "21",
                "22",
                "23",
                "24",
                "25",
                "26"
              ],
              "enumTitles": [
                "Accounting",
                "Administrative",
                "Arts and Design",
                "Business Development",
                "Community and Social Services",
                "Consulting",
                "Education",
                "Engineering",
                "Entrepreneurship",
                "Finance",
                "Healthcare Services",
                "Human Resources",
                "Information Technology",
                "Legal",
                "Marketing",
                "Media and Communication",
                "Military and Protective Services",
                "Operations",
                "Product Management",
                "Program and Project Management",
                "Purchasing",
                "Quality Assurance",
                "Real Estate",
                "Research",
                "Sales",
                "Customer Success and Support"
              ]
            }
          },
          "yearsAtCurrentCompanyIds": {
            "title": "Years at current company",
            "type": "array",
            "description": "Only include people who have been at the company this long.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "Less than 1 year",
                "1 to 2 years",
                "3 to 5 years",
                "6 to 10 years",
                "More than 10 years"
              ]
            }
          },
          "yearsOfExperienceIds": {
            "title": "Years of experience",
            "type": "array",
            "description": "Only include people with this much experience in total.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "Less than 1 year",
                "1 to 2 years",
                "3 to 5 years",
                "6 to 10 years",
                "More than 10 years"
              ]
            }
          },
          "companyHeadcount": {
            "title": "Company headcount",
            "type": "array",
            "description": "Only include people whose current company has a headcount in these ranges.",
            "items": {
              "type": "string",
              "enum": [
                "A",
                "B",
                "C",
                "D",
                "E",
                "F",
                "G",
                "H",
                "I"
              ],
              "enumTitles": [
                "Self-employed",
                "1-10",
                "11-50",
                "51-200",
                "201-500",
                "501-1,000",
                "1,001-5,000",
                "5,001-10,000",
                "10,001+"
              ]
            }
          },
          "recentlyChangedJobs": {
            "title": "Recently changed jobs",
            "type": "boolean",
            "description": "Only include people who changed jobs recently, as Sales Navigator defines it.",
            "default": false
          },
          "excludePastCompanies": {
            "title": "Exclude past companies",
            "type": "array",
            "description": "People who used to work at any of these companies are left out. LinkedIn company page links or numeric company IDs.",
            "items": {
              "type": "string"
            }
          },
          "pauseSeconds": {
            "title": "Pause between batches",
            "minimum": 1,
            "type": "integer",
            "description": "Seconds to wait between batches of profile lookups. The real wait is random, between this and twice this. Only used for Full rows. Raise it if LinkedIn starts slowing you down.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}