{
  "openapi": "3.0.1",
  "info": {
    "title": "GLEIF LEI Lookup - verify Legal Entity Identifiers, parents",
    "description": "Verify LEI codes in bulk from official GLEIF data: status, renewal date, legal form, addresses, parents. Search by name or SIREN. $1.50 per 1,000 found.",
    "version": "1.0",
    "x-build-id": "Nv5ZeO4wbURMucpYP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/edgarfinance~gleif-lei-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-edgarfinance-gleif-lei-lookup",
        "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/edgarfinance~gleif-lei-lookup/runs": {
      "post": {
        "operationId": "runs-sync-edgarfinance-gleif-lei-lookup",
        "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/edgarfinance~gleif-lei-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-edgarfinance-gleif-lei-lookup",
        "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": "LEI codes to verify",
            "type": "array",
            "description": "Legal Entity Identifiers (ISO 17442): 20 characters, 18 letters or digits then 2 check digits. Spaces and dashes are ignored and the check digits are verified before any request. Up to 100 LEIs are looked up per request, so long lists are fast. Example: [\"969500KMUQ2B6CBAF162\"].",
            "items": {
              "type": "string"
            }
          },
          "registrationNumbers": {
            "title": "Company registration numbers",
            "type": "array",
            "description": "Numbers of the entity in its national business register (for example French SIREN 552032534, UK company number 00102498, German HRB number), written as the register writes them. Exact match on the GLEIF field \"registeredAs\". Combine with \"country\" to avoid matches in other countries.",
            "items": {
              "type": "string"
            }
          },
          "names": {
            "title": "Legal names to search",
            "type": "array",
            "description": "Names of legal entities. GLEIF finds records whose name contains these words (not a fuzzy match), best match first. Combine with \"country\" and \"Matches per search\" to control the results. Example: [\"Danone\"].",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country (ISO alpha-2)",
            "pattern": "^([A-Za-z]{2})?$",
            "type": "string",
            "description": "Optional ISO 3166-1 alpha-2 code of the legal address country, for example FR, DE, US. Applies to name and registration number searches. If no LEI, registration number or name is given, the Actor lists the legal entities of this country (up to \"Maximum results\")."
          },
          "nameMatch": {
            "title": "Names searched in",
            "enum": [
              "legal_name",
              "all_names"
            ],
            "type": "string",
            "description": "\"legal_name\": only the official legal name. \"all_names\": the legal name plus other names (trading names, previous names, transliterations).",
            "default": "legal_name"
          },
          "maxMatchesPerSearch": {
            "title": "Matches per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "For names and registration numbers: how many best matches to return per input (each match found is one billed result). LEI lookups always return one row.",
            "default": 3
          },
          "entityStatus": {
            "title": "Entity status",
            "enum": [
              "any",
              "active",
              "inactive"
            ],
            "type": "string",
            "description": "For searches and country listings: \"active\" keeps entities that legally exist, \"inactive\" keeps dissolved or merged entities, \"any\" keeps both. LEI lookups are not filtered.",
            "default": "any"
          },
          "registrationStatuses": {
            "title": "LEI registration statuses",
            "type": "array",
            "description": "For searches and country listings: keep only these LEI statuses. ISSUED = valid and renewed; LAPSED = not renewed in time. Several values are combined with OR. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "ISSUED",
                "LAPSED",
                "PENDING_TRANSFER",
                "PENDING_ARCHIVAL",
                "RETIRED",
                "MERGED",
                "ANNULLED",
                "DUPLICATE"
              ],
              "enumTitles": [
                "ISSUED: valid",
                "LAPSED: not renewed in time",
                "PENDING_TRANSFER",
                "PENDING_ARCHIVAL",
                "RETIRED",
                "MERGED",
                "ANNULLED: issued in error",
                "DUPLICATE"
              ]
            }
          },
          "entityCategories": {
            "title": "Entity categories",
            "type": "array",
            "description": "For searches and country listings: keep only these GLEIF categories. Several values are combined with OR. Leave empty for all legal entity categories. Sole proprietors are always excluded (privacy rule).",
            "items": {
              "type": "string",
              "enum": [
                "GENERAL",
                "BRANCH",
                "FUND",
                "RESIDENT_GOVERNMENT_ENTITY",
                "INTERNATIONAL_ORGANIZATION"
              ],
              "enumTitles": [
                "GENERAL: companies and other legal entities",
                "BRANCH: branches of foreign entities",
                "FUND: investment funds",
                "RESIDENT_GOVERNMENT_ENTITY: public bodies",
                "INTERNATIONAL_ORGANIZATION"
              ]
            }
          },
          "includeParents": {
            "title": "Include direct and ultimate parents",
            "type": "boolean",
            "description": "Add the direct and ultimate accounting consolidation parents (LEI, name, country) when the entity reports them. Costs up to 2 extra requests per entity: turn off for faster runs.",
            "default": true
          },
          "includeExceptionReasons": {
            "title": "Include reasons for missing parents",
            "type": "boolean",
            "description": "When an entity declares a reporting exception instead of a parent, fetch the reason (for example NATURAL_PERSONS, NON_CONSOLIDATING, NO_KNOWN_PERSON). One extra request per exception.",
            "default": false
          },
          "includeLegalFormNames": {
            "title": "Include legal form names",
            "type": "boolean",
            "description": "Translate the ISO 20275 legal form code into its local name (for example K65D = SA à conseil d'administration). One request per distinct code, cached for the run.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many found entities (billed results). Rows not found, invalid or excluded do not count. Example: 1000.",
            "default": 1000
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Politeness limit towards the GLEIF API, whose announced limit is 60 requests per minute per user. Lower it if you run several copies at the same time.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}