{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xquik-api/json-schema/xquik-api-job-schema.json",
  "title": "Job",
  "description": "Public X job listing. A search returns the fields down to the salary, plus company & account. A lookup adds work type, seniority, function, team & descriptions. A field X leaves empty is left out.\n",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xquik-api-jobs-api-openapi.yml#/components/schemas/Job",
  "type": "object",
  "required": [
    "id",
    "url"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Job ID."
    },
    "title": {
      "type": "string",
      "description": "Job title."
    },
    "url": {
      "type": "string",
      "description": "The job page on X."
    },
    "applyUrl": {
      "type": "string",
      "description": "Where applicants apply, off X."
    },
    "location": {
      "type": "string",
      "description": "Location as the employer wrote it."
    },
    "locationType": {
      "type": "string",
      "description": "Where the work happens (onsite, remote or hybrid)."
    },
    "employmentType": {
      "type": "string",
      "description": "Contract type (full_time, full_time_contract, part_time or contract_to_hire).\n"
    },
    "seniorityLevel": {
      "type": "string",
      "description": "Seniority (intern, entry_level, junior, mid_level, senior, lead, manager or executive).\n"
    },
    "jobFunction": {
      "type": "string",
      "description": "Job function, such as software_engineering."
    },
    "team": {
      "type": "string",
      "description": "Team inside the company."
    },
    "postedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the employer posted the job."
    },
    "formattedSalary": {
      "type": "string",
      "description": "Salary as X shows it."
    },
    "salaryMin": {
      "type": "number",
      "description": "Lowest salary, in salaryCurrencyCode per salaryInterval."
    },
    "salaryMax": {
      "type": "number",
      "description": "Highest salary, in salaryCurrencyCode per salaryInterval."
    },
    "salaryCurrencyCode": {
      "type": "string",
      "description": "ISO 4217 currency code of the salary."
    },
    "salaryInterval": {
      "type": "string",
      "description": "Pay period of the salary (annually or hourly)."
    },
    "featured": {
      "type": "boolean",
      "description": "Whether X features the job."
    },
    "shortDescription": {
      "type": "string",
      "description": "Short summary of the job, as plain text."
    },
    "description": {
      "type": "string",
      "description": "Full description as plain text, 1 line per paragraph."
    },
    "descriptionMarkdown": {
      "type": "string",
      "description": "Full description as Markdown, with headings, lists, links, bold & italics.\n"
    },
    "company": {
      "$ref": "#/$defs/JobCompany"
    },
    "account": {
      "$ref": "#/$defs/JobAccount"
    }
  },
  "$defs": {
    "JobAccount": {
      "description": "The X account that posted a job. A job has none when X imported it from a job board or no longer shows the account.\n",
      "type": "object",
      "required": [
        "id",
        "verified"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "X user ID of the account."
        },
        "username": {
          "type": "string",
          "description": "Handle without @."
        },
        "name": {
          "type": "string",
          "description": "Display name of the account that posted the job."
        },
        "verified": {
          "type": "boolean",
          "description": "Whether X shows a verification badge on the account."
        },
        "verifiedType": {
          "type": "string",
          "description": "Badge type, such as Business or Government."
        },
        "description": {
          "type": "string",
          "description": "Bio of the account. A job lookup returns it."
        },
        "profilePicture": {
          "type": "string",
          "description": "Avatar URL of the account that posted the job."
        },
        "profilePictureOriginal": {
          "type": "string",
          "description": "The job account's avatar at full size."
        },
        "profileImageShape": {
          "type": "string",
          "description": "Avatar shape, such as Circle or Square."
        }
      }
    },
    "JobCompany": {
      "description": "The company profile of a job X imported from a job board.",
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "X company profile ID."
        },
        "name": {
          "type": "string",
          "description": "Company name."
        },
        "logoUrl": {
          "type": "string",
          "description": "Company logo URL."
        }
      }
    }
  }
}