{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Waste Sites & Carriers Scraper - EA Permits & Recyclers",
    "description": "UK waste sites and waste carriers scraper: every Environment Agency permitted waste site in England (transfer stations, MRFs, metal recycling, landfill, composting) plus registered waste carriers and brokers. Business, permit no., site type, status, address, lat / lng, company no. No browser.",
    "version": "1.0",
    "x-build-id": "PbI9cxPN8YdBUTbPv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~uk-waste-sites-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-uk-waste-sites-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/rel8ble~uk-waste-sites-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-uk-waste-sites-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/rel8ble~uk-waste-sites-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-uk-waste-sites-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": {
          "registers": {
            "title": "Registers",
            "type": "array",
            "description": "Optional. \"waste-operations\" (Environment Agency permitted waste sites in England: transfer stations, recycling facilities, metal recycling sites, landfills, composting ...; about 9,600) and / or \"waste-carriers-brokers\" (registered waste carriers, brokers and dealers; 300,000+). Default [\"waste-operations\"].",
            "default": [
              "waste-operations"
            ],
            "items": {
              "type": "string"
            }
          },
          "facilityTypes": {
            "title": "Facility types (waste sites)",
            "type": "array",
            "description": "Optional, waste sites only. Categories: metal-recycling, end-of-life-vehicles, transfer-station, materials-recycling, household-waste-site, hazardous-waste, landfill, composting, biological-treatment, physical-chemical-treatment, soils-and-aggregates, land-recovery, clinical-waste, weee, mining-waste, mobile-plant, combustion. Or exact EA site-type codes like \"A20\" or \"SR2015 No 16\". Empty = every type.",
            "items": {
              "type": "string"
            }
          },
          "localAuthorities": {
            "title": "Councils (local authorities)",
            "type": "array",
            "description": "Optional. Councils in England, partial names OK, many per run, e.g. \"Birmingham\", \"Leeds\", \"Kent\". For waste carriers (no council on that register) the name is matched as a town.",
            "items": {
              "type": "string"
            }
          },
          "towns": {
            "title": "Towns",
            "type": "array",
            "description": "Optional. Town / locality, many per run, e.g. \"Sheffield\", \"Bristol\". For waste carriers this is a fast exact server-side lookup, so give towns to get complete local carrier lists.",
            "items": {
              "type": "string"
            }
          },
          "postcodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "Optional. Postcode areas (\"B\" = Birmingham area, not BS), districts (\"LS1\", \"M17\") or full postcodes, many per run.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Name keywords",
            "type": "array",
            "description": "Optional. Keep rows whose business, premises or site-type text contains one of these words, e.g. \"skip\", \"metal\", \"recycling\", \"biffa\". Case-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "registrationNumbers": {
            "title": "Permit / registration numbers (verification)",
            "type": "array",
            "description": "Optional. Look up specific permit numbers (\"FB3408US\") or carrier registration numbers (\"CBDU498145\"). When set, only these are returned, active or not, regardless of the other filters; unknown numbers are listed in RUN_SUMMARY.",
            "items": {
              "type": "string"
            }
          },
          "carrierTiers": {
            "title": "Carrier tiers",
            "type": "array",
            "description": "Optional, waste carriers only. \"upper\" (businesses that carry, broker or deal in other people's waste) and / or \"lower\" (mostly firms carrying their own waste). Default [\"upper\"].",
            "default": [
              "upper"
            ],
            "items": {
              "type": "string"
            }
          },
          "activeOnly": {
            "title": "Only active",
            "type": "boolean",
            "description": "Optional. Skip fully suspended permits, sites in closure / aftercare and expired carrier registrations. Default true.",
            "default": true
          },
          "issuedAfter": {
            "title": "Issued / registered on or after",
            "type": "string",
            "description": "Optional, for monitoring. YYYY-MM-DD; keep permits issued, or carriers registered, on or after this date (new sites and new carriers)."
          },
          "withCompanyNumberOnly": {
            "title": "Only carriers with a company number",
            "type": "boolean",
            "description": "Optional. Keep only rows with a Companies House number (limited companies). Default false.",
            "default": false
          },
          "includeIndividuals": {
            "title": "Include individuals and sole traders",
            "type": "boolean",
            "description": "Optional. Also output sole-trader carriers and the personal names of individual permit holders. Off by default; only turn it on if you have a lawful basis to process personal data.",
            "default": false
          },
          "geocode": {
            "title": "Add coordinates and region",
            "type": "boolean",
            "description": "Optional. Look up latitude / longitude, region, district and ward for each postcode via postcodes.io (open data, one request per 100 rows). Default true.",
            "default": true
          },
          "maxResults": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Stop after this many rows (newest permits / registrations first). Default 100; 0 = every match. You pay per row.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}