{
  "openapi": "3.0.1",
  "info": {
    "title": "Levels.fyi Scraper",
    "description": "Levels.fyi scraper & API: export tech compensation by company, level and location — base salary, stock, bonus, total comp, title, years of experience and date. Salary benchmarking, comp intelligence and talent-market data — fast, no login.",
    "version": "1.0",
    "x-build-id": "M9YjJLAP3oAeAIFd4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~levels-fyi-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-levels-fyi-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/haketa~levels-fyi-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-levels-fyi-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/haketa~levels-fyi-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-levels-fyi-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": {
          "companies": {
            "title": "Companies",
            "type": "array",
            "description": "Pick one or more companies to pull compensation data for. Leave empty to get a diverse sample of top tech employers.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "meta",
                "amazon",
                "apple",
                "microsoft",
                "netflix",
                "nvidia",
                "uber",
                "airbnb",
                "stripe",
                "openai",
                "databricks",
                "salesforce",
                "oracle",
                "adobe",
                "linkedin",
                "snowflake",
                "tesla",
                "coinbase"
              ],
              "enumTitles": [
                "Google",
                "Meta (Facebook)",
                "Amazon",
                "Apple",
                "Microsoft",
                "Netflix",
                "NVIDIA",
                "Uber",
                "Airbnb",
                "Stripe",
                "OpenAI",
                "Databricks",
                "Salesforce",
                "Oracle",
                "Adobe",
                "LinkedIn",
                "Snowflake",
                "Tesla",
                "Coinbase"
              ]
            }
          },
          "jobFamilies": {
            "title": "Roles / Job Families",
            "type": "array",
            "description": "Pick which roles to include for each selected company. Leave empty for a mix of the most popular tech roles.",
            "items": {
              "type": "string",
              "enum": [
                "software-engineer",
                "product-manager",
                "data-scientist",
                "product-designer",
                "engineering-manager",
                "data-engineer",
                "solution-architect",
                "hardware-engineer",
                "technical-program-manager",
                "information-technologist",
                "business-analyst",
                "security-analyst",
                "sales",
                "marketing",
                "recruiter",
                "human-resources",
                "management-consultant",
                "mechanical-engineer",
                "accountant",
                "chief-of-staff"
              ],
              "enumTitles": [
                "Software Engineer",
                "Product Manager",
                "Data Scientist",
                "Product Designer",
                "Engineering Manager",
                "Data Engineer",
                "Solutions Architect",
                "Hardware Engineer",
                "Technical Program Manager",
                "IT / Information Technologist",
                "Business Analyst",
                "Security Analyst",
                "Sales",
                "Marketing",
                "Recruiter",
                "Human Resources",
                "Management Consultant",
                "Mechanical Engineer",
                "Accountant",
                "Chief of Staff"
              ]
            }
          },
          "location": {
            "title": "Location Filter (optional)",
            "enum": [
              "",
              "san francisco",
              "new york",
              "seattle",
              "los angeles",
              "austin",
              "boston",
              "chicago",
              "san diego",
              "denver",
              "atlanta",
              "washington",
              "toronto",
              "vancouver",
              "london",
              "dublin",
              "berlin",
              "amsterdam",
              "bangalore",
              "singapore",
              "sydney",
              "tel aviv",
              "remote"
            ],
            "type": "string",
            "description": "Optionally keep only records from a specific metro area. Leave as 'All locations' to include everything.",
            "default": ""
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum total compensation records to collect. Set 0 for unlimited.",
            "default": 0
          },
          "customCompanies": {
            "title": "Other Companies (advanced)",
            "type": "array",
            "description": "Optional. Add extra companies not in the dropdown using their Levels.fyi slug, e.g. 'palantir', 'doordash'. Most users can leave this empty.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Start URLs (advanced)",
            "type": "array",
            "description": "Optional. Paste full Levels.fyi salary page URLs to scrape them directly, e.g. 'https://www.levels.fyi/companies/google/salaries/software-engineer'. When provided, the dropdown selections above are ignored.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings used to reach Levels.fyi reliably. Residential proxies are recommended."
          },
          "requestDelay": {
            "title": "Request Delay (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Delay between page loads in milliseconds. Higher values are gentler on the source site.",
            "default": 2000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}