{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/remoterocketship-com/json-schema/remoterocketship-com-search-request-schema.json",
  "title": "SearchRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/remoterocketship-com-openapi.json#/components/schemas/SearchRequest",
  "type": "object",
  "required": [
    "filters"
  ],
  "properties": {
    "filters": {
      "type": "object",
      "description": "Optional filters. Omitted fields use the defaults. Unrecognized values are ignored or normalized.",
      "properties": {
        "page": {
          "type": "number",
          "exclusiveMinimum": 0,
          "default": 1,
          "description": "Page number, starting at 1."
        },
        "itemsPerPage": {
          "type": "number",
          "minimum": 1,
          "maximum": 50,
          "default": 20,
          "description": "Results requested per page, clamped to 1 through 50 and the remaining job quota."
        },
        "sortBy": {
          "type": "string",
          "enum": [
            "DateAdded",
            "Salary"
          ],
          "default": "DateAdded",
          "description": "DateAdded sorts newest first; Salary sorts highest salary first."
        },
        "language": {
          "type": "string",
          "enum": [
            "en",
            "br",
            "de",
            "fr",
            "ca",
            "gb",
            "us"
          ],
          "default": "en",
          "description": "Search language context. Defaults to English. Job-title aliases are shared across languages."
        },
        "jobTitleFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Job titles such as Software Engineer. Recognized aliases normalize to canonical titles regardless of casing or language. Unresolved ambiguous aliases remain custom search text."
        },
        "locationFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Eligible countries, regions, or US state names. US and UK synonyms are accepted."
        },
        "locationCityFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "City names to include."
        },
        "seniorityFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Allowed levels: entry-level, junior, mid, senior, expert."
        },
        "employmentTypeFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Allowed values: full-time, part-time, contract, internship."
        },
        "companySizeFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Employee ranges: 1,10; 11,50; 51,200; 201,500; 501,1000; 1001,5000; 5001,10000; 10001,."
        },
        "keywordFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required keywords. Terms are combined with AND."
        },
        "excludedKeywordFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Keywords to exclude."
        },
        "techStackFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Technologies used in the role, such as React or TypeScript."
        },
        "requiredLanguagesFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required spoken-language codes to include, such as en or fr."
        },
        "excludeRequiredLanguagesFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required spoken-language codes to exclude."
        },
        "industriesFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Company industries to include."
        },
        "excludeIndustriesFilters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Company industries to exclude."
        },
        "visaFilter": {
          "type": [
            "string",
            "null"
          ],
          "description": "Visa sponsorship filter: h1b or uk-skilled-worker."
        },
        "degreeRequiredFilter": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "true",
            "false",
            null
          ],
          "description": "String true or false for whether a degree is required."
        },
        "isOnLinkedInFilter": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "true",
            "false",
            null
          ],
          "description": "String true or false for whether the role is listed on LinkedIn."
        },
        "hideGhostJobsFilter": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "true",
            "only",
            null
          ],
          "description": "true hides ghost jobs; only selects them. Null disables this filter."
        },
        "companyIdFilter": {
          "type": [
            "string",
            "null"
          ],
          "description": "Company identifier to restrict results to."
        },
        "minSalaryFilter": {
          "type": [
            "number",
            "null"
          ],
          "description": "Minimum annual salary in USD."
        },
        "showRemoteJobs": {
          "type": "boolean",
          "default": true,
          "description": "Include remote roles."
        },
        "showHybridJobs": {
          "type": "boolean",
          "default": false,
          "description": "Include hybrid roles."
        },
        "showOnsiteJobs": {
          "type": "boolean",
          "default": false,
          "description": "Include onsite roles."
        },
        "showJobsWithoutSalaryWithMinSalaryFilter": {
          "type": "boolean",
          "default": true,
          "description": "Include roles with undisclosed pay when a salary minimum is set."
        }
      }
    },
    "includeJobDescription": {
      "type": "boolean",
      "default": false,
      "description": "Include the full role description and requirements."
    }
  }
}