{
  "openapi": "3.0.1",
  "info": {
    "title": "Escape the City Scraper: Purpose-Driven UK Jobs",
    "description": "Extract UK purpose-driven job listings from Escape the City (escapethecity.org). Returns 30+ fields per row: title, employer, salary, location, cause, workplace type, B-Corp / Top-1% / visa-sponsor flags, benefits, plus employer website, about text, hero image and other open roles. Pay per result.",
    "version": "0.2",
    "x-build-id": "CYjcLLdHlSLsB6tCW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/santamaria-automations~escape-the-city-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-santamaria-automations-escape-the-city-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~escape-the-city-scraper/runs": {
      "post": {
        "operationId": "runs-sync-santamaria-automations-escape-the-city-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~escape-the-city-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-santamaria-automations-escape-the-city-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 escapethecity.org (for example 'sustainability', 'social impact', 'climate', 'charity'). Each keyword runs as a separate search against the site's Algolia backend. 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 escapethecity.org URLs to crawl instead of building searches from keywords. Supports SERP URLs like https://www.escapethecity.org/search/jobs?query=climate and individual PDP URLs like https://www.escapethecity.org/opportunity/{slug}. Mutually exclusive with searchQueries: provide one or the other.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Town, city or region to bias results towards (for example 'London', 'Manchester', 'Remote'). Included in the Algolia query for relevance ranking against the location-txt field."
          },
          "includeJobDetails": {
            "title": "Include Full Job Details",
            "type": "boolean",
            "description": "Fetch each job's detail page for the full description, apply URL, application instructions, closing date and structured salary. Adds one extra HTTP hop per job.",
            "default": false
          },
          "includeCompanyDetails": {
            "title": "Include Employer Profile Details",
            "type": "boolean",
            "description": "Also resolve each unique employer to its Escape the City /organisation/{slug} page for the enriched about text, external website, hero image 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.005 each. Requires includeJobDetails=true.",
            "default": false
          },
          "cause": {
            "title": "Cause",
            "enum": [
              "",
              "Sustainable consumption",
              "Climate action",
              "Reducing inequalities",
              "Quality education",
              "Good health and well-being",
              "No poverty",
              "Zero hunger",
              "Gender equality",
              "Decent work and economic growth",
              "Innovation",
              "Peace and justice",
              "Life on land",
              "Life below water"
            ],
            "type": "string",
            "description": "Optional cause filter. Escape the City organises purpose-driven roles by cause area.",
            "default": ""
          },
          "remote": {
            "title": "Remote / Workplace Type",
            "enum": [
              "",
              "Fully remote",
              "In person",
              "Hybrid - 40%",
              "Hybrid - 60%",
              "Hybrid - 80%"
            ],
            "type": "string",
            "description": "Optional workplace-type filter matching the site's own option-remote facet.",
            "default": ""
          },
          "bcorp": {
            "title": "Only B-Corp Certified Employers",
            "type": "boolean",
            "description": "Restrict results to B-Corp certified organisations only.",
            "default": false
          },
          "top1Percent": {
            "title": "Only Top 1% Employers (Escape Certified)",
            "type": "boolean",
            "description": "Restrict results to Escape's Top 1% Certified employer list only.",
            "default": false
          },
          "visaSponsor": {
            "title": "Only Visa Sponsor Employers",
            "type": "boolean",
            "description": "Restrict results to employers able to sponsor a UK visa.",
            "default": false
          },
          "maxResults": {
            "title": "Max Total Results",
            "minimum": 1,
            "type": "integer",
            "description": "Total cap across all search keywords.",
            "default": 5
          },
          "maxResultsPerQuery": {
            "title": "Max Results per Keyword",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum results per individual search keyword.",
            "default": 5
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}