{
  "openapi": "3.0.1",
  "info": {
    "title": "Levels.fyi Salary Scraper",
    "description": "Scrapes Levels.fyi salary pages and organizes public pay data into records for each job level. Results include company and job-family details, location, total compensation, base, stock, bonus, currency, and percentile ranges. Use company names, slugs, or supported Levels.fyi URLs as inputs.",
    "version": "0.1",
    "x-build-id": "xdidpEIPkJDgf3sUQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axiomworks~levels-fyi-salary-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axiomworks-levels-fyi-salary-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/axiomworks~levels-fyi-salary-scraper/runs": {
      "post": {
        "operationId": "runs-sync-axiomworks-levels-fyi-salary-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/axiomworks~levels-fyi-salary-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-axiomworks-levels-fyi-salary-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": "Company names, slugs or URLs (e.g. google)",
            "type": "array",
            "description": "Company names, slugs or Levels.fyi company URLs, e.g. [\"google\", \"Meta\"]. Supply companies or startUrls; both are combined. Names are slugified; for a 404, paste the site URL. Salary URLs with a job family use that family; company-only URLs expand all families. Plain names use jobFamilies and locations.",
            "items": {
              "type": "string"
            }
          },
          "jobFamilies": {
            "title": "Job family names or slugs (e.g. software-engineer)",
            "type": "array",
            "description": "Job family names or slugs for plain company names, e.g. [\"software-engineer\", \"Product Manager\"]. Default [\"software-engineer\"]. Use [\"all\"] to expand each company overview. Explicit startUrls and company URLs use the family in the URL; company-only URLs expand all families.",
            "default": [
              "software-engineer"
            ],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Location names or slugs (e.g. united-kingdom)",
            "type": "array",
            "description": "Location names or slugs for plain company targets, e.g. [\"united-kingdom\", \"new-york-city-area\"]. Default [] uses United States. Each company x job family x location is a page. Explicit salary URLs use their own location; company-only URLs expand families across these locations.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "levels": {
            "title": "Level names or slugs (e.g. L5)",
            "type": "array",
            "description": "Level names or slugs to keep on every target, e.g. [\"L5\", \"e6\"]. Matches primary level names or slugs, case-insensitively; not every alternate title. Default [] keeps all levels. A level URL additionally restricts to its URL level. If no levels match, returns zero rows successfully; remove this filter or check the level slug.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Levels.fyi company or salary URLs (e.g. Google)",
            "type": "array",
            "description": "Levels.fyi company or salary URLs, e.g. [{\"url\":\"https://www.levels.fyi/companies/google/salaries/software-engineer\"}]. Supply this or companies; both are combined. Company-only URLs expand all families, /levels/{slug} keeps one level, /locations/{slug} selects a location. Query/hash and .md are stripped. Default [].",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Shared maximum level rows (e.g. 10)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum level rows across all companies, URLs, job families and locations combined: 1-10000, default 50, e.g. 10. Duplicate IDs are saved once. Stops at this shared cap; fewer rows are returned when data is unavailable or filters exclude levels. Only saved rows are charged.",
            "default": 50
          },
          "includeRecentSubmissions": {
            "title": "Include anonymous submission arrays (e.g. true)",
            "type": "boolean",
            "description": "Set true to add available anonymous recentSubmissions to each level row, e.g. true; default false returns null. Submission amounts are USD, even when aggregate rows use another currency. Unavailable or source-redacted submission values remain null. Does not change the one-row-per-level result count.",
            "default": false
          },
          "minTotalCompensationUsd": {
            "title": "Minimum annual compensation in USD (e.g. 200000)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum aggregate annual totalCompensationUsd to keep a level, e.g. 200000. Applies across all targets alongside levels. Default 0 (or omitted) disables this filter. Compared in USD regardless of the location currency. If every level is below the threshold, returns zero rows successfully; lower or remove the threshold.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Request proxy options (e.g. useApifyProxy false)",
            "type": "object",
            "description": "Proxy options, e.g. {\"useApifyProxy\":false} (default: direct requests). Enable {\"useApifyProxy\":true} to use Apify Proxy for requests and fresh-session retries on blocks. Persistent blocks return no rows for that target and the run continues; retry later or enable a proxy. No login or CAPTCHA solving.",
            "default": {
              "useApifyProxy": false
            }
          },
          "minSubmissionCount": {
            "title": "Minimum reports per level",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum submissionCount required for each level row, e.g. 20. Default 0 disables this filter. Uses the source level count, not submissionsLast12Months or the job-family percentile sample size. Combined with levels and minTotalCompensationUsd before maxItems. Missing counts are excluded when enabled; no matches returns zero rows successfully.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}