{
  "openapi": "3.0.1",
  "info": {
    "title": "Advanced LinkedIn Job Scraper",
    "description": null,
    "version": "0.1",
    "x-build-id": "YFralXBsq5ktuk7Xi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/api-empire~advanced-linkedin-job-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-api-empire-advanced-linkedin-job-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/api-empire~advanced-linkedin-job-scraper/runs": {
      "post": {
        "operationId": "runs-sync-api-empire-advanced-linkedin-job-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/api-empire~advanced-linkedin-job-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-api-empire-advanced-linkedin-job-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",
        "required": [
          "searchKeywords",
          "li_at"
        ],
        "properties": {
          "searchKeywords": {
            "title": "🔍 Search queries",
            "type": "array",
            "description": "List one or more job titles or keywords to search on LinkedIn (e.g. `software engineer`, `data scientist`, `product manager`). Each entry runs as a separate search and the results are merged.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "📍 Locations Filter",
            "type": "array",
            "description": "Locations to search in (e.g. `California`, `New York`, `United Kingdom`, `Remote`). Each entry runs as a separate search. Leave empty for worldwide.",
            "items": {
              "type": "string"
            }
          },
          "li_at": {
            "title": "🔐 LinkedIn Session Cookie (li_at)",
            "type": "string",
            "description": "Your LinkedIn `li_at` cookie value. Required to access full job details. To get it: log in to LinkedIn → DevTools → Application → Cookies → `li_at`. Stored encrypted."
          },
          "maxItems": {
            "title": "📦 Maximum number of jobs to scrape per each job title and location input",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Caps the number of jobs returned for every `keyword × location` combination. Set `0` for unlimited (capped internally at ~1000 to prevent runaway runs).",
            "default": 10
          },
          "companyUrls": {
            "title": "🏢 Company Filter",
            "type": "array",
            "description": "Filter jobs to specific employers. Accepts LinkedIn company URLs (`https://www.linkedin.com/company/google`) or plain names (`Netflix`). Leave empty to include all employers.",
            "items": {
              "type": "string"
            }
          },
          "workplaceType": {
            "title": "🏠 Workplace Type",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by where the work is performed.",
            "items": {
              "type": "string",
              "enum": [
                "on_site",
                "remote",
                "hybrid"
              ],
              "enumTitles": [
                "🏢 On-site",
                "🌍 Remote",
                "🔀 Hybrid"
              ]
            },
            "default": []
          },
          "employmentType": {
            "title": "💼 Employment Type",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by the type of employment offered.",
            "items": {
              "type": "string",
              "enum": [
                "full_time",
                "part_time",
                "contract",
                "temporary",
                "internship"
              ],
              "enumTitles": [
                "🕘 Full-time",
                "⏱️ Part-time",
                "📝 Contract",
                "📅 Temporary",
                "🎓 Internship"
              ]
            },
            "default": []
          },
          "experienceLevel": {
            "title": "🎯 Experience Level",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter jobs by required experience level.",
            "items": {
              "type": "string",
              "enum": [
                "internship",
                "entry",
                "associate",
                "mid-senior",
                "director",
                "executive"
              ],
              "enumTitles": [
                "🎓 Internship",
                "🌱 Entry-level",
                "👥 Associate",
                "🚀 Mid-Senior",
                "🧭 Director",
                "👑 Executive"
              ]
            },
            "default": []
          },
          "salary": {
            "title": "💰 Salary Filter",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by minimum annual base salary in USD.",
            "items": {
              "type": "string",
              "enum": [
                "40k+",
                "60k+",
                "80k+",
                "100k+",
                "120k+",
                "140k+",
                "160k+",
                "180k+",
                "200k+"
              ],
              "enumTitles": [
                "💵 $40K+",
                "💵 $60K+",
                "💵 $80K+",
                "💵 $100K+",
                "💵 $120K+",
                "💵 $140K+",
                "💵 $160K+",
                "💵 $180K+",
                "💵 $200K+"
              ]
            },
            "default": []
          },
          "under10Applicants": {
            "title": "🥇 Under 10 Applicants",
            "type": "boolean",
            "description": "Only include jobs with fewer than 10 applicants — early-bird hiring.",
            "default": false
          },
          "easyApply": {
            "title": "✅ LinkedIn Easy Apply",
            "type": "boolean",
            "description": "Only include jobs that support LinkedIn's one-click Easy Apply flow.",
            "default": false
          },
          "postedLimit": {
            "title": "⏰ Posted Limit",
            "enum": [
              "",
              "1h",
              "24h",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Only return jobs posted within this time window.",
            "default": ""
          },
          "industryIds": {
            "title": "🏭 Industry IDs Filter",
            "type": "array",
            "description": "LinkedIn industry IDs to filter by (e.g. `4` Software Development, `5` Computer Networking, `6` Internet, `96` IT Services). Leave empty for all industries.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "🔃 Sort By",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Sort jobs by keyword relevance, or by most recent first.",
            "default": "date"
          },
          "geoIds": {
            "title": "🌐 LinkedIn Geo IDs",
            "type": "array",
            "description": "Pre-resolved LinkedIn geo IDs (e.g. `103644278` USA, `101174742` Canada). When provided, overrides the `Locations Filter` above.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "page": {
            "title": "📄 Start Page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Page number to start from (each page = 25 jobs). Use `1` for first page.",
            "default": 1
          },
          "requestDelaySeconds": {
            "title": "⏳ Delay Between Requests (seconds)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Base delay between job-detail requests. A small random jitter is added automatically to reduce blocking risk.",
            "default": 1
          },
          "userAgent": {
            "title": "🖥️ User Agent",
            "type": "string",
            "description": "Override the User-Agent header. Leave empty to use the default Chrome on Windows UA.",
            "default": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. By default the scraper runs **without a proxy**. If LinkedIn rejects the request, it automatically falls back to a **datacenter** proxy, and then to a **residential** proxy (with up to 3 retries). Once a fallback occurs, the new proxy is reused for the rest of the run.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}