{
  "openapi": "3.0.1",
  "info": {
    "title": "UK New Venue Licences",
    "description": "New UK pubs, bars, restaurants, cafés and takeaways weeks before they open, from 79 official council licensing registers (London, Bristol, Leeds, Liverpool, Sheffield, Edinburgh and more). Optional Companies House company, website and phone. Weekly new-only mode.",
    "version": "0.0",
    "x-build-id": "Jc6g1VjfQkO0AwbKA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/venueleads~uk-new-venue-licences/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-venueleads-uk-new-venue-licences",
        "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/venueleads~uk-new-venue-licences/runs": {
      "post": {
        "operationId": "runs-sync-venueleads-uk-new-venue-licences",
        "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/venueleads~uk-new-venue-licences/run-sync": {
      "post": {
        "operationId": "run-sync-venueleads-uk-new-venue-licences",
        "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": {
          "councils": {
            "title": "Councils",
            "type": "array",
            "description": "Council ids to watch, or [\"all\"]. Supported: nottingham-city, derby-city, basingstoke-deane, west-suffolk, lambeth, ealing, leeds, newham, tendring, cheltenham, rushcliffe, gateshead, isle-of-wight, north-warwickshire, westminster, chichester, east-herts, southend, north-tyneside, newark-sherwood, thurrock, lichfield, dartford, hinckley, mid-sussex, st-helens, harborough, windsor-maidenhead, oxford, south-gloucestershire, bristol, liverpool, cheshire-east, sheffield, rotherham, lancaster, blackpool, luton, surrey-heath, maldon, warwick, west-oxfordshire, cotswold, forest-of-dean, wolverhampton, south-staffordshire, bolton, wigan, tameside, kirklees, salford, chelmsford, south-norfolk-broadland, babergh, broxbourne, castle-point, dacorum, cornwall, somerset, hull, york, mid-suffolk, cheshire-west, hackney, southwark, norwich, city-of-london, kensington-chelsea, wakefield, rochford, stratford, tamworth, north-norfolk, three-rivers, sevenoaks, bexley, maidstone, edinburgh.",
            "default": [
              "all"
            ],
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Deliver only applications you haven't received before. Turn this on when you schedule the Actor (e.g. weekly) to get a feed of new venues only.",
            "default": false
          },
          "includeContacts": {
            "title": "Add contact details",
            "type": "boolean",
            "description": "For each venue, add the operating company from Companies House (name, number, registered office) and the venue's own public website, phone and general email (info@, bookings@...) where one can be found. Business details only, never personal contacts. Makes runs slower.",
            "default": false
          },
          "nearPostcode": {
            "title": "Only venues near this postcode",
            "type": "string",
            "description": "Optional. A UK postcode or postcode district (for example B1 1BB or WS11). Use with 'Radius in miles' to keep only venues within that distance, e.g. a delivery area. Leave blank for no distance filter.",
            "default": ""
          },
          "radiusMiles": {
            "title": "Radius in miles",
            "minimum": 0,
            "maximum": 300,
            "type": "integer",
            "description": "Optional. With a postcode above, keep only venues within this many miles (straight line) and add a 'milesFromCentre' field. 0 means no distance filter.",
            "default": 0
          },
          "applicationTypes": {
            "title": "Application types",
            "type": "array",
            "description": "NEW_PREMISES (new venue), TRANSFER (venue changing hands), NEW_ON_REGISTER (newly granted licence), VARIATION, MINOR_VARIATION, DPS_CHANGE (new manager), REVIEW. Leave empty for all.",
            "default": [
              "NEW_PREMISES",
              "NEW_ON_REGISTER",
              "TRANSFER"
            ],
            "items": {
              "type": "string"
            }
          },
          "venueCategories": {
            "title": "Venue categories",
            "type": "array",
            "description": "Filter by guessed category: PUB_BAR, NIGHTCLUB, RESTAURANT_CAFE, TAKEAWAY_LATE_NIGHT, SHOP_OFF_LICENCE, LEISURE_EVENTS, UNKNOWN. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "receivedSinceDays": {
            "title": "Only applications received in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Applies where the council publishes a received date. 0 = no limit.",
            "default": 120
          },
          "includeRegisterDiff": {
            "title": "Detect newly granted licences on full registers",
            "type": "boolean",
            "description": "Also compare each council's full licensed-premises register with the last run to catch newly granted licences. The first run saves a baseline.",
            "default": true
          },
          "includeRejected": {
            "title": "Include rejected / withdrawn applications",
            "type": "boolean",
            "description": "Councils sometimes log applications that were rejected or withdrawn. Off by default.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of venue records to return in one run.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}