{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Gambling Licence Register & Domain Checks",
    "description": "Check websites against the UK Gambling Commission register: is a domain licensed, by whom, since when. Operators with licences, brands and domains, plus new, suspended, revoked and surrendered licences, with history since 2023. Trial: 0.01 USD per 1,000 rows until 31 Dec 2026.",
    "version": "1.0",
    "x-build-id": "MpYalCCSUtuCfXNBa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cozybit~uk-gambling-licence-register/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cozybit-uk-gambling-licence-register",
        "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/cozybit~uk-gambling-licence-register/runs": {
      "post": {
        "operationId": "runs-sync-cozybit-uk-gambling-licence-register",
        "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/cozybit~uk-gambling-licence-register/run-sync": {
      "post": {
        "operationId": "run-sync-cozybit-uk-gambling-licence-register",
        "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": {
          "mode": {
            "title": "What to return",
            "enum": [
              "operators",
              "domains",
              "changes"
            ],
            "type": "string",
            "description": "operators: one row per business, with its licences, trading names and domains. domains: one answer per URL or hostname, including no-match answers. changes: additions, status changes, licence activity changes and removals observed between snapshots.",
            "default": "operators"
          },
          "names": {
            "title": "Business or trading names",
            "type": "array",
            "description": "Keep businesses whose legal name or any recorded trading name contains one of these texts. Ignores case, punctuation and spaces. Leave empty for all businesses. Applies to operators and changes.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "domains": {
            "title": "Domains or website URLs",
            "type": "array",
            "description": "Required in domains mode. Examples: bet365.com or https://sports.bet365.com/path. Ignores scheme, credentials, port, path and a leading www. Matches the exact hostname first, then its closest registered parent. Includes historical domains. Invalid hostnames stop the run before any charged answers. Each checked input costs one domain-check event, including no match.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "licenceStatuses": {
            "title": "Licence statuses",
            "type": "array",
            "description": "In operators mode, require at least one licence with one of these statuses. Empty includes all statuses. An Active licence alone does not imply permission for every activity or every website.",
            "items": {
              "type": "string",
              "enum": [
                "Active",
                "Surrendered",
                "Pending",
                "Revoked - Non Payment of Fee",
                "Lapsed",
                "Revoked",
                "Suspended"
              ]
            },
            "default": []
          },
          "activities": {
            "title": "Licensed activities",
            "type": "array",
            "description": "In operators mode, match any exact activity label, ignoring case and extra spaces, for example Casino or General Betting Standard - Real Event. Empty includes every activity. Status, type and activity filters must all match the same licence.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "types": {
            "title": "Licence types",
            "type": "array",
            "description": "In operators mode, require a licence of one of these types. Remote and Ancillary Remote are different types. Empty includes all types.",
            "items": {
              "type": "string",
              "enum": [
                "Remote",
                "Non-Remote",
                "Ancillary Remote"
              ]
            },
            "default": []
          },
          "includeRemoved": {
            "title": "Include historical entries",
            "type": "boolean",
            "description": "In operators mode, also return businesses, licences, trading names and domains no longer listed in today's files. Removed licences keep their last recorded status and end dates. This does not mean they remain licensed.",
            "default": false
          },
          "changedSince": {
            "title": "Changes after date",
            "type": "string",
            "description": "In changes mode, return changes detected strictly after this YYYY-MM-DD date. Empty means only the latest register update, or changes after the saved date when onlyNewSinceLastRun is on. Detection dates come from available snapshots, not the exact time the underlying event happened.",
            "default": ""
          },
          "onlyNewSinceLastRun": {
            "title": "Only new changes since the last successful run",
            "type": "boolean",
            "description": "In changes mode, remember the last successful register date for this names/entity/change/status filter set. A successful run advances that date even when maxResults, the free cap or a charge cap omits rows. RUN_SUMMARY reports undelivered changes and a recovery date. Set changedSince explicitly to recover them.",
            "default": false
          },
          "entityTypes": {
            "title": "Kinds of changed entry",
            "type": "array",
            "description": "In changes mode, choose licences, domains, trading names or businesses. Empty includes all four. Each file has its own snapshot dates; a missing archived file never creates removals for that entry type.",
            "items": {
              "type": "string",
              "enum": [
                "licence",
                "domain",
                "trading_name",
                "business"
              ]
            },
            "default": []
          },
          "changeTypes": {
            "title": "Kinds of change",
            "type": "array",
            "description": "In changes mode: added means newly seen or re-listed; status_changed means a different primary status; activities_changed means a licence gained or lost an activity; removed means absent from a later file, not necessarily revoked. Licences are matched without the version suffix, so a version bump alone creates no change. Empty includes every kind.",
            "items": {
              "type": "string",
              "enum": [
                "added",
                "status_changed",
                "activities_changed",
                "removed"
              ]
            },
            "default": []
          },
          "newStatuses": {
            "title": "New statuses to watch",
            "type": "array",
            "description": "In changes mode, keep changes whose resulting or last-known status is one of these exact labels, for example Suspended or Revoked. Empty includes every status. Businesses have no licence status.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxResults": {
            "title": "Maximum charged rows",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum operator rows, domain-check answers or change rows to deliver. Default 1000; the example run delivers up to 100. Free Apify plans are capped at 100 charged rows per run regardless of this setting.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}