{
  "openapi": "3.0.1",
  "info": {
    "title": "LEI Lookup & Company Search (GLEIF)",
    "description": "Look up companies in the official GLEIF LEI database by LEI, ISIN, BIC, company/VAT number or name, or search all LEIs by country, status and renewal date. Parent companies included. $2 per 1,000 records.",
    "version": "0.1",
    "x-build-id": "2NDDhwVh5NuSCDL2G"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/henri_dewitte~gleif-lei-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-henri_dewitte-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/henri_dewitte~gleif-lei-lookup/runs": {
      "post": {
        "operationId": "runs-sync-henri_dewitte-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/henri_dewitte~gleif-lei-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-henri_dewitte-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": {
          "mode": {
            "title": "What do you want?",
            "enum": [
              "lookup",
              "search"
            ],
            "type": "string",
            "description": "\"Look up a list\" = enter LEIs, ISINs, BICs, company numbers or names. \"Search with filters\" = all LEIs that match a country, status, renewal date ...",
            "default": "lookup"
          },
          "queries": {
            "title": "LEIs, ISINs, BICs, company numbers or names",
            "type": "array",
            "description": "One per line. The type is detected automatically: LEI (529900D6BF99LW9R2E68), ISIN (US0378331005), BIC (GEBABEBBXXX), company or VAT number (BE0202239951, HRB 719915) or company name (Proximus). Force a type with a prefix: lei:, isin:, bic:, reg: or name:. Up to 200 LEIs are checked per request.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "2-letter country codes of the legal address, e.g. BE, NL, DE. In \"Look up a list\" mode this limits name and number searches.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxMatchesPerName": {
            "title": "Matches per name",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "When searching by company name: how many matches to return (best first).",
            "default": 1
          },
          "nameFilter": {
            "title": "Name contains",
            "type": "string",
            "description": "Legal name filter. Use * as a wildcard, e.g. *bank* or *bakkerij*."
          },
          "registrationStatuses": {
            "title": "LEI status",
            "type": "array",
            "description": "ISSUED = valid, LAPSED = not renewed, RETIRED, MERGED, ANNULLED ... Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "ISSUED",
                "LAPSED",
                "PENDING_TRANSFER",
                "PENDING_ARCHIVAL",
                "RETIRED",
                "MERGED",
                "ANNULLED",
                "DUPLICATE",
                "CANCELLED",
                "TRANSFERRED"
              ]
            },
            "default": []
          },
          "entityStatus": {
            "title": "Company status",
            "enum": [
              "ANY",
              "ACTIVE",
              "INACTIVE"
            ],
            "type": "string",
            "description": "Does the legal entity still exist?",
            "default": "ANY"
          },
          "categories": {
            "title": "Entity category",
            "type": "array",
            "description": "GENERAL (companies), FUND, BRANCH ... Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "GENERAL",
                "FUND",
                "BRANCH",
                "SOLE_PROPRIETOR",
                "RESIDENT_GOVERNMENT_ENTITY",
                "INTERNATIONAL_ORGANIZATION"
              ]
            },
            "default": []
          },
          "renewalWithinDays": {
            "title": "Renewal due within X days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only LEIs whose next renewal date is between today and X days from now. Great on a schedule. Overrides the renewal dates below."
          },
          "renewalFrom": {
            "title": "Renewal date from",
            "type": "string",
            "description": "Next renewal date on or after (YYYY-MM-DD)."
          },
          "renewalTo": {
            "title": "Renewal date to",
            "type": "string",
            "description": "Next renewal date on or before (YYYY-MM-DD)."
          },
          "registeredWithinDays": {
            "title": "First registered in the last X days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only LEIs issued in the last X days (new companies on the financial markets). Overrides the registration dates below."
          },
          "registeredFrom": {
            "title": "First registered from",
            "type": "string",
            "description": "LEI first issued on or after (YYYY-MM-DD)."
          },
          "registeredTo": {
            "title": "First registered to",
            "type": "string",
            "description": "LEI first issued on or before (YYYY-MM-DD)."
          },
          "includeParents": {
            "title": "Include parent companies",
            "type": "boolean",
            "description": "Add the LEI, name and country of the direct and ultimate parent company.",
            "default": true
          },
          "includeSoleProprietors": {
            "title": "Include sole proprietors",
            "type": "boolean",
            "description": "Sole proprietors are natural persons. They are skipped by default (GDPR). Only turn this on if you have a legal reason to process their data.",
            "default": false
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of records this run saves (and you pay for).",
            "default": 1000
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since the last run",
            "type": "boolean",
            "description": "Remember which LEIs you already got and only return new ones. Schedule it to get e.g. every new LEI in your country.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}