{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/startup-jobs/json-schema/startup-jobs-job-schema.json",
  "title": "Job",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/startup-jobs-openapi.json#/components/schemas/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."
    }
  },
  "$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"
        }
      }
    },
    "Role": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "parent_slug": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}