{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk LinkedIn Company Scraper",
    "description": "Scrape public LinkedIn company pages from a company list or a keyword search. Get company facts, locations, phone numbers, employee statistics, related pages, recent posts, and media links. No LinkedIn login or cookies needed.",
    "version": "2.0",
    "x-build-id": "p9GWxgJcFDp6RcIOl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maximedupre~linkedin-company-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maximedupre-linkedin-company-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/maximedupre~linkedin-company-scraper/runs": {
      "post": {
        "operationId": "runs-sync-maximedupre-linkedin-company-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/maximedupre~linkedin-company-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-maximedupre-linkedin-company-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",
        "properties": {
          "maxItems": {
            "title": "Maximum companies",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many company rows across the run. Leave blank or use 0 for all available companies. The run may return fewer if no more companies are available."
          },
          "discoveryMethod": {
            "title": "Find companies by",
            "enum": [
              "companies",
              "search"
            ],
            "type": "string",
            "description": "Company list reads the companies you name. Keyword search finds companies that match your queries and filters. If omitted, Company list is used.",
            "default": "companies"
          },
          "companyTargets": {
            "title": "LinkedIn companies",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "For Company list, add up to 1,000 companies. For each entry, choose Company URL, Vanity slug, or Company name, then enter its value. You can mix these kinds in one list. A name may match more than one company. Use a full company URL to select a specific profile. Required for Company list.",
            "items": {
              "type": "object",
              "required": [
                "type",
                "value"
              ],
              "properties": {
                "type": {
                  "title": "Value kind",
                  "type": "string",
                  "description": "Choose how to read this entry. Vanity slug selects the exact slug. Company name looks up the name and does not treat it as a slug.",
                  "editor": "select",
                  "enum": [
                    "url",
                    "slug",
                    "name"
                  ],
                  "enumTitles": [
                    "Company URL",
                    "Vanity slug",
                    "Company name"
                  ]
                },
                "value": {
                  "title": "Company value",
                  "type": "string",
                  "description": "For Company URL, enter a full vanity URL such as https://www.linkedin.com/company/microsoft/. Numeric company-ID URLs are not supported. For Vanity slug, enter the slug after /company/, such as microsoft. For Company name, enter the whole name as written, such as Microsoft.",
                  "editor": "textfield",
                  "minLength": 1
                }
              }
            }
          },
          "queries": {
            "title": "Search queries",
            "minItems": 1,
            "type": "array",
            "description": "For Keyword search, add one or more search phrases, such as construction. Each entry is one whole query. The same filters apply to every query. Each query finds up to about 40 companies. Required for Keyword search.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "For Keyword search, copy the full Headquarters value from a LinkedIn company's About section, such as London, England. Only that exact value matches: London, England does not match London, London. Leave blank for all locations."
          },
          "industry": {
            "title": "Industry",
            "type": "string",
            "description": "For Keyword search, copy the exact Industry value from a LinkedIn company's About section, such as Construction or Wholesale Building Materials. Only an exact match counts. Leave blank for all industries."
          },
          "companySize": {
            "title": "Company size range",
            "type": "string",
            "description": "For Keyword search, copy the exact Company size value from a LinkedIn company's About section, such as 2-10 employees, 51-200 employees, or 1,001-5,000 employees. These are examples, not all supported values. Leave blank for all sizes. Unsupported ranges are not changed to another range."
          },
          "details": {
            "title": "Search details",
            "enum": [
              "basic",
              "full"
            ],
            "type": "string",
            "description": "For Keyword search, Basic returns only the LinkedIn company URL of each match. Full reads each company profile for its name, other details, and recent posts. Company list always reads full profiles.",
            "default": "full"
          },
          "languageHint": {
            "title": "Language hint",
            "minLength": 2,
            "maxLength": 8,
            "type": "string",
            "description": "Enter a language code for localized public company pages, such as en.",
            "default": "en"
          },
          "countryHint": {
            "title": "Country hint",
            "minLength": 2,
            "maxLength": 8,
            "type": "string",
            "description": "Enter a country code for localized public company pages, such as US.",
            "default": "US"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}