{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Company Scraper",
    "description": "LinkedIn Company Scraper collects complete public company profiles and posts from any LinkedIn organization. Extract overview, industry, employee count, website, headquarters, locations, affiliated pages, similar pages, and latest updates into structured Excel, CSV, or JSON datasets.",
    "version": "0.0",
    "x-build-id": "ORIeb2cZdSgiIgTah"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlix~linkedin-company-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlix-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/crawlix~linkedin-company-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlix-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/crawlix~linkedin-company-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlix-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": {
          "company_urls": {
            "title": "Company Links",
            "type": "array",
            "description": "Links of the LinkedIn company pages you want to collect. Accepted formats:\n- https://www.linkedin.com/company/google\n- https://www.linkedin.com/company/microsoft/\n- links with tracking parameters or sub-tabs.\n\nEach company is collected independently and results show the exact organization name.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "usernames": {
            "title": "Company Usernames",
            "type": "array",
            "description": "LinkedIn company usernames or handles, for example google, microsoft, or chipotle-mexican-grill. One per line. Type each one exactly as it appears in the company page link after linkedin.com/company/. They work identically to company links.",
            "items": {
              "type": "string"
            }
          },
          "include_locations": {
            "title": "Include Locations",
            "type": "boolean",
            "description": "When turned on, extracts all physical office addresses, headquarters, and branch locations published on the company overview. Turned on by default.",
            "default": true
          },
          "include_affiliated_pages": {
            "title": "Include Affiliated Pages",
            "type": "boolean",
            "description": "When turned on, extracts affiliated company pages, subsidiaries, and related organizations listed on the company profile. Turned on by default.",
            "default": true
          },
          "include_similar_pages": {
            "title": "Include Similar Pages",
            "type": "boolean",
            "description": "When turned on, extracts similar or competitor pages recommended on the company profile. Turned on by default.",
            "default": true
          },
          "max_posts": {
            "title": "Posts per Company ($)",
            "minimum": 0,
            "maximum": 80,
            "type": "integer",
            "description": "Maximum number of recent posts and feed updates to collect for each company (maximum 80, as LinkedIn guest mode delivers up to ~70–80 recent posts per company). Set to 0 to collect company profile data only. Collecting posts adds a small charge per post collected, shown on the pricing tab. A free Apify account collects up to 50 items in total per run across all companies; a paid plan can collect up to 80 posts per company.",
            "default": 10
          },
          "max_jobs": {
            "title": "Jobs per Company ($)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of job postings to scrape for each company (maximum 1,000, as LinkedIn guest mode delivers up to 1,000 open job postings per company). Set to 0 to skip job scraping and scrape company overview/posts only. Set higher to paginate through available open positions. Collecting job listings adds a small charge per job scraped, shown on the pricing tab.",
            "default": 0
          },
          "jobs_date_posted": {
            "title": "Date Posted Filter",
            "enum": [
              "all",
              "past_month",
              "past_week",
              "past_24_hours"
            ],
            "type": "string",
            "description": "Filter job postings by publication date. Select 'All time', 'Past month', 'Past week', or 'Past 24 hours'. Only one date filter can be active at a time.",
            "default": "all"
          },
          "jobs_under_10_applicants": {
            "title": "Under 10 Applicants Filter",
            "type": "boolean",
            "description": "When turned on, only returns job postings that currently have fewer than 10 applicants.",
            "default": false
          },
          "scrape_job_details": {
            "title": "Scrape Full Job Details",
            "type": "boolean",
            "description": "When turned on, visits each job posting link to scrape full job descriptions, seniority level, employment type, job functions, industries, applicant count, and direct apply link.",
            "default": false
          },
          "proxyCountry": {
            "title": "Connection Country",
            "enum": [
              "US",
              "GB",
              "AU",
              "CA",
              "DE",
              "FR",
              "NL",
              "IT",
              "ES",
              "SE",
              "NO",
              "DK",
              "FI",
              "BE",
              "AT",
              "CH",
              "IE",
              "PL",
              "PT",
              "CZ",
              "HU",
              "RO",
              "GR",
              "JP",
              "KR",
              "SG",
              "IN",
              "BR",
              "MX",
              "AR",
              "TR",
              "AF",
              "AL",
              "DZ",
              "AO",
              "AM",
              "AZ",
              "BS",
              "BH",
              "BD",
              "BB",
              "BY",
              "BZ",
              "BJ",
              "BO",
              "BA",
              "BW",
              "BN",
              "BG",
              "BF",
              "KH",
              "CM",
              "CL",
              "CN",
              "CO",
              "CG",
              "CR",
              "HR",
              "CU",
              "CY",
              "CD",
              "DO",
              "EC",
              "EG",
              "SV",
              "EE",
              "ET",
              "FJ",
              "GA",
              "GE",
              "GH",
              "GT",
              "GN",
              "GY",
              "HT",
              "HN",
              "HK",
              "IS",
              "ID",
              "IR",
              "IQ",
              "IL",
              "CI",
              "JM",
              "JO",
              "KZ",
              "KE",
              "KW",
              "KG",
              "LA",
              "LV",
              "LB",
              "LR",
              "LY",
              "LT",
              "LU",
              "MG",
              "MW",
              "MY",
              "MV",
              "ML",
              "MT",
              "MU",
              "MD",
              "MN",
              "ME",
              "MA",
              "MZ",
              "MM",
              "NA",
              "NP",
              "NZ",
              "NI",
              "NE",
              "NG",
              "MK",
              "OM",
              "PK",
              "PS",
              "PA",
              "PG",
              "PY",
              "PE",
              "PH",
              "PR",
              "QA",
              "RU",
              "RW",
              "SA",
              "SN",
              "RS",
              "SL",
              "SK",
              "SI",
              "SO",
              "ZA",
              "LK",
              "SD",
              "SR",
              "SY",
              "TW",
              "TJ",
              "TZ",
              "TH",
              "TG",
              "TT",
              "TN",
              "TM",
              "UG",
              "UA",
              "AE",
              "UY",
              "UZ",
              "VE",
              "VN",
              "YE",
              "ZM",
              "ZW"
            ],
            "type": "string",
            "description": "The country your run connects from. Pick the one closest to your target market. If a country is not available right now, the run connects from the United States instead and the log says so.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}