# Tes Jobs Scraper (`crawlerbros/tes-jobs-scraper`) Actor

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.

- **URL**: https://apify.com/crawlerbros/tes-jobs-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Jobs, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Tes Jobs Scraper

Scrape teaching, school-leadership, and education-support job vacancies from **Tes.com** (Times Educational Supplement) — the UK's largest education jobs board, also listing thousands of international school vacancies worldwide. Search by keyword, subject, position, workplace type, contract type/term, or fetch exact vacancies by ID or URL. Every job includes the full description, employer contact details, and salary information.

### What this actor does

- **Three modes:** `search` (keyword + filter search), `byVacancyIds` (exact lookup by numeric vacancy ID), `byUrls` (exact lookup by job page URL)
- **Rich filters:** position/role, subject, school/workplace type, contract type (full/part time), contract term (permanent/fixed term/temporary/supply/casual/maternity cover), sort order (relevance/date/distance), and optional location-radius search
- **Full job detail:** complete HTML-stripped job description, employer profile (address, phone, website, logo), application contact (email/phone/direct-apply URL), exact position/subject/workplace taxonomy tags, and geo-coordinates
- **International coverage:** the same search covers UK state/independent schools plus international schools across the Middle East, Asia, and Europe
- **Empty fields are omitted** — every record only contains data that was actually found

### Output per job

| Field | Description |
|---|---|
| `vacancyId` | Numeric Tes vacancy ID |
| `title` | Job title |
| `employerName`, `employerId` | Hiring school/organisation |
| `displayLocation` | Human-readable location |
| `position` | Primary normalized position/role (e.g. "Teacher", "Headteacher") |
| `positions[]` | All position/role tags on the job |
| `subjects[]` | Subject tags (e.g. "Mathematics") |
| `workplaces[]` | School/workplace type tags (e.g. "Secondary", "Special Education" — a job can carry more than one, e.g. an all-through school) |
| `contractTypes[]`, `contractTerms[]` | Full/Part Time; Permanent/Fixed Term/etc. |
| `displaySalary`, `salaryRange` | Salary as advertised |
| `shortDescription`, `description` | Plain-text job description (short teaser + full detail) |
| `advertStartDate`, `advertEndDate`, `applicationCloseDate` | Key dates (ISO 8601) |
| `applicationUrl`, `applicationEmail`, `applicationPhone`, `applicationContactName` | How to apply |
| `employerWebsite`, `employerPhone`, `employerAddress`, `employerCity`, `employerCountry` | Employer contact/location |
| `employerLogoUrl`, `employerHeaderImageUrl` | Employer branding images |
| `latitude`, `longitude` | Employer geo-coordinates |
| `isPromoted`, `isQuickApply` | Listing flags |
| `vacancyUrl` | Canonical job page URL |
| `recordType` | Always `"job"` |
| `scrapedAt` | UTC scrape timestamp |
| `sourceUrl` | Same as `vacancyUrl` |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | select | `search` | `search` / `byVacancyIds` / `byUrls` |
| `keywords` | string | `teacher` | Free-text search query (mode=search) |
| `positions` | array (enum) | – | Filter by role, e.g. `["Teacher", "Headteacher"]` |
| `subjects` | array (enum) | – | Filter by subject, e.g. `["Mathematics"]` |
| `workplaces` | array (enum) | – | Filter by school type, e.g. `["Primary", "Secondary"]` |
| `contractTypes` | array (enum) | – | `Full Time` / `Part Time` |
| `contractTerms` | array (enum) | – | `Permanent` / `Fixed Term` / `Casual` / `Maternity Cover` / `Temporary` / `Supply` |
| `sortBy` | select | `relevance` | `relevance` / `date` / `distance` |
| `locationName`, `locationLat`, `locationLon`, `locationDistance`, `distanceUnit` | – | – | Optional radius search around a coordinate |
| `vacancyIds` | array | – | Numeric vacancy IDs (mode=byVacancyIds) |
| `startUrls` | array | – | Job page URLs (mode=byUrls) |
| `fetchFullDescription` | boolean | `true` | Fetch each job's full detail page for the richer field set above |
| `maxItems` | integer | `50` | Maximum number of jobs to return (1–2000) |

#### Example: UK maths teacher vacancies, permanent, full-time

```json
{
  "mode": "search",
  "keywords": "maths",
  "subjects": ["Mathematics"],
  "contractTypes": ["Full Time"],
  "contractTerms": ["Permanent"],
  "sortBy": "date",
  "maxItems": 50
}
```

#### Example: fetch specific vacancies by ID

```json
{
  "mode": "byVacancyIds",
  "vacancyIds": [2338332, 2338743]
}
```

#### Example: fetch specific vacancies by URL

```json
{
  "mode": "byUrls",
  "startUrls": ["https://www.tes.com/jobs/vacancy/maths-teacher-north-tyneside-2338332"]
}
```

### Use cases

- **Education recruitment agencies** monitoring new teaching vacancies by subject/region
- **Job aggregators** syndicating UK & international teaching jobs
- **Labour-market researchers** tracking teacher demand by subject, region, or contract type
- **School HR / MAT teams** benchmarking salaries and vacancy volumes against competitors

### FAQ

**Does this require login or an API key?**
No. Tes.com job search and job listings are public; no account, cookies, or API key are needed.

**What locations does it cover?**
Tes.com is UK-based but lists thousands of international school vacancies (Middle East, Asia, Europe) in the same search index — no separate country switch is needed.

**Can I search by salary?**
Salary is only available as free text on Tes (e.g. "Up to £44,000 per annum") — there's no structured numeric salary filter upstream, so `displaySalary`/`salaryRange` are provided as text fields rather than a filterable numeric range.

**How fresh is the data?**
Every run queries Tes.com's live job-search API directly — there is no caching layer.

**Why does `fetchFullDescription` matter?**
The search-results API only returns a short summary. Enabling `fetchFullDescription` (on by default) fetches each job's detail page for the complete description, employer contact details, and taxonomy tags (position/subject/workplace) — at the cost of one extra request per job. Detail pages are fetched concurrently (bounded, with automatic retries on rate-limiting), but very large `maxItems` values (into the thousands) with `fetchFullDescription` enabled will take noticeably longer to finish than a search-only run, especially if Tes.com starts rate-limiting the run. Set `fetchFullDescription: false` for the fastest large-scale runs when the summary fields are enough.

# Actor input Schema

## `mode` (type: `string`):

search = keyword/filter job search (default). byVacancyIds = look up exact vacancies by numeric ID. byUrls = fetch exact vacancy pages by URL.

## `keywords` (type: `string`):

Free-text search query — job title, subject or skill (e.g. "maths teacher", "SEN", "headteacher"). Leave empty to browse all current vacancies.

## `positions` (type: `array`):

Filter by job position/role. Leave empty for all positions.

## `subjects` (type: `array`):

Filter by teaching subject. Leave empty for all subjects.

## `workplaces` (type: `array`):

Filter by workplace/school phase type. Leave empty for all workplace types.

## `contractTypes` (type: `array`):

Filter by full-time / part-time. Leave empty for both.

## `contractTerms` (type: `array`):

Filter by contract term. Leave empty for all terms.

## `sortBy` (type: `string`):

Order of search results.

## `locationName` (type: `string`):

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` (type: `number`):

Latitude of the search-radius centre point. Must be set together with Location longitude to enable radius filtering.

## `locationLon` (type: `number`):

Longitude of the search-radius centre point. Must be set together with Location latitude to enable radius filtering.

## `locationDistance` (type: `integer`):

Radius around the given latitude/longitude to search within. Only applied when Location latitude/longitude are set.

## `distanceUnit` (type: `string`):

Unit for the search radius.

## `vacancyIds` (type: `array`):

Exact numeric Tes vacancy IDs to fetch (found in the job URL, e.g. 2338332).

## `startUrls` (type: `array`):

Exact Tes job vacancy page URLs to fetch (e.g. https://www.tes.com/jobs/vacancy/maths-teacher-north-tyneside-2338332).

## `fetchFullDescription` (type: `boolean`):

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.

## `maxItems` (type: `integer`):

Maximum number of job records to return.

## Actor input object example

```json
{
  "mode": "search",
  "keywords": "teacher",
  "positions": [],
  "subjects": [],
  "workplaces": [],
  "contractTypes": [],
  "contractTerms": [],
  "sortBy": "relevance",
  "locationDistance": 30,
  "distanceUnit": "mi",
  "vacancyIds": [],
  "startUrls": [],
  "fetchFullDescription": true,
  "maxItems": 20
}
```

# Actor output Schema

## `jobs` (type: `string`):

Dataset containing all scraped Tes.com job vacancies.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "keywords": "teacher",
    "sortBy": "relevance",
    "locationDistance": 30,
    "distanceUnit": "mi",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/tes-jobs-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "keywords": "teacher",
    "sortBy": "relevance",
    "locationDistance": 30,
    "distanceUnit": "mi",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/tes-jobs-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "keywords": "teacher",
  "sortBy": "relevance",
  "locationDistance": 30,
  "distanceUnit": "mi",
  "maxItems": 20
}' |
apify call crawlerbros/tes-jobs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawlerbros/tes-jobs-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/qP3DnZeUle680nuH0/builds/v1FGRo7tJd2DABt0l/openapi.json
