{
  "openapi": "3.0.1",
  "info": {
    "title": "Tes Jobs Scraper",
    "description": "Scrape teaching, school leadership and education-support job vacancies from Tes.com (Times Educational Supplement) - search by keyword, subject, position, workplace, contract type/term, or fetch exact vacancies by ID/URL.",
    "version": "1.0",
    "x-build-id": "v1FGRo7tJd2DABt0l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~tes-jobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-tes-jobs-scraper",
        "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/crawlerbros~tes-jobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-tes-jobs-scraper",
        "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/crawlerbros~tes-jobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-tes-jobs-scraper",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byVacancyIds",
              "byUrls"
            ],
            "type": "string",
            "description": "search = keyword/filter job search (default). byVacancyIds = look up exact vacancies by numeric ID. byUrls = fetch exact vacancy pages by URL.",
            "default": "search"
          },
          "keywords": {
            "title": "Keywords (mode=search)",
            "type": "string",
            "description": "Free-text search query — job title, subject or skill (e.g. \"maths teacher\", \"SEN\", \"headteacher\"). Leave empty to browse all current vacancies."
          },
          "positions": {
            "title": "Positions (mode=search)",
            "type": "array",
            "description": "Filter by job position/role. Leave empty for all positions.",
            "items": {
              "type": "string",
              "enum": [
                "Teacher",
                "Teaching Assistant",
                "Tutor",
                "Lecturer",
                "Head of Department",
                "Early Years Practitioner",
                "Coach",
                "Manager",
                "Special educational needs and disabilities coordinator (SENDCo)",
                "Instructor",
                "Subject Leader",
                "Trainer/Assessor/Verifier",
                "Graduate Teaching Programme",
                "Head of Year",
                "Assistant Head of Department",
                "Head Coach",
                "Student Teacher",
                "Advanced Skills Teacher",
                "Assistant Coach",
                "Curriculum Coordinator",
                "Athletics/Sports Director",
                "Deputy Head of Year",
                "Long Term Substitute",
                "Principal Teacher",
                "Research/Fellowship Post",
                "DP Coordinator",
                "Dean of Students",
                "Intern",
                "Native Language Coordinator",
                "PYP Coordinator",
                "Second in Charge",
                "Other Support Positions",
                "Learning Support",
                "Administrator",
                "Other Pastoral/Welfare Positions",
                "Technician",
                "Other Office and Administrative Positions",
                "Other Facilities Positions",
                "Cover Supervisor",
                "Caretaker/Groundsperson",
                "Cleaner",
                "Financial Officer",
                "Human Resources",
                "Secretary/Receptionist",
                "Speech and Language Therapist",
                "Canteen Supervisor/Tuckshop Convenor",
                "Occupational Therapist",
                "Safeguarding Officer",
                "Careers Advisor",
                "Specialist",
                "Personal Assistant",
                "Driver",
                "Facilities Manager",
                "Premises Manager/Housekeeper",
                "Admissions Officer",
                "Exam Invigilator",
                "Examiner",
                "Exams Officer",
                "Librarian",
                "Learning Manager/Mentor",
                "School Counsellor",
                "School Nurse",
                "Admissions Manager",
                "Behaviour Manager/Specialist",
                "Data Manager",
                "Support Manager",
                "Accountant",
                "Business Manager",
                "Midday supervisor",
                "Office Manager",
                "Human Resources Manager",
                "Advisor/Consultant",
                "Educational/School Psychologist",
                "School Support Officer",
                "Human Resources Officer",
                "Housemaster/Housemistress/Boarding Supervisor",
                "College Counsellor",
                "Communications Officer",
                "Head of Pastoral Care",
                "Clerk to Governors",
                "Data Services/Timetabling",
                "Chaplain/Priest",
                "Security Manager",
                "Bursar",
                "Construction Project Manager",
                "Network Manager",
                "Healthcare Worker",
                "Network Administrator",
                "Technology Coordinator",
                "Deputy Headteacher",
                "Headteacher",
                "Marketing Manager",
                "Principal",
                "IT Manager",
                "Curriculum Lead",
                "Director of Marketing/Communications",
                "Director of Development",
                "Leadership/Excellence Teacher",
                "Vice Principal",
                "Director of Studies",
                "Director of Admissions",
                "Assistant Director",
                "Chief Executive Officer (CEO)",
                "Chief Operations Officer (COO)",
                "Executive Director",
                "Associate Dean of Academics/Studies",
                "Director of Activities",
                "Director of Alumni Relations",
                "Director of IT",
                "Director of Student Assessment",
                "Director of Student Support Services"
              ]
            },
            "default": []
          },
          "subjects": {
            "title": "Subjects (mode=search)",
            "type": "array",
            "description": "Filter by teaching subject. Leave empty for all subjects.",
            "items": {
              "type": "string",
              "enum": [
                "Generalist",
                "English",
                "Early learning/Early childhood/Childcare",
                "Mathematics",
                "Science",
                "Design and Technology",
                "Modern Languages",
                "Physical Education",
                "Learning Support",
                "Music",
                "Physics",
                "Art and Design",
                "Business Studies",
                "Biology",
                "Chemistry",
                "English as a Foreign Language",
                "Computer Science",
                "Business Studies and Economics",
                "Performing Arts",
                "Food Technology/Hospitality and Catering",
                "History",
                "Humanities",
                "Psychology",
                "Drama",
                "Social Sciences",
                "Geography",
                "Vocational Studies",
                "Religious Education",
                "Politics",
                "Education",
                "Primary Education",
                "Sociology",
                "Agriculture/Rural Science",
                "Other Subjects",
                "Careers",
                "Law",
                "Media Studies",
                "Philosophy"
              ]
            },
            "default": []
          },
          "workplaces": {
            "title": "Workplace / school type (mode=search)",
            "type": "array",
            "description": "Filter by workplace/school phase type. Leave empty for all workplace types.",
            "items": {
              "type": "string",
              "enum": [
                "Secondary",
                "Primary",
                "Special Education",
                "Independent Senior",
                "Further Education",
                "Middle",
                "Independent Preparatory",
                "Nursery",
                "Independent Pre-Prep",
                "Higher Education",
                "Independent Secondary",
                "Early Years",
                "Alternative Provision",
                "Other Organisation",
                "Prep to Year 12/K-12/All through",
                "Charity",
                "Library",
                "Local Authority",
                "Educational Body",
                "Outdoor Education",
                "Children's Services",
                "Catholic School",
                "Youth and Community Services",
                "Adult Education",
                "Pupil Referral Unit (PRU)",
                "Summer School"
              ]
            },
            "default": []
          },
          "contractTypes": {
            "title": "Contract type (mode=search)",
            "type": "array",
            "description": "Filter by full-time / part-time. Leave empty for both.",
            "items": {
              "type": "string",
              "enum": [
                "Full Time",
                "Part Time"
              ]
            },
            "default": []
          },
          "contractTerms": {
            "title": "Contract term (mode=search)",
            "type": "array",
            "description": "Filter by contract term. Leave empty for all terms.",
            "items": {
              "type": "string",
              "enum": [
                "Permanent",
                "Fixed Term",
                "Casual",
                "Maternity Cover",
                "Temporary",
                "Supply"
              ]
            },
            "default": []
          },
          "sortBy": {
            "title": "Sort by (mode=search)",
            "enum": [
              "relevance",
              "date",
              "distance"
            ],
            "type": "string",
            "description": "Order of search results.",
            "default": "relevance"
          },
          "locationName": {
            "title": "Location name (mode=search, optional)",
            "type": "string",
            "description": "Place name to search near (used together with Location latitude/longitude). Purely descriptive — does not itself geocode. Leave empty to search all UK & international vacancies with no location radius."
          },
          "locationLat": {
            "title": "Location latitude (mode=search, optional)",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Latitude of the search-radius centre point. Must be set together with Location longitude to enable radius filtering."
          },
          "locationLon": {
            "title": "Location longitude (mode=search, optional)",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude of the search-radius centre point. Must be set together with Location latitude to enable radius filtering."
          },
          "locationDistance": {
            "title": "Search radius (mode=search, optional)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Radius around the given latitude/longitude to search within. Only applied when Location latitude/longitude are set.",
            "default": 30
          },
          "distanceUnit": {
            "title": "Distance unit (mode=search, optional)",
            "enum": [
              "mi",
              "km"
            ],
            "type": "string",
            "description": "Unit for the search radius.",
            "default": "mi"
          },
          "vacancyIds": {
            "title": "Vacancy IDs (mode=byVacancyIds)",
            "type": "array",
            "description": "Exact numeric Tes vacancy IDs to fetch (found in the job URL, e.g. 2338332).",
            "default": []
          },
          "startUrls": {
            "title": "Vacancy URLs (mode=byUrls)",
            "type": "array",
            "description": "Exact Tes job vacancy page URLs to fetch (e.g. https://www.tes.com/jobs/vacancy/maths-teacher-north-tyneside-2338332).",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "fetchFullDescription": {
            "title": "Fetch full job description",
            "type": "boolean",
            "description": "When enabled (mode=search), fetches each vacancy's full detail page (full HTML description, employer contact details, exact position/subject/workplace tags, geo-coordinates) in addition to the search-result summary. Adds one extra request per job. Always enabled for byVacancyIds/byUrls modes.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of job records to return.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}