{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Lookalike Page Network Crawler",
    "description": "Discover lookalike company and showcase pages from a few LinkedIn seeds. Crawls the public Similar pages and Affiliated pages graph up to four levels, returns firmographics for every page, and records the relation table and discovery path. No login or cookies.",
    "version": "1.0",
    "x-build-id": "XKRueiO6YWfocnh1W"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~linkedin-page-network-crawler/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-linkedin-page-network-crawler",
        "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/xyrelith-data~linkedin-page-network-crawler/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-linkedin-page-network-crawler",
        "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/xyrelith-data~linkedin-page-network-crawler/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-linkedin-page-network-crawler",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "crawlFromSeeds",
              "resolveNames"
            ],
            "type": "string",
            "description": "How to seed the crawl: exact company/showcase URLs or slugs, or company display names that are resolved first.",
            "default": "crawlFromSeeds"
          },
          "seedUrls": {
            "title": "Seed page URLs or slugs",
            "type": "array",
            "description": "LinkedIn company or showcase page URLs, regional URLs, or bare slugs such as `stripe` (mode=crawlFromSeeds). School and personal profile URLs are not public to guests and are skipped.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "companyNames": {
            "title": "Company names",
            "type": "array",
            "description": "Display names such as `Stripe` or `Mercado Libre` to resolve to a public LinkedIn page before crawling (mode=resolveNames). Names are matched against the public featured-company directory and exact page slugs; unresolved names are reported.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxDepth": {
            "title": "Crawl depth",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many page levels to follow. Seed pages are depth 1; depth 2 also fetches their direct relations.",
            "default": 2
          },
          "maxPagesPerLevel": {
            "title": "Max pages per level",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum pages fetched at each depth level. Keeps a wide graph bounded.",
            "default": 10
          },
          "maxItems": {
            "title": "Max pages fetched",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on the total number of pages fetched in the run, including pages that later fail a filter. Edge rows do not count toward this cap.",
            "default": 100
          },
          "includeCompanies": {
            "title": "Keep company pages",
            "type": "boolean",
            "description": "Fetch and return company pages (`/company/...`).",
            "default": true
          },
          "includeShowcases": {
            "title": "Keep showcase pages",
            "type": "boolean",
            "description": "Fetch and return showcase pages (`/showcase/...`). Showcase pages are the product, brand and programme pages affiliated with companies.",
            "default": true
          },
          "followSimilar": {
            "title": "Follow Similar pages",
            "type": "boolean",
            "description": "Follow the Similar pages block on every fetched page.",
            "default": true
          },
          "followAffiliated": {
            "title": "Follow Affiliated pages",
            "type": "boolean",
            "description": "Follow company-to-company relationships in the Affiliated pages block.",
            "default": true
          },
          "followShowcase": {
            "title": "Follow showcase pages",
            "type": "boolean",
            "description": "Follow the showcase links found in Affiliated pages. When off, showcase links are still recorded as affiliated edges but are not fetched.",
            "default": true
          },
          "followParent": {
            "title": "Follow parent companies",
            "type": "boolean",
            "description": "Follow the company that a showcase links back to (a mutual affiliation) and label that edge as `parent`.",
            "default": true
          },
          "includeEdges": {
            "title": "Include edge rows",
            "type": "boolean",
            "description": "Add one row per relation to the dataset with `recordType = \"edge\"` (the Network edges view). Turn it off when you only need page profiles.",
            "default": true
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Keep pages whose industry contains any of these phrases, case-insensitive, e.g. `Software Development`. Pages without an industry are kept.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hqCountry": {
            "title": "Headquarters country",
            "type": "string",
            "description": "Keep pages whose headquarters or listed office addresses contain this country name or code, e.g. `United States` or `US`. Pages without a location are kept.",
            "default": ""
          },
          "hqCity": {
            "title": "Headquarters city",
            "type": "string",
            "description": "Keep pages whose headquarters or listed office addresses contain this city, e.g. `San Francisco`. Pages without a location are kept.",
            "default": ""
          },
          "companySizeBand": {
            "title": "Company size band",
            "enum": [
              "any",
              "1-10",
              "11-50",
              "51-200",
              "201-500",
              "501-1000",
              "1001-5000",
              "5001-10000",
              "10001+"
            ],
            "type": "string",
            "description": "Keep pages in one LinkedIn company-size band. Pages without a size band are kept.",
            "default": "any"
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep pages with at least this many LinkedIn followers. Zero disables the filter. Pages without a follower count are kept.",
            "default": 0
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Keep pages whose name, tagline, about text or specialties contain this phrase, case-insensitive.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}