{
  "openapi": "3.0.1",
  "info": {
    "title": "GLEIF LEI Scraper - Bulk LEI Lookup, Company Search & Parents",
    "description": "For KYC, AML and counterparty onboarding: look up LEIs in bulk or search the official GLEIF register, which held 3,426,628 LEIs on 2026-09-11. Every row carries the legal address, legal form, renewal status and the direct and ultimate parent. Up to 10,000 per run. No API key.",
    "version": "0.1",
    "x-build-id": "ztf1q2mMuYwEbOoTR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~gleif-lei-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-gleif-lei-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/neverempty~gleif-lei-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-gleif-lei-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/neverempty~gleif-lei-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-gleif-lei-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": {
          "leis": {
            "title": "LEIs to look up",
            "type": "array",
            "description": "Legal Entity Identifiers to look up in bulk (20 characters, for example HWUPKR0MPOU8FGXBT394). Up to 10,000 per run, read 200 at a time; any beyond that are not looked up and are counted in one row. Each LEI is checked against its ISO 17442 check digits before it is sent: GLEIF silently leaves out an LEI it does not know, so a mistyped one is reported as its own row instead. When LEIs are given, the search fields below are not used.",
            "items": {
              "type": "string"
            }
          },
          "name": {
            "title": "Company name (search)",
            "type": "string",
            "description": "Words in the company name, for example Siemens or deutsche bank. GLEIF matches whole words only and every word must appear, in any order, ignoring case and accents: 'insur' does not find 'Insurance'. A comma is sent as a space, because GLEIF would read it as 'or'."
          },
          "nameScope": {
            "title": "Search in",
            "enum": [
              "all-names",
              "legal-name"
            ],
            "type": "string",
            "description": "Any name searches the legal name, other names and transliterated names. Legal name searches the registered legal name only.",
            "default": "all-names"
          },
          "countries": {
            "title": "Countries (legal address)",
            "type": "array",
            "description": "Two-letter ISO 3166 country codes of the legal address, such as DE, US, GB. Several codes mean any of them. A code GLEIF does not know is rejected with a reason rather than sent, because GLEIF would answer it with an empty result.",
            "items": {
              "type": "string"
            }
          },
          "jurisdictions": {
            "title": "Legal jurisdictions",
            "type": "array",
            "description": "Jurisdiction of formation: a country code (DE) or a country and subdivision code (US-DE for Delaware, US-NY, CA-QC). Several codes mean any of them.",
            "items": {
              "type": "string"
            }
          },
          "legalForms": {
            "title": "Legal form codes (ELF)",
            "type": "array",
            "description": "ISO 20275 entity legal form codes, for example 2HBR (German GmbH) or 6QQB (German AG). Several codes mean any of them. Every row carries the code and its name.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Entity categories",
            "type": "array",
            "description": "Any of BRANCH, FUND, SOLE_PROPRIETOR, GENERAL, RESIDENT_GOVERNMENT_ENTITY, INTERNATIONAL_ORGANIZATION.",
            "items": {
              "type": "string"
            }
          },
          "entityStatus": {
            "title": "Entity status",
            "enum": [
              "any",
              "ACTIVE",
              "INACTIVE"
            ],
            "type": "string",
            "description": "Whether the legal entity itself is active or inactive (for example dissolved or merged).",
            "default": "any"
          },
          "registrationStatus": {
            "title": "LEI registration status",
            "type": "array",
            "description": "Any of ISSUED, LAPSED (not renewed on time), RETIRED, MERGED, ANNULLED, DUPLICATE, PENDING_TRANSFER, PENDING_ARCHIVAL.",
            "items": {
              "type": "string"
            }
          },
          "subsidiariesOf": {
            "title": "Subsidiaries of (parent LEI)",
            "type": "string",
            "description": "An LEI, for example W38RGI023J3WT1HWRP32 for Siemens AG. Returns the entities GLEIF lists under it, at the level chosen below."
          },
          "subsidiaryLevel": {
            "title": "Subsidiary level",
            "enum": [
              "ultimate",
              "direct"
            ],
            "type": "string",
            "description": "Ultimate: every entity whose ultimate parent is this LEI; GLEIF lists these only under the top entity of a group (on 2026-09-11: Siemens AG 573, Siemens Healthineers AG 0). Direct: every entity whose direct parent is this LEI (on 2026-09-11: Siemens AG 461, Siemens Healthineers AG 87). Direct cannot be combined with the other search fields, because GLEIF ignores them there. Ignored when no parent LEI is given.",
            "default": "ultimate"
          },
          "registeredFrom": {
            "title": "First registered on or after",
            "type": "string",
            "description": "YYYY-MM-DD (UTC). Finds LEIs issued from this day on, for example newly registered companies."
          },
          "registeredTo": {
            "title": "First registered on or before",
            "type": "string",
            "description": "YYYY-MM-DD (UTC). The whole day is included."
          },
          "renewalFrom": {
            "title": "Next renewal on or after",
            "type": "string",
            "description": "YYYY-MM-DD (UTC). Combine with Next renewal on or before to find LEIs whose renewal falls due in a window."
          },
          "renewalTo": {
            "title": "Next renewal on or before",
            "type": "string",
            "description": "YYYY-MM-DD (UTC). The whole day is included. A date in the past finds LEIs whose renewal is overdue."
          },
          "sort": {
            "title": "Order (search)",
            "enum": [
              "lei",
              "newest",
              "oldest",
              "renewal-soonest"
            ],
            "type": "string",
            "description": "Order of search results. LEI order is GLEIF's own order; newest and oldest use the first registration date; renewal-soonest puts the earliest next renewal date first.",
            "default": "lei"
          },
          "maxResults": {
            "title": "Maximum rows (search)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most LEI records a search returns. Up to 10,000; if more match, a row says how many.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}