{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Profile Search Mass Scraper",
    "description": "Our powerful tool helps you search all LinkedIn Profiles and filter by companies, job titles, locations, and more without compromising security or violating platform policies.",
    "version": "1.0",
    "x-build-id": "DSNxqV8C9k2XAcmdp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapeai~linkedin-profile-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapeai-linkedin-profile-search",
        "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/scrapeai~linkedin-profile-search/runs": {
      "post": {
        "operationId": "runs-sync-scrapeai-linkedin-profile-search",
        "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/scrapeai~linkedin-profile-search/run-sync": {
      "post": {
        "operationId": "run-sync-scrapeai-linkedin-profile-search",
        "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": {
          "profileScraperMode": {
            "title": "Profile Scraper Mode",
            "enum": [
              "Short",
              "Full",
              "Full + email search"
            ],
            "type": "string",
            "description": "Short: Scrapes only search pages (basic profile data). Full: Scrapes search pages and opens profile links for full details. Full + email search: Scrapes full profiles and searches for verified email addresses.",
            "default": "Full"
          },
          "searchQuery": {
            "title": "General Search Query",
            "type": "string",
            "description": "General search query (fuzzy search), e.g., Founder, Marketing Manager, John Doe.",
            "default": "Marketing Manager"
          },
          "jobTitles": {
            "title": "Current Job Titles",
            "type": "array",
            "description": "List of current job titles (e.g., Marketing Manager, Data Scientist).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "pastJobTitles": {
            "title": "Past Job Titles",
            "type": "array",
            "description": "List of past job titles (e.g., Marketing Manager, Data Scientist).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "List of locations where target profiles currently live (e.g., New York, San Francisco, London).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "currentCompanies": {
            "title": "Current Companies / URLs",
            "type": "array",
            "description": "List of LinkedIn Company URLs or names where they currently work (e.g., google, meta, amazon).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "pastCompanies": {
            "title": "Past Companies / URLs",
            "type": "array",
            "description": "List of LinkedIn Company URLs or names where they previously worked.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "schools": {
            "title": "Schools / Universities",
            "type": "array",
            "description": "List of LinkedIn School URLs or names where they studied (e.g., stanford-university, MIT).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "industryIds": {
            "title": "LinkedIn Industry IDs",
            "type": "array",
            "description": "List of LinkedIn industry IDs (numbers only, e.g., 4 for Software Development, 43 for Financial Services).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "yearsOfExperience": {
            "title": "Total Years of Experience",
            "type": "array",
            "description": "List of total years of experience requirements.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "yearsAtCurrentCompany": {
            "title": "Years at Current Company",
            "type": "array",
            "description": "List of years at current company requirements.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startPage": {
            "title": "Start Page",
            "minimum": 1,
            "type": "integer",
            "description": "The page number to start scraping from. Default is 1.",
            "default": 1
          },
          "takePages": {
            "title": "Scrape Search Pages (takePages)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "The number of search pages to scrape. One page yields up to 25 results. Maximum 100 pages per query.",
            "default": 1
          },
          "maxItems": {
            "title": "Maximum Profiles to Scrape (maxItems)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum total number of profiles to scrape across all queries/segments. Set to 0 to scrape all available items up to 2,500 per query.",
            "default": 0
          },
          "automaticQuerySegmentationLevels": {
            "title": "Automatic Query Segmentation Levels",
            "type": "array",
            "description": "Segmentation levels to split queries exceeding 2,500 results (e.g., Countries, State/Region, Experience Level, Industries).",
            "default": [
              "Countries",
              "State/Region"
            ],
            "items": {
              "type": "string"
            }
          },
          "targetCountries": {
            "title": "Target Countries for Segmentation",
            "type": "array",
            "description": "Target country codes or names for location segmentation.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mongoDbConnectionString": {
            "title": "MongoDB Connection String for Deduplication",
            "type": "string",
            "description": "MongoDB URI string for cross-run profile deduplication (e.g., mongodb+srv://user:pass@cluster.mongodb.net).",
            "default": ""
          },
          "postFilteringMongoDbQuery": {
            "title": "Post-Filtering MongoDB Query",
            "type": "object",
            "description": "JSON object defining MongoDB query language filter applied to scraped profile results.",
            "default": {}
          },
          "queries": {
            "title": "Direct Target URLs / Queries (Optional)",
            "type": "array",
            "description": "List of LinkedIn profile URLs or public identifiers to scrape directly.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Profile URLs (Optional)",
            "type": "array",
            "description": "List of direct profile URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "publicIdentifiers": {
            "title": "Public Identifiers (Optional)",
            "type": "array",
            "description": "List of LinkedIn public identifiers.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "profileIds": {
            "title": "Profile IDs (Optional)",
            "type": "array",
            "description": "List of profile IDs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "connectionProxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify proxy configuration. Residential recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}