{
  "id": 21541604,
  "title": "Find companies that just got a Legal Entity Identifier (LEI) with the GLEIF API and Python",
  "url": "https://urgent.news/2026/11/24/find-companies-that-just-got-a-legal-entity-identifier-lei-with-the",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-24T04:22:09.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/veridra/find-companies-that-just-got-a-legal-entity-identifier-lei-with-the-gleif-api-and-python-41m7"
  },
  "original_language": "en",
  "account": "On 20 October 2026, a Python script demonstrated how to utilize the GLEIF API to retrieve newly issued Legal Entity Identifiers (LEI) for companies in Germany and the United Kingdom. The script queried the API for records issued on the previous day, October 19, 2026, and successfully identified 343 LEIs.\n\nThe API response was structured according to the JSON:API format, featuring records within the \"data\" array, each containing the LEI as the identifier, attributes under the \"attributes\" key, and pagination information under \"meta.pagination\". The script focused on extracting specific fields from the entity attributes, such as the legal name, country, category, and LEI.\n\nThe script employed several filters to narrow down the results. Firstly, it excluded records where the legal entity was categorized as a sole proprietor, as these typically represent individuals trading under their own name. Secondly, it specifically targeted entities with the \"GENERAL\" category, which encompassed most traditional legal entities like companies and partnerships, while excluding specialized forms like funds and branches.\n\nThe script utilized the ISO 3166 two-letter country codes to filter records based on the entity's legal address country. It then printed the collected information, which included the LEI, legal name, country, and category for each entity that matched the specified criteria.",
  "summary": "From 17 to 19 October 2026, 156 companies and other legal entities in Germany and the UK received their first Legal Entity Identifier, and 70 of them were German GmbHs. GLEIF publishes every one of those records through a free API, and this guide reads them with plain Python. A Legal Entity Identifier (LEI) is a 20-character code that identifies a legal entity in financial transactions.…",
  "key_points": [
    "Python script retrieves 343 newly issued LEIs on 19 October 2026",
    "API response in JSON:API format with records in \"data\" array",
    "Script filters out sole proprietor entities and non-\"GENERAL\" categories"
  ],
  "editors_take": "Automating the retrieval of specific entity data via the GLEIF API streamlines the monitoring of new corporate registrations across major European markets for researchers and compliance officers.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}