{
  "openapi": "3.0.1",
  "info": {
    "title": "GLEIF LEI Lookup & New LEI Feed with Parent Hierarchy",
    "description": "Search the GLEIF Global LEI Index or get newly issued and changed LEIs by country, category and status. Parent and subsidiary hierarchy, legal form, registry ids and delta mode for daily alerts. Official free API.",
    "version": "1.0",
    "x-build-id": "Sd4flZ9zFinc6lCYY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datacrate~gleif-lei-registry-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datacrate-gleif-lei-registry-feed",
        "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/datacrate~gleif-lei-registry-feed/runs": {
      "post": {
        "operationId": "runs-sync-datacrate-gleif-lei-registry-feed",
        "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/datacrate~gleif-lei-registry-feed/run-sync": {
      "post": {
        "operationId": "run-sync-datacrate-gleif-lei-registry-feed",
        "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": {
          "search": {
            "title": "Legal name contains",
            "type": "string",
            "description": "Optional. Matches the legal name, e.g. Tesla, Deutsche Bank. Leave empty to use the filters below."
          },
          "leis": {
            "title": "Look up specific LEI codes",
            "type": "array",
            "description": "Optional list of 20-character LEI codes to fetch directly, e.g. HWUPKR0MPOU8FGXBT394.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "childrenOfLei": {
            "title": "List subsidiaries of this LEI",
            "type": "string",
            "description": "Optional. A parent company's LEI. Returns its direct subsidiaries (or all ultimate subsidiaries, see below)."
          },
          "hierarchy": {
            "title": "Subsidiary level",
            "enum": [
              "direct",
              "ultimate"
            ],
            "type": "string",
            "description": "Used with 'List subsidiaries of this LEI'.",
            "default": "direct"
          },
          "country": {
            "title": "Country of legal address",
            "type": "string",
            "description": "Optional two-letter ISO country code, e.g. US, GB, DE, IN."
          },
          "category": {
            "title": "Entity category",
            "enum": [
              "",
              "GENERAL",
              "FUND",
              "BRANCH",
              "INTERNATIONAL_ORGANIZATION"
            ],
            "type": "string",
            "description": "Optional. Funds and branches are separate categories from ordinary companies. Sole proprietors are always skipped unless you turn them on below.",
            "default": ""
          },
          "entityStatus": {
            "title": "Entity status",
            "enum": [
              "",
              "ACTIVE",
              "INACTIVE"
            ],
            "type": "string",
            "description": "Optional.",
            "default": ""
          },
          "registrationStatus": {
            "title": "LEI registration status",
            "enum": [
              "",
              "ISSUED",
              "LAPSED",
              "MERGED",
              "RETIRED",
              "ANNULLED"
            ],
            "type": "string",
            "description": "ISSUED = in good standing, LAPSED = renewal overdue (useful lead and risk signal).",
            "default": ""
          },
          "registeredWithinDays": {
            "title": "Newly registered in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Returns LEIs first issued within this window, newest first. Leave empty: defaults to 7 days when no other filter is set, otherwise off. 0 = off."
          },
          "updatedWithinDays": {
            "title": "Updated in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Returns LEI records changed (renewals, address, name or status changes) within this window. 0 = off.",
            "default": 0
          },
          "includeParents": {
            "title": "Add parent company names",
            "type": "boolean",
            "description": "Looks up direct and ultimate parent LEI and name. Slower (about one extra request per parent, the API allows 60 per minute).",
            "default": false
          },
          "onlyWithParent": {
            "title": "Only entities with a reported parent",
            "type": "boolean",
            "description": "Skip entities that report no direct or ultimate parent.",
            "default": false
          },
          "includeSoleProprietors": {
            "title": "Include sole proprietors",
            "type": "boolean",
            "description": "Sole proprietor LEIs can carry a person's name, so they are skipped by default.",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Upper bound on rows (and on cost).",
            "default": 25
          },
          "onlyNewSinceLastRun": {
            "title": "Delta mode (only new or changed since last run)",
            "type": "boolean",
            "description": "Skip LEIs already returned by an earlier run with the same state name and unchanged since. The first run returns everything and sets the baseline.",
            "default": false
          },
          "stateKey": {
            "title": "State name (delta mode)",
            "type": "string",
            "description": "Use different names to keep separate watchlists.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}