{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Financial Entities: MiCA, PSD2 & Insurers Register",
    "version": "0.1",
    "x-build-id": "WLvPCmyTUOWC0Aiev"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rastriq~eu-financial-entities-register/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rastriq-eu-financial-entities-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/rastriq~eu-financial-entities-register/runs": {
      "post": {
        "operationId": "runs-sync-rastriq-eu-financial-entities-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/rastriq~eu-financial-entities-register/run-sync": {
      "post": {
        "operationId": "run-sync-rastriq-eu-financial-entities-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": "Mode",
            "enum": [
              "snapshot",
              "delta"
            ],
            "type": "string",
            "description": "<b>Delta</b> (default when empty): the first run returns everything in scope as <code>baseline</code>; later runs return only new, changed and removed entities since your last run, and unchanged entities are free.<br><b>Snapshot</b>: everything in scope on every run.",
            "default": "delta"
          },
          "registers": {
            "title": "Registers",
            "type": "array",
            "description": "Which registers to return. Empty = all three. ESMA = MiCA crypto-assets, EBA = PSD2 payment and e-money institutions, EIOPA = insurance undertakings. The EIOPA register is only downloaded when it can contribute rows (selected here and not excluded by <i>Entity types</i>), because its download is charged as one $0.10 event per run.",
            "items": {
              "type": "string",
              "enum": [
                "esma_mica",
                "eba_psd2",
                "eiopa"
              ],
              "enumTitles": [
                "ESMA - MiCA (crypto-assets)",
                "EBA - PSD2 payment & e-money institutions",
                "EIOPA - insurance undertakings"
              ]
            },
            "default": [
              "esma_mica",
              "eba_psd2",
              "eiopa"
            ]
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "Narrow down within the registers, e.g. <code>mica_casp</code> for crypto-asset service providers or <code>eba_emoney_institution</code> for e-money institutions. Empty = all types. An entity type belongs to one register, so choosing only MiCA types skips the EIOPA download.",
            "items": {
              "type": "string",
              "enum": [
                "mica_casp",
                "mica_emt_issuer",
                "mica_art_issuer",
                "mica_whitepaper_offeror",
                "mica_non_compliant",
                "eba_payment_institution",
                "eba_emoney_institution",
                "eba_exempted_payment_institution",
                "eba_exempted_emoney_institution",
                "eba_account_information_service_provider",
                "eba_exclusion_article_3",
                "eba_other_entity_entitled_to_provide_services",
                "eba_branch",
                "eiopa_insurance_undertaking"
              ],
              "enumTitles": [
                "MiCA - crypto-asset service provider (CASP)",
                "MiCA - e-money token issuer",
                "MiCA - asset-referenced token issuer",
                "MiCA - white paper (other crypto-assets)",
                "MiCA - non-compliant entity (warning)",
                "PSD2 - payment institution",
                "PSD2 - e-money institution",
                "PSD2 - exempted payment institution",
                "PSD2 - exempted e-money institution",
                "PSD2 - account information service provider",
                "PSD2 - excluded activity (Art. 3)",
                "PSD2 - other entity entitled to provide services",
                "PSD2 - branch",
                "EIOPA - insurance undertaking"
              ]
            }
          },
          "countries": {
            "title": "Home countries",
            "type": "array",
            "description": "Keep only entities whose home Member State is one of these 2-letter codes, e.g. <code>LU</code>, <code>MT</code>, <code>LT</code>. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "passportingTo": {
            "title": "Operating in (passporting / branches)",
            "type": "array",
            "description": "Keep only entities that passport services into, or have a branch in, one of these countries (2-letter codes), e.g. <code>ES</code> for entities that can operate in Spain. Empty = no filter.",
            "items": {
              "type": "string"
            }
          },
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Case-insensitive text search in the legal and commercial name, e.g. <code>bank</code>. Empty = all."
          },
          "includeWithdrawn": {
            "title": "Include withdrawn authorisations",
            "type": "boolean",
            "description": "Entities whose authorisation has ended (<code>status = withdrawn</code>). The EBA register keeps many of them; ESMA and EIOPA list few.",
            "default": true
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows (0 = no limit). Every row is billed, so this is also your spending cap. Pre-filled with 10; set 0 for everything in scope (up to about 11,900 entities).",
            "default": 0
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Optional name of the change-tracking stream (e.g. <code>kyb-watchlist</code>). Each combination of filters already has its own stream; set a name to keep one stream when you edit the filters. Delta mode only."
          },
          "proxyConfiguration": {
            "title": "Proxy (fallback for ESMA and EIOPA)",
            "type": "object",
            "description": "ESMA and EIOPA reject direct requests from cloud IPs. The Actor always tries the source directly first and, only when it is refused, repeats the request through this proxy. Default: Apify Residential, Germany. Proxy traffic is included in the Actor price; only the EIOPA download (about 58 MB) is charged as one <code>insurance-register-download</code> event ($0.10) per run that needs it. The EBA register is always fetched directly. If you turn the proxy off, ESMA and EIOPA rows are not available (the run finishes as <code>completed_partial</code>).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "DE"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}