{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/startup-jobs/json-schema/startup-jobs-jobs-page-schema.json",
  "title": "JobsPage",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/startup-jobs-openapi.json#/components/schemas/JobsPage",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Job"
      }
    },
    "total_count": {
      "type": "integer",
      "description": "Total number of jobs matching the query."
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Pass as `starting_after` to fetch the next page."
    },
    "notices": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Only present when the query hit a free-tier limit (e.g. `posted_after` beyond the 14-day window)."
    }
  },
  "$defs": {
    "Company": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The company profile on startup.jobs."
        },
        "website_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "logo_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "active_jobs_count": {
          "type": "integer"
        }
      }
    },
    "Job": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The job page on startup.jobs. Always link to this URL when displaying the job; applications go through this page.\n"
        },
        "published_at": {
          "type": "string",
          "format": "date-time"
        },
        "employment_type": {
          "type": "string",
          "enum": [
            "full-time",
            "part-time",
            "internship",
            "contractor"
          ]
        },
        "workplace_type": {
          "type": "string",
          "enum": [
            "remote",
            "hybrid",
            "on-site"
          ]
        },
        "location": {
          "type": "object",
          "properties": {
            "city": {
              "type": [
                "string",
                "null"
              ]
            },
            "state": {
              "type": [
                "string",
                "null"
              ]
            },
            "country": {
              "type": [
                "string",
                "null"
              ]
            },
            "country_code": {
              "type": [
                "string",
                "null"
              ],
              "description": "ISO 3166-1 alpha-2."
            }
          }
        },
        "roles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Role"
          }
        },
        "salary": {
          "type": [
            "string",
            "null"
          ],
          "description": "Human-readable salary range as displayed on startup.jobs, e.g. \"USD 100,000 – 150,000 per year\"."
        },
        "salary_data": {
          "type": [
            "object",
            "null"
          ],
          "description": "Structured salary range. Only present for accounts with full access.",
          "properties": {
            "min": {
              "type": [
                "integer",
                "null"
              ]
            },
            "max": {
              "type": [
                "integer",
                "null"
              ]
            },
            "currency": {
              "type": [
                "string",
                "null"
              ],
              "description": "ISO 4217 currency code."
            },
            "interval": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "hour",
                "day",
                "week",
                "biweekly",
                "month",
                "year",
                null
              ]
            },
            "min_usd": {
              "type": [
                "integer",
                "null"
              ],
              "description": "Converted to USD at a recent exchange rate."
            },
            "max_usd": {
              "type": [
                "integer",
                "null"
              ]
            }
          }
        },
        "company": {
          "$ref": "#/$defs/Company"
        },
        "description_html": {
          "type": "string",
          "description": "Sanitized HTML. Ends with an attribution paragraph linking back to startup.jobs, which must be preserved when displayed."
        }
      }
    },
    "Role": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "parent_slug": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}