{
  "openapi": "3.0.1",
  "info": {
    "title": "Guardian Jobs Scraper: UK Charity, Media, Public",
    "description": "Extract UK job listings from Guardian Jobs (jobs.theguardian.com). Returns 28+ fields per row: title, employer, salary (GBP min/max), location, sector, contract type, hours, closing date, description, apply URL, plus employer phone, address, website and about text when present. Pay per result.",
    "version": "1.7",
    "x-build-id": "SluwDXDtOQ6AA0fOk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/santamaria-automations~guardianjobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-santamaria-automations-guardianjobs-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/santamaria-automations~guardianjobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-santamaria-automations-guardianjobs-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/santamaria-automations~guardianjobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-santamaria-automations-guardianjobs-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": {
          "searchQueries": {
            "title": "Search Keywords",
            "type": "array",
            "description": "One or more keywords to search for on jobs.theguardian.com (for example 'charity manager', 'science teacher', 'communications officer'). Each keyword runs as a separate search. Results are deduplicated by job ID. Leave blank if you supply startUrls instead.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (alternative to keywords)",
            "type": "array",
            "description": "Direct SERP URLs to crawl instead of building searches from keywords. Example: https://jobs.theguardian.com/jobs/charity/ or a full /searchjobs/?Keywords=... URL. Mutually exclusive with searchQueries: provide one or the other. If both are set, startUrls wins and a warning is logged.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "UK town, city or region to restrict results to (for example 'London', 'Manchester', 'Edinburgh'). Applied to all search keywords with a 20-mile radius. Ignored when you use startUrls."
          },
          "includeJobDetails": {
            "title": "Include Full Job Details",
            "type": "boolean",
            "description": "Fetch each job's detail page for full description, sector, contract type, hours, closing date, structured salary, and employer contact info (phone, address, website, about text when present).",
            "default": false
          },
          "includeCompanyDetails": {
            "title": "Include Employer Page Details",
            "type": "boolean",
            "description": "Also resolve each unique employer to its Guardian Jobs company page for the enriched about text and a list of the employer's other currently-open roles. Adds one extra HTTP hop per unique employer (deduplicated within the run) and charges a separate company-detail-result event at $0.010 each. Requires includeJobDetails=true.",
            "default": false
          },
          "sector": {
            "title": "Sector",
            "enum": [
              "",
              "charities",
              "media",
              "education",
              "government-and-politics",
              "arts-and-heritage",
              "health",
              "technology-and-it",
              "community-and-social-care",
              "environment",
              "publishing",
              "science",
              "hospitality-and-leisure",
              "marketing-and-pr",
              "finance",
              "legal",
              "sales"
            ],
            "type": "string",
            "description": "Optional sector filter. Guardian Jobs has a strong sector taxonomy including Charities, Media, Education, Government, Arts and Heritage, Health, Technology and IT, and Social Care.",
            "default": ""
          },
          "salaryMin": {
            "title": "Minimum Salary (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return jobs advertised at or above this annual salary (in GBP). Leave blank or 0 to include all salaries.",
            "default": 0
          },
          "contractType": {
            "title": "Contract Type",
            "enum": [
              "",
              "permanent",
              "contract",
              "temporary",
              "voluntary"
            ],
            "type": "string",
            "description": "Optional filter on contract type.",
            "default": ""
          },
          "maxResults": {
            "title": "Max Total Results",
            "minimum": 1,
            "type": "integer",
            "description": "Total cap across all search keywords.",
            "default": 25
          },
          "maxResultsPerQuery": {
            "title": "Max Results per Keyword",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum results per individual search keyword.",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Detail Page Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of detail pages to fetch in parallel when full details are enabled.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}