{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Company Profile Scraper With Firmographic Filters",
    "description": "LinkedIn Company Profile Scraper extracts public company data including names, industries, employee counts, locations, websites, descriptions, and company URLs. Apply firmographic filters to build targeted datasets for B2B lead generation, prospecting, and market research.",
    "version": "0.1",
    "x-build-id": "TDkjUV180ifLaXMcg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/api-empire~linkedin-company-profile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-api-empire-linkedin-company-profile-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/api-empire~linkedin-company-profile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-api-empire-linkedin-company-profile-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/api-empire~linkedin-company-profile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-api-empire-linkedin-company-profile-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": {
          "companyUrls": {
            "title": "🏢 LinkedIn Company URLs",
            "type": "array",
            "description": "List of public LinkedIn company page URLs to process (example: https://www.linkedin.com/company/microsoft). Each is scraped independently and its row is pushed to the dataset the moment it's ready. Add one or many; duplicates are skipped automatically.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "🔗 Company page URLs (legacy alias)",
            "type": "array",
            "description": "Legacy alias of companyUrls, kept for backward compatibility with the base actor's original input format. If companyUrls is empty, this list is used instead.",
            "items": {
              "type": "string"
            }
          },
          "employeeRangeMin": {
            "title": "👥 Min Employee Count",
            "minimum": 0,
            "type": "integer",
            "description": "Skip companies with fewer employees than this (matched against the exact employee count when known, otherwise the parsed size-band start). 0 = no minimum. Example: 1000 keeps only companies with 1,000+ employees.",
            "default": 0
          },
          "employeeRangeMax": {
            "title": "👥 Max Employee Count",
            "minimum": 0,
            "type": "integer",
            "description": "Skip companies with more employees than this. 0 = no maximum. Example: employeeRangeMin=50 + employeeRangeMax=500 keeps only mid-size companies (50-500 employees).",
            "default": 0
          },
          "industryIncludeKeywords": {
            "title": "🏭 Include Industry/Specialty Keywords",
            "type": "array",
            "description": "Keep only companies whose industry OR specialties text contains at least one of these keywords (case-insensitive). Example: [\"software\", \"fintech\"]. Leave empty to skip this filter.",
            "items": {
              "type": "string"
            }
          },
          "industryExcludeKeywords": {
            "title": "🚫 Exclude Industry/Specialty Keywords",
            "type": "array",
            "description": "Skip any company whose industry OR specialties text contains one of these keywords (case-insensitive). Example: [\"staffing\", \"recruiting\"]. Leave empty to skip this filter.",
            "items": {
              "type": "string"
            }
          },
          "minOfficeCount": {
            "title": "🏢 Minimum Office Count",
            "minimum": 0,
            "type": "integer",
            "description": "Skip companies with fewer publicly listed offices than this. 0 = no minimum. Example: 5 keeps only companies with a multi-office footprint.",
            "default": 0
          },
          "officeCountryFilter": {
            "title": "🌍 Require Office In Country",
            "type": "array",
            "description": "Keep only companies that have at least one office in one of these ISO-2 country codes (e.g. \"US\", \"DE\", \"SG\"). Leave empty to skip this filter. Only possible because the actor extracts the full office list, not just the HQ.",
            "items": {
              "type": "string"
            }
          },
          "maxRetries": {
            "title": "🔁 Max Retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many attempts per company page before giving up and saving an error row. Example: 3 (default) retries twice more after an initial failure.",
            "default": 3
          },
          "requestTimeoutSec": {
            "title": "⏱️ Request Timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for each company page to respond before treating the attempt as failed. Default 30 seconds.",
            "default": 30
          },
          "concurrency": {
            "title": "🧵 Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many company pages to process in parallel. Higher values finish large URL lists faster. Default 3, max 20.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy Configuration",
            "type": "object",
            "description": "Optional. Start with this proxy for requests. If LinkedIn blocks or rejects a request, the actor automatically switches to Apify Residential proxy and keeps using it for the rest of the run. Leave empty to start direct (no proxy)."
          },
          "proxy": {
            "title": "🌐 Proxy configuration (legacy alias)",
            "type": "object",
            "description": "Legacy alias of proxyConfiguration, kept for backward compatibility with the base actor's original input format."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}