{
  "openapi": "3.0.1",
  "info": {
    "title": "GLEIF LEI Scraper",
    "description": "Search the Global LEI Index by company name, LEI code or GLEIF URL. Get legal names, registered and HQ addresses, company register numbers, legal forms, status, renewal dates, BIC codes, and parent and subsidiary links. Official CC0 data from GLEIF; no API key or proxy.",
    "version": "1.0",
    "x-build-id": "ebELo8dV9gRbw3Jiq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/anyxsolutions~gleif-lei-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-anyxsolutions-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/anyxsolutions~gleif-lei-scraper/runs": {
      "post": {
        "operationId": "runs-sync-anyxsolutions-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/anyxsolutions~gleif-lei-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-anyxsolutions-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": {
          "searchTerms": {
            "title": "Company names",
            "type": "array",
            "description": "Company names to search for, for example Siemens or Deutsche Bank. Matches legal names, trading names, previous names and transliterations, best matches first.",
            "items": {
              "type": "string"
            }
          },
          "leis": {
            "title": "LEI codes",
            "type": "array",
            "description": "Legal Entity Identifiers (20 characters) to fetch directly, for example W38RGI023J3WT1HWRP32. Invalid codes are skipped and reported in the log.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "GLEIF URLs",
            "type": "array",
            "description": "GLEIF record URLs, such as https://search.gleif.org/#/record/W38RGI023J3WT1HWRP32, or GLEIF search URLs (…/#/search/simpleSearch=<name>). lei-lookup.com record URLs work too.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Only return entities whose legal address is in these countries, as two-letter ISO codes, for example DE or US. Applies to name searches; with no names, lists every matching entity.",
            "items": {
              "type": "string"
            }
          },
          "legalForms": {
            "title": "Legal forms (ELF codes)",
            "type": "array",
            "description": "Only return entities with these ISO 20275 legal-form codes, for example 6QQB (German Aktiengesellschaft) or 2HBR (German GmbH).",
            "items": {
              "type": "string"
            }
          },
          "entityStatus": {
            "title": "Entity status",
            "enum": [
              "ACTIVE",
              "INACTIVE"
            ],
            "type": "string",
            "description": "Only return active entities, or only entities that have ceased to exist. Leave empty for both."
          },
          "registrationStatuses": {
            "title": "LEI registration status",
            "type": "array",
            "description": "Only return LEIs in these registration states. Issued LEIs are current; lapsed ones were not renewed on time.",
            "items": {
              "type": "string",
              "enum": [
                "ISSUED",
                "LAPSED",
                "PENDING_TRANSFER",
                "PENDING_ARCHIVAL",
                "RETIRED",
                "MERGED",
                "ANNULLED",
                "DUPLICATE"
              ],
              "enumTitles": [
                "Issued",
                "Lapsed",
                "Pending transfer",
                "Pending archival",
                "Retired",
                "Merged",
                "Annulled",
                "Duplicate"
              ]
            }
          },
          "categories": {
            "title": "Entity categories",
            "type": "array",
            "description": "Only return these kinds of entity, for example companies (General) without investment funds or branches.",
            "items": {
              "type": "string",
              "enum": [
                "GENERAL",
                "FUND",
                "BRANCH",
                "SOLE_PROPRIETOR",
                "RESIDENT_GOVERNMENT_ENTITY",
                "INTERNATIONAL_ORGANIZATION"
              ],
              "enumTitles": [
                "General (companies and other legal entities)",
                "Fund",
                "Branch",
                "Sole proprietor",
                "Resident government entity",
                "International organization"
              ]
            }
          },
          "includeRelationships": {
            "title": "Include parents and subsidiaries",
            "type": "boolean",
            "description": "Add each entity's direct and ultimate parent (or the reason none is reported) and how many direct and ultimate subsidiaries hold an LEI. Costs a few extra calls per page.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum entities per search",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of entities to return per company name or search URL. Leave empty to get every match. LEI codes and record URLs always return one entity each."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. The Global LEI Index is public and needs no proxy.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}