{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Bank of England PRA Regulated Banks, Insurers & LEI KYB",
    "description": "Extract & verify all ~1,300 Bank of England Prudential Regulation Authority (PRA) regulated UK & overseas banks, building societies, credit unions, insurers, investment firms & holding companies with FCA/PRA FRN, ISO 17442 LEI, SWIFT/BIC codes, HQ addresses & Companies House IDs.",
    "version": "1.0",
    "x-build-id": "lU3STm6Rk4v1hp33B"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/regpulse-data~uk-boe-pra-regulated-banks-insurers-kyb/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-regpulse-data-uk-boe-pra-regulated-banks-insurers-kyb",
        "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/regpulse-data~uk-boe-pra-regulated-banks-insurers-kyb/runs": {
      "post": {
        "operationId": "runs-sync-regpulse-data-uk-boe-pra-regulated-banks-insurers-kyb",
        "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/regpulse-data~uk-boe-pra-regulated-banks-insurers-kyb/run-sync": {
      "post": {
        "operationId": "run-sync-regpulse-data-uk-boe-pra-regulated-banks-insurers-kyb",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Operating Mode",
            "enum": [
              "institution_search",
              "counterparty_kyb_screen",
              "watchlist_diff"
            ],
            "type": "string",
            "description": "Select 'institution_search' to query/export PRA-regulated institutions (with FRN + LEI + SWIFT/BIC enrichment), 'counterparty_kyb_screen' for deterministic batch counterparty screening by Firm Name, FRN, LEI, or BIC, or 'watchlist_diff' for monthly PRA authorisation & SRO delta alerts.",
            "default": "institution_search"
          },
          "query": {
            "title": "Firm Name, FCA/PRA FRN, LEI, or SWIFT/BIC Code",
            "type": "string",
            "description": "Case-insensitive match on institution name (e.g., 'Barclays', 'Revolut', 'Monzo', 'ClearBank', 'Allianz'), 6–7 digit FRN (e.g., '754568'), 20-char LEI, or SWIFT/BIC."
          },
          "batchQueries": {
            "title": "Batch Counterparty Names, FRNs, or LEIs (Optional)",
            "type": "array",
            "description": "Screen multiple financial institutions, FRNs, or 20-char LEIs in a single run (ideal for treasury KYB, correspondent banking, and Clay.com workflows).",
            "items": {
              "type": "string"
            }
          },
          "institutionCategories": {
            "title": "Filter by PRA Prudential Category",
            "type": "array",
            "description": "Optional PRA categories to include: UK_BANK, OVERSEAS_BANK_UK_BRANCH, GIBRALTAR_BANK, SRO_BANK, BUILDING_SOCIETY, CREDIT_UNION, UK_INSURER, OVERSEAS_INSURER_UK_BRANCH, GIBRALTAR_INSURER, SRO_INSURER, DESIGNATED_INVESTMENT_FIRM, APPROVED_HOLDING_COMPANY. Leave empty for all categories.",
            "items": {
              "type": "string"
            }
          },
          "jurisdictions": {
            "title": "Filter by Home Jurisdiction / ISO Country Code",
            "type": "array",
            "description": "Optional ISO-2 jurisdiction codes (e.g., ['GB', 'US', 'DE', 'JP', 'SG', 'IN', 'GI']) when GLEIF enrichment is enabled.",
            "items": {
              "type": "string"
            }
          },
          "onlyWithLei": {
            "title": "Only Return Institutions with a 20-Character LEI",
            "type": "boolean",
            "description": "When true, returns only PRA-regulated firms that carry an ISO 17442 Legal Entity Identifier (LEI).",
            "default": false
          },
          "onlyWithSwiftBic": {
            "title": "Only Return Institutions with Mapped SWIFT / BIC Codes",
            "type": "boolean",
            "description": "When true (requires enrichWithGleif=true), filters to institutions with one or more active SWIFT/BIC routing codes mapped in GLEIF.",
            "default": false
          },
          "enrichWithGleif": {
            "title": "Enrich LEIs via Live GLEIF API (HQ Address, SWIFT/BIC & Registry ID)",
            "type": "boolean",
            "description": "Automatically batch-queries the official GLEIF v1 API to append verified HQ street address, city, postcode, home jurisdiction, Companies House / local registry ID, SWIFT/BIC codes, and LEI renewal status.",
            "default": true
          },
          "watchlistStateKey": {
            "title": "Watchlist Snapshot Key (watchlist_diff Mode)",
            "type": "string",
            "description": "Named Key-Value Store key used to persist monthly PRA authorisation snapshots across runs.",
            "default": "BOE_PRA_WATCHLIST_SNAPSHOT"
          },
          "maxResults": {
            "title": "Maximum Records to Deliver",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap total records pushed to the dataset (directly bounds Pay-Per-Event spend). Set to 0 for unlimited.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}