{
  "openapi": "3.0.1",
  "info": {
    "title": "GLEIF LEI Lookup: Company Ownership, Parents & Subsidiaries",
    "description": "Find the LEI of any company (name, LEI, registration number, ISIN, BIC) with its direct and ultimate parent, list every subsidiary of a group, or search 3.4M entities by country, city, LEI issue or renewal date. Official GLEIF data (CC0).",
    "version": "0.1",
    "x-build-id": "lIfeNnsTf8kJCclKw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/frenchdatalab~lei-lookup-corporate-ownership/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-frenchdatalab-lei-lookup-corporate-ownership",
        "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/frenchdatalab~lei-lookup-corporate-ownership/runs": {
      "post": {
        "operationId": "runs-sync-frenchdatalab-lei-lookup-corporate-ownership",
        "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/frenchdatalab~lei-lookup-corporate-ownership/run-sync": {
      "post": {
        "operationId": "run-sync-frenchdatalab-lei-lookup-corporate-ownership",
        "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": {
          "companyNames": {
            "title": "Company names",
            "type": "array",
            "description": "Find the LEI of each company. Legal-form words (SA, SE, GmbH, Inc., Ltd…) and accents are handled; each result has a matchType (exact / close / partial) and a matchScore. Companies with the same name are listed in otherMatches.",
            "items": {
              "type": "string"
            }
          },
          "leis": {
            "title": "LEI codes",
            "type": "array",
            "description": "20-character Legal Entity Identifiers, e.g. 529900S21EQ1BO4ESM68. Check digits are verified: typos are reported, not charged.",
            "items": {
              "type": "string"
            }
          },
          "registrationNumbers": {
            "title": "National registration numbers",
            "type": "array",
            "description": "Company register numbers as used in each country: French SIREN or SIRET (542051180), German HRB 42243, UK Companies House number, etc.",
            "items": {
              "type": "string"
            }
          },
          "isins": {
            "title": "ISINs",
            "type": "array",
            "description": "Securities identifiers (e.g. FR0000120271): returns the issuer.",
            "items": {
              "type": "string"
            }
          },
          "bics": {
            "title": "BIC / SWIFT codes",
            "type": "array",
            "description": "8 or 11 characters, e.g. BNPAFRPP: returns the bank.",
            "items": {
              "type": "string"
            }
          },
          "groupParentLeis": {
            "title": "Parent company LEIs",
            "type": "array",
            "description": "Lists every subsidiary of these companies, level by level (e.g. 529900S21EQ1BO4ESM68 = TotalEnergies SE). The search filters below (countries, cities, active only…) narrow the subsidiaries returned.",
            "items": {
              "type": "string"
            }
          },
          "directSubsidiariesOnly": {
            "title": "Direct subsidiaries only",
            "type": "boolean",
            "description": "Only the first level (entities whose direct parent is the company).",
            "default": false
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "2-letter ISO codes of the legal address: FR, DE, GB, US, LU, IE… In look-up mode, used to choose between companies with the same name.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Exact city names (case-insensitive), e.g. \"Paris\", \"Frankfurt am Main\", \"London\".",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "Exact postal codes, e.g. \"75008\", \"60311\".",
            "items": {
              "type": "string"
            }
          },
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Every word must appear in the legal name, e.g. \"capital partners\"."
          },
          "categories": {
            "title": "Entity categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Leave empty for all except sole proprietors (natural persons, only returned when selected here). GENERAL = companies and other legal entities.",
            "items": {
              "type": "string",
              "enum": [
                "GENERAL",
                "FUND",
                "BRANCH",
                "SOLE_PROPRIETOR",
                "RESIDENT_GOVERNMENT_ENTITY",
                "INTERNATIONAL_ORGANIZATION"
              ],
              "enumTitles": [
                "Companies & other legal entities",
                "Funds",
                "Branches",
                "Sole proprietors",
                "Government entities",
                "International organisations"
              ]
            }
          },
          "legalForms": {
            "title": "Legal forms (ELF codes)",
            "type": "array",
            "description": "ISO 20275 codes, e.g. 6CHY (French SAS), 2HBR (German GmbH), H0PO (UK private limited company), XTIQ (Delaware corporation). Full list: gleif.org > Entity Legal Forms.",
            "items": {
              "type": "string"
            }
          },
          "leiStatuses": {
            "title": "LEI registration statuses",
            "uniqueItems": true,
            "type": "array",
            "description": "Leave empty for all. LAPSED = the entity did not renew its LEI on time (its data is no longer re-verified each year).",
            "items": {
              "type": "string",
              "enum": [
                "ISSUED",
                "LAPSED",
                "PENDING_TRANSFER",
                "PENDING_ARCHIVAL",
                "RETIRED",
                "MERGED",
                "ANNULLED",
                "DUPLICATE"
              ],
              "enumTitles": [
                "Issued (valid)",
                "Lapsed (not renewed)",
                "Pending transfer",
                "Pending archival",
                "Retired",
                "Merged",
                "Annulled",
                "Duplicate"
              ]
            }
          },
          "activeOnly": {
            "title": "Active entities only",
            "type": "boolean",
            "description": "Exclude entities that no longer exist (dissolved, merged…).",
            "default": true
          },
          "registeredWithinDays": {
            "title": "LEI issued in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "New LEIs = newly created or newly regulated companies, investment funds, SPVs. Great for scheduled runs (e.g. 7 = every week)."
          },
          "registeredSince": {
            "title": "LEI issued on or after",
            "type": "string",
            "description": "YYYY-MM-DD"
          },
          "registeredUntil": {
            "title": "LEI issued on or before",
            "type": "string",
            "description": "YYYY-MM-DD"
          },
          "renewalDueWithinDays": {
            "title": "LEI renewal due within N days",
            "minimum": 0,
            "type": "integer",
            "description": "Entities whose LEI must be renewed between today and today + N days (sorted by renewal date)."
          },
          "parentCompaniesOnly": {
            "title": "Group parents only",
            "type": "boolean",
            "description": "Only entities that have at least one subsidiary.",
            "default": false
          },
          "includeSubsidiaryCounts": {
            "title": "Count subsidiaries",
            "type": "boolean",
            "description": "Adds directSubsidiaries and groupSubsidiaries to entities that have subsidiaries (one or two extra API calls each: slower).",
            "default": false
          },
          "includeIsins": {
            "title": "Add ISINs",
            "type": "boolean",
            "description": "Adds the securities (ISINs) issued by each entity: up to 100 codes + the total count (one extra API call per entity: slower).",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Maximum number of entities returned (charged).",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}