{
  "openapi": "3.0.1",
  "info": {
    "title": "TotalJobs UK Jobs Scraper",
    "description": "Scrape Totaljobs.com UK job listings — title, company, salary, location, full description. MCP-ready, HTTP + GB residential proxy.",
    "version": "0.2",
    "x-build-id": "ZGKIS1B4ZlrwqEA68"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~totaljobs-jobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-totaljobs-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/khadinakbar~totaljobs-jobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-totaljobs-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/khadinakbar~totaljobs-jobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-totaljobs-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",
        "properties": {
          "keyword": {
            "title": "Job title or keyword",
            "type": "string",
            "description": "What to search for, for example 'registered nurse' or 'software engineer'. Leave empty only if you paste Start URLs below."
          },
          "location": {
            "title": "Place",
            "type": "string",
            "description": "UK city or area, for example 'London' or 'Manchester'. Leave empty to search the whole UK. Ignored when Start URLs are used."
          },
          "radius": {
            "title": "Search radius (miles)",
            "enum": [
              "5",
              "10",
              "20",
              "30"
            ],
            "type": "string",
            "description": "How far around the place to look. Only used when a place is set. Totaljobs offers 5, 10, 20 or 30 miles.",
            "default": "10"
          },
          "postedWithin": {
            "title": "Posted within",
            "enum": [
              "any",
              "1",
              "3",
              "7",
              "14",
              "30"
            ],
            "type": "string",
            "description": "Only jobs posted in the last N days. Totaljobs' own date filter cannot be used by automated tools, so this Actor reads search pages and keeps jobs whose posting date is inside your limit. Narrow limits read more pages (cheap), so keep Maximum jobs realistic.",
            "default": "any"
          },
          "minSalary": {
            "title": "Minimum yearly salary (GBP)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Only jobs paying at least this much per year. Totaljobs filters in steps of 10,000 up to 100,000, so the value is rounded down to the nearest 10,000. 0 means no filter. Totaljobs also keeps jobs that show no pay (for example Competitive), so check the salaryMin field if you need only stated pay.",
            "default": 0
          },
          "workPolicy": {
            "title": "Where the work happens",
            "enum": [
              "any",
              "onsite",
              "hybrid",
              "remote"
            ],
            "type": "string",
            "description": "Filter by on-site, hybrid or remote jobs.",
            "default": "any"
          },
          "workFromHomeOnly": {
            "title": "Remote jobs only (shortcut)",
            "type": "boolean",
            "description": "Same as choosing Remote above. Kept so older saved inputs keep working.",
            "default": false
          },
          "contractType": {
            "title": "Contract type",
            "enum": [
              "any",
              "permanent",
              "temporary",
              "freelance",
              "supply"
            ],
            "type": "string",
            "description": "Permanent, temporary, freelance or agency-supplied temporary staff.",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "date",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first (default) or Totaljobs' relevance order.",
            "default": "date"
          },
          "startUrls": {
            "title": "Start URLs (optional)",
            "type": "array",
            "description": "Totaljobs search pages (https://www.totaljobs.com/jobs/...) or single job links (https://www.totaljobs.com/job/...). When set, the search and filter fields above are ignored.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Maximum jobs",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many jobs. Each returned job is billed once, so this is also your spending cap. Totaljobs shows about 25 jobs per page.",
            "default": 100
          },
          "enrichDetails": {
            "title": "Open every job page (full details)",
            "type": "boolean",
            "description": "On (default): opens each job page for the full description, contract type, closing date, apply type and company profile. Off: reads only the search pages. About 3 times cheaper all-in (price plus usage) and much faster, with a short description snippet (about 350 characters).",
            "default": true
          },
          "includeCompanyProfile": {
            "title": "Add company size and industry",
            "type": "boolean",
            "description": "Adds employer size band, founding year, industries and open-job count. Read from the same job page, so it costs nothing extra. Only works when 'Open every job page' is on, and only when the employer filled in its profile.",
            "default": true
          },
          "includeHtmlDescription": {
            "title": "Also return the description as HTML",
            "type": "boolean",
            "description": "Adds the original formatted description (descriptionHtml) next to the plain text. Needs 'Open every job page'.",
            "default": false
          },
          "extractContactDetails": {
            "title": "Find e-mails and phone numbers in the ad",
            "type": "boolean",
            "description": "Lists any e-mail addresses and UK phone numbers written in the job text (extractedEmails, extractedPhones). Only what the advertiser wrote; nothing is guessed.",
            "default": true
          },
          "onlyNewJobs": {
            "title": "Only jobs not seen in earlier runs",
            "type": "boolean",
            "description": "Skips jobs this Actor already returned to you before (remembered in your own storage named below) and bills only new ones. Good for daily monitoring.",
            "default": false
          },
          "stateStoreName": {
            "title": "Memory store name",
            "type": "string",
            "description": "Name of the storage that remembers seen job IDs for 'Only jobs not seen in earlier runs'. Use a different name per search.",
            "default": "totaljobs-seen-jobs"
          },
          "skipJobIds": {
            "title": "Job IDs to skip",
            "type": "array",
            "description": "Totaljobs job IDs you already have (the number in the job link, for example 108373657). They are not opened and not billed.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Totaljobs blocks normal server addresses, so UK residential proxy is the default and the recommended choice.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "GB"
            }
          },
          "maxConcurrency": {
            "title": "Parallel pages (advanced)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "How many pages are fetched at once. Leave empty: the Actor picks 10, 24 or 40 to match the memory it was given."
          },
          "debugDumpHtml": {
            "title": "Debug: keep raw pages",
            "type": "boolean",
            "description": "Internal troubleshooting switch. Leave off.",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}