{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Company Scraper with Firmographics & Funding Data",
    "description": "🏢 LinkedIn Company Scraper with Firmographics & Funding Data extracts rich company data from LinkedIn profiles — website, industry, size, HQ, locations, founding year, specialties, followers & description. Export to CSV/JSON & API.",
    "version": "0.2",
    "x-build-id": "nq2HBfCpFgE2pp29o"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scraperforge~linkedin-company-scraper-actor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scraperforge-linkedin-company-scraper-actor",
        "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/scraperforge~linkedin-company-scraper-actor/runs": {
      "post": {
        "operationId": "runs-sync-scraperforge-linkedin-company-scraper-actor",
        "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/scraperforge~linkedin-company-scraper-actor/run-sync": {
      "post": {
        "operationId": "run-sync-scraperforge-linkedin-company-scraper-actor",
        "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": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "🔗📋 Company URLs — one per line, endless possibilities",
            "minItems": 1,
            "type": "array",
            "description": "🪄 Paste every public LinkedIn company page you care about. 🧵 Each link is its own mini-mission: parallel-friendly, resilient, and written to the dataset the instant it succeeds — live results, zero FOMO! ⚡✅",
            "items": {
              "type": "string"
            }
          },
          "proxy": {
            "title": "🌐🛡️ Proxy power-up — optional but mighty",
            "type": "object",
            "description": "🎛️ Start here: datacenter, residential, or none — your call! 🔄 Hit a wall? (403 · 407 · 429 · 999 · sneaky authwall redirects 🧱) The actor gracefully pivots to Apify Residential 🏡🔥 and stays there so your run crosses the finish line smiling. 😎✨"
          },
          "maxRetries": {
            "title": "🔁 Max retries per company URL",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "🎯 How many attempts before giving up on a single URL (with exponential backoff + Residential fallback in between). Default: 3."
          },
          "requestTimeoutSec": {
            "title": "⏱️ Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "⏳ How long to wait for the LinkedIn page to respond before treating the attempt as failed. Default: 30."
          },
          "concurrency": {
            "title": "🚦 Concurrent company fetches",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "⚡ How many company URLs to fetch in parallel (capped at 20). Default: 3."
          },
          "minEmployeeCount": {
            "title": "👥⬇️ Minimum employee count",
            "minimum": 0,
            "type": "integer",
            "description": "📉 Drop companies with fewer employees than this (uses the base `employeeCount` field). Leave blank for no lower bound."
          },
          "maxEmployeeCount": {
            "title": "👥⬆️ Maximum employee count",
            "minimum": 0,
            "type": "integer",
            "description": "📈 Drop companies with more employees than this. Leave blank for no upper bound."
          },
          "minFollowerCount": {
            "title": "📣⬇️ Minimum LinkedIn follower count",
            "minimum": 0,
            "type": "integer",
            "description": "🔥 Keep only companies with at least this many LinkedIn followers (new `followerCount` field). Leave blank for no minimum."
          },
          "industryInclude": {
            "title": "🏭✅ Only include industries containing",
            "type": "array",
            "description": "🔎 Keyword(s) to match (case-insensitive substring) against the `industry` field — keep only companies whose industry contains at least one keyword. Leave empty to skip this filter.",
            "items": {
              "type": "string"
            }
          },
          "industryExclude": {
            "title": "🏭🚫 Exclude industries containing",
            "type": "array",
            "description": "⛔ Keyword(s) to match against `industry` — drop any company whose industry contains one of these. Leave empty to skip this filter.",
            "items": {
              "type": "string"
            }
          },
          "onlyWithFunding": {
            "title": "💰 Only keep companies with funding data found",
            "type": "boolean",
            "description": "🏦 When ON, rows are only kept if this run genuinely found a `data-test-id=\"funding\"` block on the company's page (`hasFundingData: true`). Companies with no public funding section are dropped — never faked. Default: false.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}