{
  "openapi": "3.0.1",
  "info": {
    "title": "GLEIF LEI Register & Ownership — Global Legal Entity Index",
    "description": "The complete global Legal Entity Identifier (LEI) register — ~3.37 million entities across 200+ jurisdictions — with GLEIF's Level 2 relationship data resolved onto every record. Sole-proprietor records are excluded by design.",
    "version": "0.0",
    "x-build-id": "quQp8nqDErf3FiicQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/proofhouse-ventures~gleif-lei-register/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-proofhouse-ventures-gleif-lei-register",
        "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/proofhouse-ventures~gleif-lei-register/runs": {
      "post": {
        "operationId": "runs-sync-proofhouse-ventures-gleif-lei-register",
        "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/proofhouse-ventures~gleif-lei-register/run-sync": {
      "post": {
        "operationId": "run-sync-proofhouse-ventures-gleif-lei-register",
        "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": {
          "country": {
            "title": "Legal-address country (ISO 3166-1 alpha-2, e.g. SG, US, GB, DE)",
            "type": "string",
            "description": "Case-insensitive. Empty = all countries."
          },
          "entityCategory": {
            "title": "Entity category (exact, e.g. GENERAL, FUND, BRANCH, RESIDENT_GOVERNMENT_ENTITY, INTERNATIONAL_ORGANIZATION)",
            "type": "string",
            "description": "Sole-proprietor records are not part of this product. Empty = all shipped categories."
          },
          "entityStatus": {
            "title": "Entity status (exact, e.g. ACTIVE)",
            "type": "string",
            "description": "Empty = all statuses."
          },
          "hasDirectParent": {
            "title": "Has a direct parent (leave unset for all)",
            "type": "boolean",
            "description": "true = only entities with a reported direct consolidation parent; false = only entities without one."
          },
          "hasUltimateParent": {
            "title": "Has an ultimate parent (leave unset for all)",
            "type": "boolean",
            "description": "true = only entities with a reported ultimate consolidation parent; false = only entities without one."
          },
          "jurisdiction": {
            "title": "Legal jurisdiction (exact, e.g. SG, US-DE, GB)",
            "type": "string",
            "description": "GLEIF Legal Jurisdiction code. Empty = all jurisdictions."
          },
          "legalFormCode": {
            "title": "Legal form code (ELF code, exact)",
            "type": "string",
            "description": "ISO 20275 Entity Legal Form code. Empty = all legal forms."
          },
          "limit": {
            "title": "Maximum rows to return",
            "minimum": 1,
            "type": "integer",
            "description": "Caps the number of entity rows written to the dataset.",
            "default": 5000
          },
          "managingLou": {
            "title": "Managing LOU (LEI of the Local Operating Unit, exact)",
            "type": "string",
            "description": "Empty = all LOUs."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "entities",
              "analytics",
              "both"
            ],
            "type": "string",
            "description": "entities: one dataset row per entity matching the filters. analytics: a single ANALYTICS row in the run's key-value store (dataset stays empty). both: entity rows plus the ANALYTICS record in the key-value store.",
            "default": "entities"
          },
          "nameContains": {
            "title": "Legal name contains (case-insensitive substring)",
            "type": "string",
            "description": "Empty = no name filter."
          },
          "registeredFrom": {
            "title": "Initial LEI registration on/after (YYYY-MM-DD)",
            "type": "string",
            "description": "Empty = no lower bound."
          },
          "registeredTo": {
            "title": "Initial LEI registration on/before (YYYY-MM-DD)",
            "type": "string",
            "description": "Empty = no upper bound."
          },
          "registrationAuthorityId": {
            "title": "Registration authority ID (exact, e.g. RA000001)",
            "type": "string",
            "description": "The register the entity is filed with (GLEIF registration-authority list). Empty = all authorities."
          },
          "registrationStatus": {
            "title": "Registration status (exact, e.g. ISSUED, LAPSED)",
            "type": "string",
            "description": "Empty = all statuses."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}