{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Sales Navigator Account Scraper",
    "description": "Turn a LinkedIn Sales Navigator account search URL into public company records with name, industry, size, HQ and website. The Actor decodes Sales Navigator company filters and enriches public company pages, with no cookies or SN seat.",
    "version": "0.1",
    "x-build-id": "70iWyJ1BzIzv8Nvpk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~linkedin-sales-account-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-linkedin-sales-account-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/khadinakbar~linkedin-sales-account-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-linkedin-sales-account-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/khadinakbar~linkedin-sales-account-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-linkedin-sales-account-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": {
          "salesNavigatorUrl": {
            "title": "Sales Navigator account search URL",
            "type": "string",
            "description": "Full URL from the address bar of a LinkedIn Sales Navigator Account search, for example https://www.linkedin.com/sales/search/company?query=(filters:List((type:INDUSTRY,values:List((text:Software Development,selectionType:INCLUDED))))). The actor decodes industry, location, company name, and keywords, then finds matching PUBLIC company pages via Google. SN-only filters such as headcount and revenue are skipped with a notice. NOT a people-search URL and NOT a /sales/company/{id} detail link."
          },
          "industry": {
            "title": "Industry",
            "type": "string",
            "description": "Manual filter used when you are NOT pasting a Sales Navigator URL. Industry phrase quoted on Google (e.g. Software Development). Combine with location or companyName to narrow. If salesNavigatorUrl is provided, that URL's industry filter takes precedence. NOT a NAICS code."
          },
          "location": {
            "title": "Headquarters / location",
            "type": "string",
            "description": "Manual filter: city, region, or country to match against public company pages (e.g. San Francisco or United Kingdom). Leave empty for worldwide. Overridden by a salesNavigatorUrl when one is supplied. NOT a postal code lookup."
          },
          "companyName": {
            "title": "Company name",
            "type": "string",
            "description": "Manual filter: company name to search for on public LinkedIn company pages (e.g. Stripe). Quoted as a phrase so Google matches it exactly. Overridden by a salesNavigatorUrl. NOT a LinkedIn company URL — put those in companyUrls."
          },
          "keywords": {
            "title": "Free-text keywords",
            "type": "string",
            "description": "Manual filter: extra keywords added to the Google query (e.g. fintech payments). Supports Google boolean operators. Merged with a salesNavigatorUrl's decoded keywords. NOT a Sales Navigator URL."
          },
          "companyUrls": {
            "title": "Direct company URLs",
            "type": "array",
            "description": "Optional list of public LinkedIn company page URLs (https://www.linkedin.com/company/<slug>). When provided and no salesNavigatorUrl is set, search is skipped and these pages are enriched directly. Use this for an exported account list you already have. NOT personal /in/ profiles and NOT /sales/company/{id} seat URLs.",
            "items": {
              "type": "string"
            }
          },
          "enrichAccounts": {
            "title": "Deep company enrichment",
            "type": "boolean",
            "description": "When true (default), each company is fetched for public firmographics: industry, employee count, size, headquarters, website, founded year, followers, description. When false, only search-level fields (name, URL, industry signal) are returned at the lower price. Enrichment is billed per successfully enriched account.",
            "default": true
          },
          "maxResults": {
            "title": "Max accounts",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Maximum number of company accounts to return (1-250). Caps both search depth and total event cost. Defaults to 25. Prefill is 3 so Apify quality tests finish inside five minutes. In direct-URL mode it caps how many of the supplied URLs are processed.",
            "default": 25
          },
          "resultsRegion": {
            "title": "Google region",
            "type": "string",
            "description": "Two-letter country code for the Google search region (e.g. US, GB, DE). Affects which localized company pages surface. Defaults to US. NOT the company's headquarters filter — use the location field or Sales Navigator URL for that.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}