{
  "openapi": "3.0.1",
  "info": {
    "title": "CILEX Practitioner Register Scraper",
    "description": "Scrape the CILEX Authorised Practitioners Directory - CILEx Regulation's official public register of Chartered Legal Executives and CILEX Practitioners authorised for reserved legal activities in England & Wales. Search by name, employer/firm, postcode, or practising right.",
    "version": "1.0",
    "x-build-id": "yFdLHQcC4BAjNDqTN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~cilex-practitioner-register-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-cilex-practitioner-register-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/crawlerbros~cilex-practitioner-register-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-cilex-practitioner-register-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/crawlerbros~cilex-practitioner-register-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-cilex-practitioner-register-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": {
          "contactName": {
            "title": "Practitioner name",
            "minLength": 2,
            "type": "string",
            "description": "Full or partial name of the Chartered Legal Executive / CILEX Practitioner, e.g. `Smith` or `Craig Arrowsmith`. Case-insensitive substring match."
          },
          "firmName": {
            "title": "Employer / firm name",
            "minLength": 2,
            "type": "string",
            "description": "Full or partial employer/firm name, e.g. `Brabners`. Case-insensitive substring match."
          },
          "postcode": {
            "title": "Employer postcode",
            "minLength": 2,
            "type": "string",
            "description": "UK postcode or partial postcode of the employer's address, e.g. `M2` or `M2 4LQ`. Matches anywhere in the postcode (substring match), not just as a prefix."
          },
          "addressCity": {
            "title": "Employer city / town",
            "minLength": 2,
            "type": "string",
            "description": "Full or partial employer address city/town, e.g. `Manchester` or `Leeds`. Case-insensitive substring match — combine with `postcode` for a narrower search, or use on its own to browse all practitioners in a city."
          },
          "practicingRight": {
            "title": "Practising right / title",
            "enum": [
              "d01e88bb-6272-e911-a988-00224800c719",
              "ce1cd209-6372-e911-a988-00224800c719",
              "9d44d203-43de-eb11-bacb-000d3a86b424",
              "26febafd-42de-eb11-bacb-000d3a86b424",
              "6d44d203-43de-eb11-bacb-000d3a86b424",
              "b7079ea3-bf60-f011-bec2-6045bd0c8a0b",
              "d61e68f7-42de-eb11-bacb-000d3a86b424",
              "191f68f7-42de-eb11-bacb-000d3a86b424",
              "a67d948b-6272-e911-a988-00224800c719",
              "83a779a9-6272-e911-a988-00224800c719",
              "129187b5-6272-e911-a988-00224800c719",
              "47319818-19bb-f011-bbd3-000d3a86bdad",
              "01086cb0-19bb-f011-bbd3-000d3a86bdad",
              "0e7bcc05-1abb-f011-bbd3-000d3a86bdad",
              "d6972ca3-0c75-ef11-a670-0022481a9cc6",
              "c0d84ae5-42de-eb11-bacb-000d3a86b424",
              "4e454aeb-42de-eb11-bacb-000d3a86b424",
              "cac57aa9-0c75-ef11-a670-0022481a9cc6",
              "bd645af1-42de-eb11-bacb-000d3a86b424",
              "104001eb-e520-f011-998a-0022481a455b",
              "cd2296f2-e520-f011-998a-0022481a455b",
              "d71a8fcd-6272-e911-a988-00224800c719",
              "022396f2-e520-f011-998a-0022481a455b",
              "e0cecef8-e520-f011-998a-0022481a455b",
              "9a61cef1-6272-e911-a988-00224800c719",
              "9679f932-b8fe-ed11-8f6c-002248c6f70c",
              "a9e58ac7-6272-e911-a988-00224800c719",
              "b02dafd9-6272-e911-a988-00224800c719",
              "b0eac523-b8fe-ed11-8f6c-002248c6f70c",
              "70e9dde5-6272-e911-a988-00224800c719",
              "9e7bc9fe-e520-f011-998a-0022481a455b",
              "107cc9fe-e520-f011-998a-0022481a455b",
              "d5e141df-42de-eb11-bacb-000d3a86b424",
              "469cc7f7-6272-e911-a988-00224800c719"
            ],
            "type": "string",
            "description": "Restrict results to practitioners holding this specific CILEx Regulation practising right / professional title. Combine with `contactName`, `firmName`, or `postcode` for best performance."
          },
          "disciplinaryOnly": {
            "title": "Disciplinary findings only",
            "type": "boolean",
            "description": "When true, only emit practitioners with a published disciplinary finding on file.",
            "default": false
          },
          "employerAuthorisedOnly": {
            "title": "Authorised-entity employers only",
            "type": "boolean",
            "description": "When true, only emit practitioners whose employer is itself an entity authorised and regulated by CILEx Regulation.",
            "default": false
          },
          "nameContains": {
            "title": "Name contains (extra filter)",
            "type": "string",
            "description": "Extra client-side, case-insensitive substring filter applied to the practitioner's name — useful when combining a broad `firmName`/`postcode` search with a narrower name check."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}