{
  "openapi": "3.0.1",
  "info": {
    "title": "Cheapest Levels.fyi Jobs Scraper | $0.25/1K Searches",
    "description": "Levels.fyi jobs by company, location, level and compensation filters. $0.25 per 1,000 pages of up to 20 companies with job previews. Failed requests are free.",
    "version": "0.1",
    "x-build-id": "UAYFZpBNNXgt8dawR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/litescrape~levels-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-litescrape-levels-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/litescrape~levels-search/runs": {
      "post": {
        "operationId": "runs-sync-litescrape-levels-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/litescrape~levels-search/run-sync": {
      "post": {
        "operationId": "run-sync-litescrape-levels-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": {
          "q": {
            "title": "Q",
            "minLength": 1,
            "maxLength": 512,
            "type": "string",
            "description": "Job title, keywords or company; omit to browse."
          },
          "companies": {
            "title": "Companies",
            "type": "string",
            "description": "Company slugs as a JSON array; mutually exclusive with company. A single company advances jobs instead of company groups."
          },
          "company": {
            "title": "Company",
            "pattern": "^[a-z0-9][a-z0-9-]{0,127}$",
            "type": "string",
            "description": "Company slug, such as google."
          },
          "company_sizes": {
            "title": "Company sizes",
            "type": "string",
            "description": "Company sizes as a JSON array: seed 1–50, early 51–200, mid 201–1,000, large 1,001–10,000, enterprise 10,001+ employees."
          },
          "company_types": {
            "title": "Company types",
            "type": "string",
            "description": "Company types as a JSON array."
          },
          "company_valuations": {
            "title": "Company valuations",
            "type": "string",
            "description": "Company valuation ranges in USD as a JSON array of [minimum, maximum] pairs."
          },
          "employment_types": {
            "title": "Employment types",
            "type": "string",
            "description": "Employment types as a JSON array."
          },
          "job_families": {
            "title": "Job families",
            "type": "string",
            "description": "Job-family slugs as a JSON array, such as [\"software-engineer\"]."
          },
          "jobs_per_company": {
            "title": "Jobs per company",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Maximum matching jobs included for each company."
          },
          "levels": {
            "title": "Levels",
            "type": "string",
            "description": "Standard seniority levels as a JSON array."
          },
          "limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Companies per page; jobs are grouped by company."
          },
          "location": {
            "title": "Location",
            "pattern": "^[a-z0-9][a-z0-9-]{0,127}$",
            "type": "string",
            "description": "Levels.fyi location slug, such as united-states; not a free-text city name."
          },
          "locations": {
            "title": "Locations",
            "type": "string",
            "description": "City, state or country slugs as a JSON array, such as [\"united-states\",\"canada\"]. Mutually exclusive with location."
          },
          "min_base_compensation": {
            "title": "Min base compensation",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum annual base compensation in USD."
          },
          "min_total_compensation": {
            "title": "Min total compensation",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum median annual total compensation in USD; may include Levels.fyi estimates."
          },
          "page": {
            "title": "Page",
            "minimum": 1,
            "type": "integer",
            "description": "One-based results page. Use next_page from the response to continue."
          },
          "perk_ids": {
            "title": "Perk ids",
            "type": "string",
            "description": "Benefit IDs as a JSON array, for example 58 remote work, 4 retirement plan, 35 paid time off, 22 health insurance."
          },
          "posted_within": {
            "title": "Posted within",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum posting age in posted_within_unit units."
          },
          "posted_within_unit": {
            "title": "Posted within unit",
            "enum": [
              "days",
              "weeks",
              "months"
            ],
            "type": "string",
            "description": "Unit for posted_within."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "date_published",
              "total_compensation"
            ],
            "type": "string",
            "description": "Result ordering."
          },
          "timeout": {
            "title": "Timeout",
            "maximum": 90,
            "type": "number",
            "description": "Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget."
          },
          "work_arrangements": {
            "title": "Work arrangements",
            "type": "string",
            "description": "Work arrangements as a JSON array."
          },
          "requests": {
            "title": "Batch requests",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "Optional list of parameter objects. Top-level API fields are shared defaults; each object overrides them. Maximum 1,000 inputs.",
            "items": {
              "type": "object"
            }
          },
          "maxRequests": {
            "title": "Maximum paid requests",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Run-wide cap on successful API requests, including continuation pages. 1,000 requests cost $0.25.",
            "default": 100
          },
          "maxResults": {
            "title": "Maximum dataset rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap exported rows. An in-flight response can still be saved and billed in full. Complete JSON responses remain in storage.",
            "default": 1000
          },
          "maxPagesPerInput": {
            "title": "Maximum pages per input",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "1 returns the first page only. Additional pages follow source continuation links when available; every successful page is a paid request.",
            "default": 1
          },
          "maxConcurrency": {
            "title": "Concurrent requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Upper concurrency bound. The service may apply a lower limit for capacity or trial quotas.",
            "default": 2
          },
          "includeArtifacts": {
            "title": "Include source artifacts",
            "type": "boolean",
            "description": "Copy available raw source artifacts to this run. Availability varies by endpoint; unavailable artifacts do not invalidate a saved JSON response.",
            "default": false
          },
          "datasetOutput": {
            "title": "Export dataset",
            "type": "boolean",
            "description": "Enable dataset rows and recoverable per-request storage. Leave off for the cheapest JSON output. Pagination and artifacts also enable this workflow.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}