{
  "openapi": "3.0.1",
  "info": {
    "title": "GLEIF LEI Lookup – Legal Entity Identifier & New LEI Companies",
    "description": "Look up Legal Entity Identifiers (LEI) by code, company name or registration number, or get newly issued LEIs by country and date: legal & HQ address, status, renewal date, legal form, LOU, BIC, parent companies. Official GLEIF API (CC0). $1 per 1,000 records.",
    "version": "0.1",
    "x-build-id": "Q2cxKtGkztG6xh566"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~gleif-lei-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-gleif-lei-search",
        "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/gazidev~gleif-lei-search/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-gleif-lei-search",
        "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/gazidev~gleif-lei-search/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-gleif-lei-search",
        "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": {
          "countries": {
            "title": "Countries (legal address)",
            "type": "array",
            "description": "2-letter ISO country codes of the entity's legal address, e.g. `DE`, `US`, `GB`, `FR`, `LU`, `IE`. Used by the new-LEI search and as a filter for name / registration-number searches. Empty = all countries.",
            "items": {
              "type": "string"
            }
          },
          "registeredWithinDays": {
            "title": "New LEIs: issued in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Main feature: newly issued LEIs (new holding companies, funds, SPVs, subsidiaries...), newest first. Used when no LEI codes, names or registration numbers are given. 0 = no date limit (then pick a country).",
            "default": 7
          },
          "registeredFrom": {
            "title": "New LEIs: issued on/after (date)",
            "type": "string",
            "description": "YYYY-MM-DD. Overrides *last N days*."
          },
          "registeredTo": {
            "title": "New LEIs: issued on/before (date)",
            "type": "string",
            "description": "YYYY-MM-DD. Optional upper bound (inclusive)."
          },
          "leiCodes": {
            "title": "Look up LEI codes",
            "type": "array",
            "description": "Bulk lookup by 20-character LEI, e.g. `HWUPKR0MPOU8FGXBT394` (Apple Inc.). 100 LEIs per API request; unknown codes are listed in the run summary (OUTPUT). Other filters are ignored for LEI lookups.",
            "items": {
              "type": "string"
            }
          },
          "names": {
            "title": "Search by company name",
            "type": "array",
            "description": "Matches legal and other (trading / previous / transliterated) names, best matches first, e.g. `Deutsche Bank`, `Tesla`. Country / status / category filters apply.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerName": {
            "title": "Max results per name",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Top matches returned for each name.",
            "default": 10
          },
          "registrationNumbers": {
            "title": "Search by registration / company number",
            "type": "array",
            "description": "Exact business-register number as filed with GLEIF, e.g. `HRB 89334` (Germany), `806592` (Apple, California). Combine with *Countries* to avoid collisions.",
            "items": {
              "type": "string"
            }
          },
          "entityStatus": {
            "title": "Entity status",
            "enum": [
              "ANY",
              "ACTIVE",
              "INACTIVE"
            ],
            "type": "string",
            "description": "Legal status of the entity itself.",
            "default": "ANY"
          },
          "registrationStatuses": {
            "title": "LEI registration status",
            "type": "array",
            "description": "Empty = any. `Lapsed` = LEI not renewed (renewal outreach leads).",
            "items": {
              "type": "string",
              "enum": [
                "ISSUED",
                "LAPSED",
                "PENDING_TRANSFER",
                "PENDING_ARCHIVAL",
                "RETIRED",
                "MERGED",
                "DUPLICATE",
                "ANNULLED",
                "CANCELLED",
                "TRANSFERRED"
              ],
              "enumTitles": [
                "Issued (current)",
                "Lapsed (not renewed)",
                "Pending transfer",
                "Pending archival",
                "Retired",
                "Merged",
                "Duplicate",
                "Annulled",
                "Cancelled",
                "Transferred"
              ]
            }
          },
          "categories": {
            "title": "Entity category",
            "type": "array",
            "description": "Empty = all categories.",
            "items": {
              "type": "string",
              "enum": [
                "GENERAL",
                "FUND",
                "BRANCH",
                "SOLE_PROPRIETOR",
                "RESIDENT_GOVERNMENT_ENTITY",
                "INTERNATIONAL_ORGANIZATION"
              ],
              "enumTitles": [
                "General (companies)",
                "Fund",
                "Branch",
                "Sole proprietor",
                "Government entity",
                "International organization"
              ]
            }
          },
          "includeParents": {
            "title": "Include direct & ultimate parent",
            "type": "boolean",
            "description": "Adds the direct and ultimate accounting-consolidation parent (LEI, name, country) or the reported exception reason (e.g. NATURAL_PERSONS, NON_CONSOLIDATING). About 1 extra API request per 200 records; no extra charge.",
            "default": false
          },
          "onlyNew": {
            "title": "Only LEIs not returned before (monitoring)",
            "type": "boolean",
            "description": "Skip LEIs returned by earlier runs with the same *State key*. Schedule daily for a feed of newly issued LEIs.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Separate 'already seen' lists for different searches.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max LEI records",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many records in total (0 = all matching). You pay per record saved.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}