{
  "openapi": "3.0.1",
  "info": {
    "title": "GLEIF LEI Records Scraper",
    "description": "Collects Legal Entity Identifier records from the public GLEIF index by search filters or direct LEI code lookup. Each row returns the legal name, registered address, entity and registration statuses, and optional parent and ISIN relationships.",
    "version": "1.0",
    "x-build-id": "lujrcSShkvIyTje8R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~gleif-lei-records-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-gleif-lei-records-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/parseforge~gleif-lei-records-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-gleif-lei-records-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/parseforge~gleif-lei-records-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-gleif-lei-records-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": {
          "maxItems": {
            "title": "Maximum LEI records",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "How many LEI records to collect per run."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "lookup"
            ],
            "type": "string",
            "description": "Search the global index by any combination of filters, or look up a single record by LEI code."
          },
          "query": {
            "title": "Company name or LEI code",
            "type": "string",
            "description": "Free-text query matched across legal name, addresses and former names. Used in Search mode when 'Legal Name' is empty."
          },
          "legalName": {
            "title": "Legal Name (exact)",
            "type": "string",
            "description": "Exact legal-name filter. Overrides the free-text query when supplied. Example: 'GOOGLE LLC'."
          },
          "country": {
            "title": "Country (ISO 3166-1 alpha-2)",
            "type": "string",
            "description": "Filter to records whose registered-address country matches this two-letter code (US, GB, DE, FR, JP, ...). Covers 200+ countries; supply the standard ISO-2 code."
          },
          "jurisdiction": {
            "title": "Jurisdiction Code (ISO 3166-2)",
            "type": "string",
            "description": "Filter by jurisdiction code, e.g. US-DE (Delaware), US-CA (California), GB, DE, FR-75. Country-level codes (US, GB) or sub-national codes (US-DE) both work."
          },
          "entityStatus": {
            "title": "Entity Status",
            "enum": [
              "",
              "ACTIVE",
              "INACTIVE",
              "NULL"
            ],
            "type": "string",
            "description": "Current legal status of the entity."
          },
          "registrationStatus": {
            "title": "Registration Status",
            "enum": [
              "",
              "ISSUED",
              "LAPSED",
              "PENDING_TRANSFER",
              "PENDING_ARCHIVAL",
              "DUPLICATE",
              "ANNULLED",
              "RETIRED",
              "MERGED",
              "TRANSFERRED",
              "PENDING_VALIDATION",
              "CANCELLED"
            ],
            "type": "string",
            "description": "Lifecycle status of the LEI registration itself."
          },
          "entityCategory": {
            "title": "Entity Category",
            "enum": [
              "",
              "GENERAL",
              "FUND",
              "BRANCH",
              "SOLE_PROPRIETOR",
              "RESIDENT_GOVERNMENT_ENTITY",
              "INTERNATIONAL_ORGANIZATION"
            ],
            "type": "string",
            "description": "Type of entity reported in the global index."
          },
          "legalForm": {
            "title": "Legal Form Code (ELF)",
            "type": "string",
            "description": "4-character Entity Legal Form code (ISO 20275). Example: HZEH (US Delaware LLC), R85P (Belgium NV), V9QP (France SAS)."
          },
          "bic": {
            "title": "BIC / SWIFT Code",
            "type": "string",
            "description": "Look up an entity by its 8 or 11-character SWIFT/BIC code (banks and financial institutions)."
          },
          "isin": {
            "title": "ISIN",
            "type": "string",
            "description": "Look up entities that issue the given 12-character ISIN (securities identifier)."
          },
          "leiCode": {
            "title": "LEI Code",
            "type": "string",
            "description": "Required in Lookup mode. The 20-character Legal Entity Identifier (e.g. 7ZW8QJWVPR4P1J1KQY45 for GOOGLE LLC)."
          },
          "fetchRelationships": {
            "title": "Fetch parents & ISINs",
            "type": "boolean",
            "description": "Pull each record's direct parent, ultimate parent, and any issued ISINs (adds extra requests per record).",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}