{
  "openapi": "3.0.1",
  "info": {
    "title": "Tech Salary Scraper: AI Pay from Greenhouse, Lever & Ashby",
    "description": "Real salary benchmarks (p25/median/p75) for AI and tech roles, computed live from the pay ranges 249+ employers publish in their own job posts. By role, seniority, location or company. No login, no personal data.",
    "version": "0.1",
    "x-build-id": "UsCNFpzf4HpU04Ac0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/victormario~ai-pay-index/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-victormario-ai-pay-index",
        "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/victormario~ai-pay-index/runs": {
      "post": {
        "operationId": "runs-sync-victormario-ai-pay-index",
        "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/victormario~ai-pay-index/run-sync": {
      "post": {
        "operationId": "run-sync-victormario-ai-pay-index",
        "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": {
          "mode": {
            "title": "What to return",
            "enum": [
              "benchmarks",
              "postings"
            ],
            "type": "string",
            "description": "<b>benchmarks</b>: salary percentiles per group (one row per role × seniority × location, or per company). <b>postings</b>: every individual job posting that publishes a pay range, normalized and annualized. Cost: about $0.02 per benchmark row or $0.001 per posting row (free during launch). A postings run over the full catalog can return thousands of rows, so set Maximum results.",
            "default": "benchmarks"
          },
          "groupBy": {
            "title": "Group benchmarks by",
            "enum": [
              "role-seniority-location",
              "role-location",
              "role-seniority",
              "role",
              "company-role",
              "company-role-seniority"
            ],
            "type": "string",
            "description": "How benchmark rows are grouped. Market groupings require at least 3 employers per row. Company groupings return one employer's own pay bands.",
            "default": "role-location"
          },
          "roles": {
            "title": "Role families",
            "type": "array",
            "description": "Leave empty for all. Values: software-engineer, ml-engineer, ai-engineer, research-engineer, research-scientist, data-scientist, data-engineer, infrastructure-engineer, security-engineer, solutions-engineer, engineering-manager, product-manager, technical-program-manager, designer, data-analyst, sales, partnerships, customer-success, marketing, recruiting, finance, legal, operations, policy-comms, strategy, support, other.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Leave empty for all. Matched as text, e.g. 'San Francisco', 'New York', 'London', 'Remote'.",
            "items": {
              "type": "string"
            }
          },
          "seniority": {
            "title": "Seniority levels",
            "type": "array",
            "description": "Leave empty for all. Values: intern, junior, unspecified, senior, staff, principal, lead, manager, director, executive. 'unspecified' means the title has no level.",
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "title": "Only these companies",
            "type": "array",
            "description": "Leave empty to cover every company in the built-in list (249+ AI and tech employers, about 1–2 minutes). Naming a few companies makes the run much faster. Names are matched loosely, so \"Open AI\" finds OpenAI.",
            "items": {
              "type": "string"
            }
          },
          "customBoards": {
            "title": "Extra job boards",
            "type": "array",
            "description": "Add companies not in the built-in list. Each item: {\"name\": \"Acme\", \"ats\": \"greenhouse\" | \"lever\" | \"ashby\", \"token\": \"acme\"}. The token is the board name in the company's careers URL, e.g. boards.greenhouse.io/<b>acme</b>."
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Only include pay published in this currency, e.g. USD, GBP, EUR, CAD. Leave empty for all."
          },
          "minSampleSize": {
            "title": "Minimum postings per benchmark",
            "minimum": 3,
            "maximum": 100,
            "type": "integer",
            "description": "Benchmark rows with fewer postings are skipped. p10/p90 are only returned at 20 or more.",
            "default": 5
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Cap on rows returned and charged. Benchmarks are sorted by sample size, postings by pay. Example: 500 posting rows ≈ $0.50; 500 benchmark rows ≈ $10 (most benchmark runs return far fewer).",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}