{
  "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": "oGQs25Tv78lzlCqP0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jobscrawler~linkedin-profile-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jobscrawler-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/jobscrawler~linkedin-profile-search/runs": {
      "post": {
        "operationId": "runs-sync-jobscrawler-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/jobscrawler~linkedin-profile-search/run-sync": {
      "post": {
        "operationId": "run-sync-jobscrawler-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": "Choose the mode for scraping LinkedIn profiles. The Short mode provides basic information, while the Full mode includes full detailed profile data.",
            "default": "Full"
          },
          "searchQuery": {
            "title": "Search query (fuzzy search)",
            "maxLength": 300,
            "type": "string",
            "description": "Query to search LinkedIn profiles. (e.g., Founder, Marketing Manager, John Doe). The query supports search operators"
          },
          "maxItems": {
            "title": "Maximum number of profiles to scrape",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of profiles to scrape. The actor will stop scraping when this limit is reached.",
            "default": 50
          },
          "locations": {
            "title": "Locations Filter",
            "maxItems": 70,
            "type": "array",
            "description": "Filter Profiles by these LinkedIn locations. Example: San Francisco.",
            "items": {
              "type": "string"
            }
          },
          "currentCompanies": {
            "title": "Current Company Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Filter Profiles by these LinkedIn companies. Provide full LinkedIn URLs",
            "items": {
              "type": "string"
            }
          },
          "pastCompanies": {
            "title": "Past Company Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Filter Profiles by these LinkedIn past companies. Provide full LinkedIn URLs",
            "items": {
              "type": "string"
            }
          },
          "schools": {
            "title": "School Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Filter Profiles by these LinkedIn schools. Example: Stanford University.",
            "items": {
              "type": "string"
            }
          },
          "currentJobTitles": {
            "title": "Current Job Title Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Filter Profiles by these LinkedIn current job titles. Example: Software Engineer.",
            "items": {
              "type": "string"
            }
          },
          "pastJobTitles": {
            "title": "Past Job Title Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Filter Profiles by these LinkedIn past job titles. Example: Software Engineer.",
            "items": {
              "type": "string"
            }
          },
          "yearsOfExperienceIds": {
            "title": "Years of Experience Filter",
            "type": "array",
            "description": "Filter Profiles by these LinkedIn years of experience IDs. Example: 3 for '3 to 5 years'.",
            "items": {
              "type": "string"
            }
          },
          "yearsAtCurrentCompanyIds": {
            "title": "Years at Current Company Filter",
            "type": "array",
            "description": "Filter Profiles by these LinkedIn years at current company IDs. Example: 3 for '3 to 5 years'.",
            "items": {
              "type": "string"
            }
          },
          "seniorityLevelIds": {
            "title": "Seniority Level Filter",
            "type": "array",
            "description": "Filter Profiles by these LinkedIn seniority level IDs. Example: 120 for 'Senior'.",
            "items": {
              "type": "string"
            }
          },
          "functionIds": {
            "title": "Function Filter",
            "type": "array",
            "description": "Filter Profiles by these LinkedIn function IDs. Example: 8 for 'Engineering'.",
            "items": {
              "type": "string"
            }
          },
          "industryIds": {
            "title": "Industry IDs Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Filter Profiles by these LinkedIn industry IDs. Example: 4 for 'Software Development'.",
            "items": {
              "type": "string"
            }
          },
          "firstNames": {
            "title": "First Names Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Filter Profiles by these LinkedIn first names.",
            "items": {
              "type": "string"
            }
          },
          "lastNames": {
            "title": "Last Names Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Filter Profiles by these LinkedIn last names.",
            "items": {
              "type": "string"
            }
          },
          "profileLanguages": {
            "title": "Profile Languages Filter",
            "type": "array",
            "description": "Filter Profiles by these LinkedIn profile languages.",
            "items": {
              "type": "string"
            }
          },
          "companyHeadcount": {
            "title": "Company Headcount Filter",
            "type": "array",
            "description": "Filter Profiles by their current company's headcount.",
            "items": {
              "type": "string"
            }
          },
          "companyHeadquarterLocations": {
            "title": "Company Headquarter Locations Filter",
            "maxItems": 70,
            "type": "array",
            "description": "Filter Profiles by their current company's headquarter location.",
            "items": {
              "type": "string"
            }
          },
          "recentlyChangedJobs": {
            "title": "Recently Changed Jobs Filter",
            "type": "boolean",
            "description": "Filter Profiles to only those who have changed jobs in the last 90 days."
          },
          "recentlyPostedOnLinkedIn": {
            "title": "Recently Posted on LinkedIn Filter",
            "type": "boolean",
            "description": "Filter Profiles to only those who have posted on LinkedIn in the last 30 days."
          },
          "excludeLocations": {
            "title": "Exclude Locations Filter",
            "maxItems": 70,
            "type": "array",
            "description": "Exclude Profiles by these LinkedIn locations. Example: San Francisco.",
            "items": {
              "type": "string"
            }
          },
          "excludeCurrentCompanies": {
            "title": "Exclude Current Company Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Exclude Profiles by these LinkedIn companies. Provide full LinkedIn URLs",
            "items": {
              "type": "string"
            }
          },
          "excludePastCompanies": {
            "title": "Exclude Past Company Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Exclude Profiles by these LinkedIn past companies. Provide full LinkedIn URLs",
            "items": {
              "type": "string"
            }
          },
          "excludeSchools": {
            "title": "Exclude School Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Exclude Profiles by these LinkedIn schools. Example: Stanford University.",
            "items": {
              "type": "string"
            }
          },
          "excludeCurrentJobTitles": {
            "title": "Exclude Current Job Title Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Exclude Profiles by these LinkedIn current job titles. Example: Software Engineer.",
            "items": {
              "type": "string"
            }
          },
          "excludePastJobTitles": {
            "title": "Exclude Past Job Title Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Exclude Profiles by these LinkedIn past job titles. Example: Software Engineer.",
            "items": {
              "type": "string"
            }
          },
          "excludeIndustryIds": {
            "title": "Exclude Industry IDs Filter",
            "maxItems": 50,
            "type": "array",
            "description": "Exclude Profiles by these LinkedIn industry IDs. Example: 4 for 'Software Development'.",
            "items": {
              "type": "string"
            }
          },
          "excludeSeniorityLevelIds": {
            "title": "Exclude Seniority Level Filter",
            "type": "array",
            "description": "Filter Profiles by these LinkedIn seniority level IDs. Example: 120 for 'Senior'.",
            "items": {
              "type": "string"
            }
          },
          "excludeFunctionIds": {
            "title": "Exclude Function Filter",
            "type": "array",
            "description": "Filter Profiles by these LinkedIn function IDs. Example: 8 for 'Engineering'.",
            "items": {
              "type": "string"
            }
          },
          "excludeCompanyHeadquarterLocations": {
            "title": "Exclude Company Headquarter Locations Filter",
            "maxItems": 70,
            "type": "array",
            "description": "Exclude Profiles by their current company's headquarter location.",
            "items": {
              "type": "string"
            }
          },
          "startPage": {
            "title": "Start Page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "The page number to start scraping from.",
            "default": 1
          },
          "takePages": {
            "title": "Scrape search pages",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "The number of search pages to scrape. Each page contains 25 profiles.",
            "default": 1
          },
          "autoQuerySegmentation": {
            "title": "Enable Automatic Query Segmentation",
            "type": "boolean",
            "description": "Enable automatic query segmentation to split broad search queries into smaller segments based on LinkedIn filters."
          },
          "autoQuerySegmentationLevels": {
            "title": "Automatic Query Segmentation Levels",
            "type": "array",
            "description": "Select the segmentation levels to be used for automatic query segmentation.",
            "items": {
              "type": "string"
            }
          },
          "autoQuerySegmentationTargetCountries": {
            "title": "Target Countries for Automatic Query Segmentation",
            "type": "array",
            "description": "Select the target country to focus the automatic query segmentation.",
            "items": {
              "type": "string"
            }
          },
          "profileDeduplicationMode": {
            "title": "Profile Deduplication Mode",
            "enum": [
              "off",
              "insert_ids",
              "insert_profiles",
              "read_only"
            ],
            "type": "string",
            "description": "Choose how the actor should handle deduplication of LinkedIn profiles across multiple runs using your MongoDB database.",
            "default": "off"
          },
          "mongoDbConnectionString": {
            "title": "MongoDB Connection String",
            "type": "string",
            "description": "Your MongoDB connection string to the database where the actor will store and check scraped profile IDs for deduplication."
          },
          "mongoDbDatabaseName": {
            "title": "MongoDB Database Name",
            "maxLength": 100,
            "type": "string",
            "description": "The name of the MongoDB database where the actor will store and check scraped profile IDs for deduplication. Default name is: harvestapi",
            "default": "harvestapi"
          },
          "postFilteringMongoDbQuery": {
            "title": "Post-Filtering MongoDB Query",
            "type": "object",
            "description": "A MongoDB query in JSON format to further filter the scraped profiles before saving them to the dataset."
          },
          "postFilteringMongoDbAggregation": {
            "title": "Post-Filtering MongoDB Aggregation",
            "type": "array",
            "description": "A MongoDB aggregation pipeline in JSON format to further filter the scraped profiles before saving them to the dataset.",
            "items": {
              "type": "object"
            }
          },
          "queries": {
            "title": "Direct Target URLs / Queries (Optional)",
            "type": "array",
            "description": "List of LinkedIn profile URLs or public identifiers to scrape directly.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Profile URLs (Optional)",
            "type": "array",
            "description": "List of direct profile URLs.",
            "items": {
              "type": "string"
            }
          },
          "publicIdentifiers": {
            "title": "Public Identifiers (Optional)",
            "type": "array",
            "description": "List of LinkedIn public identifiers.",
            "items": {
              "type": "string"
            }
          },
          "profileIds": {
            "title": "Profile IDs (Optional)",
            "type": "array",
            "description": "List of profile IDs.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}