{
  "openapi": "3.0.1",
  "info": {
    "title": "ATS Job Board API｜Greenhouse Lever Ashby→MD",
    "description": "Unified Greenhouse / Lever / Ashby public job-board API → structured jobs + LLM-ready Markdown descriptions. No login, no proxy. Failures not charged.\n统一拉取 Greenhouse / Lever / Ashby 公开招聘板岗位 → 结构化字段 + Markdown 描述。无登录、无代理。失败不计费。",
    "version": "0.1",
    "x-build-id": "pBfXEFhZsIYbOpEuc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahuang~ats-jobs/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahuang-ats-jobs",
        "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/ahuang~ats-jobs/runs": {
      "post": {
        "operationId": "runs-sync-ahuang-ats-jobs",
        "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/ahuang~ats-jobs/run-sync": {
      "post": {
        "operationId": "run-sync-ahuang-ats-jobs",
        "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": {
          "boards": {
            "title": "Boards｜招聘板列表",
            "type": "array",
            "description": "List of boards. Each item: {\"ats\":\"greenhouse|lever|ashby\", \"board\":\"slug\", \"url\":\"https://...\", \"region\":\"us|eu\"}. ats optional if url is parseable (boards.greenhouse.io / jobs.lever.co / jobs.ashbyhq.com). Empty + seedBoards=true → bundled trial list.\n每项可含 ats / board / url / region。url 可解析时可省略 ats。boards 为空且 seedBoards=true 时用内置小板。"
          },
          "includeDescription": {
            "title": "Include Markdown description｜含 Markdown 描述",
            "type": "boolean",
            "description": "true → billingEvent job_with_markdown ($0.002 placeholder). false → metadata only, job_metadata ($0.001). 默认 true 出 Markdown；false 仅元数据、半价事件。",
            "default": true
          },
          "newSince": {
            "title": "New since (ISO 8601)｜增量起点",
            "type": "string",
            "description": "Keep jobs whose publishedAt or updatedAt ≥ this time. No surcharge. 只保留该时间之后发布/更新的岗位；不加价。"
          },
          "maxJobs": {
            "title": "Max jobs per run｜本 run 最多岗位",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap across all boards (default 2000, hard max 10000). 整次 run 上限。",
            "default": 2000
          },
          "maxBoards": {
            "title": "Max boards｜最多招聘板数",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cap on boards[] length (default 20). Extra boards → one free notice row. 超出写一条不计费 notice。",
            "default": 20
          },
          "seedBoards": {
            "title": "Use seed boards if empty｜空列表时用试用板",
            "type": "boolean",
            "description": "If boards empty and true, fetch discord (GH) + spotify (Lever) + linear (Ashby). Trial only. boards 为空时用内置小板试用。",
            "default": false
          },
          "ats": {
            "title": "Default ATS｜默认 ATS",
            "enum": [
              "auto",
              "greenhouse",
              "lever",
              "ashby"
            ],
            "type": "string",
            "description": "Used when a board entry has neither ats nor a parseable url. 条目未指定 ats/url 时使用。",
            "default": "auto"
          },
          "leverRegion": {
            "title": "Default Lever region｜默认 Lever 区域",
            "enum": [
              "us",
              "eu"
            ],
            "type": "string",
            "description": "Fallback when boards[].region omitted. 条目未写 region 时的默认。",
            "default": "us"
          },
          "includeCompensation": {
            "title": "Include compensation (Ashby)｜含薪资（Ashby）",
            "type": "boolean",
            "description": "Pass includeCompensation=true to Ashby. 向 Ashby 请求薪资字段。",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}