Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIGLEIF

    gleif.search

    Legal entities in the Global LEI Index by name, national register number, ISIN or BIC, in a country: LEI, legal name, addresses, register and number, status.

    Id
    gleif.search
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/gleif.search/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of gleif.search
    FieldTypeDescription
    namestringWords of the entity's legal or other names, e.g. siemens.Limit: at least 2 characters, at most 200 characters.
    registry_numberstringIts number in its national register, as GLEIF holds it, e.g. HRB 6684. With country, the LEI of a company whose register number you know.Limit: at least 1 characters, at most 100 characters.
    isinstringAn ISIN the entity issued, e.g. US0378331005.
    bicstringA SWIFT BIC of the entity, e.g. DEUTDEFFXXX.
    countrystringOnly entities whose legal address is in this country, as two letters, e.g. DE.
    status"active" | "any"active: entities that exist; any: inactive ones too.Default: "active".
    max_resultsintegerEntities a page, at most 200.Limit: 1 to 200. Default: 25.
    pageintegerThe page of results, from 1.Limit: 1 to 100. Default: 1.

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of gleif.search
    FieldTypeNotes
    leistringThe entity's Legal Entity Identifier, 20 characters, e.g. 529900QBVWXMWANH7H45.
    urlstringThe entity's record on GLEIF's search.
    legal_namestringThe entity's legal name, as filed.
    other_namesarray of stringIts other names: trading, previous and transliterated names.
    legal_form_codestring or nullIts legal form, as an ISO 20275 code (ELF), e.g. 6QQB; or the form in words where it has no code.
    categorystring or nullGLEIF's category of the entity, e.g. GENERAL, BRANCH, FUND.
    statusstring or nullWhether the entity exists: ACTIVE or INACTIVE.
    jurisdictionstring or nullThe jurisdiction it is formed under, e.g. DE or US-DE.
    legal_addressobject or nullIts legal address.
    lines (in legal_address)array of stringThe street lines, as filed.
    city (in legal_address)string or nullThe city.
    region (in legal_address)string or nullThe region, as an ISO 3166-2 code where one was filed, e.g. US-DE.
    postal_code (in legal_address)string or nullThe postal code.
    country (in legal_address)string or nullThe country, as two letters, e.g. DE.
    headquarters_addressobject or nullThe address of its headquarters.
    lines (in headquarters_address)array of stringThe street lines, as filed.
    city (in headquarters_address)string or nullThe city.
    region (in headquarters_address)string or nullThe region, as an ISO 3166-2 code where one was filed, e.g. US-DE.
    postal_code (in headquarters_address)string or nullThe postal code.
    country (in headquarters_address)string or nullThe country, as two letters, e.g. DE.
    registration_authority_idstring or nullThe register it is filed in, as GLEIF's code of registration authorities, e.g. RA000304.
    registry_numberstring or nullIts number in that register, e.g. HRB 237558.
    registration_statusstring or nullThe state of the LEI itself, e.g. ISSUED, LAPSED, RETIRED.
    corroboration_levelstring or nullHow far the issuer checked the data, e.g. FULLY_CORROBORATED.
    created_datestring or nullThe day the entity was formed, YYYY-MM-DD, where filed.
    initial_registration_datestring or nullThe day the LEI was issued, YYYY-MM-DD.
    last_update_datestring or nullThe day the record last changed, YYYY-MM-DD.
    next_renewal_datestring or nullThe day the LEI is due for renewal, YYYY-MM-DD.
    managing_loustring or nullThe LEI of the issuer that manages the record.
    successor_leistring or nullThe LEI of the entity that succeeded it, for one that merged or was absorbed.
    bicsarray of stringThe SWIFT BICs mapped to the entity.
    opencorporates_idstring or nullThe entity's id on OpenCorporates, as GLEIF maps it, e.g. us_de/4348344.
    fetched_atstring (date-time)When GLEIF was asked, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/gleif.search/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"name":"siemens","country":"DE","max_results":5}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("gleif.search", {
        "name": "siemens",
        "country": "DE",
        "max_results": 5,
    })
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("gleif.search", {
      name: "siemens",
      country: "DE",
      max_results: 5,
    });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "gleif.search", map[string]any{"name": "siemens", "country": "DE", "max_results": 5})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("gleif.search", Map.of("name", "siemens", "country", "DE", "max_results", 5));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run gleif.search --input name=siemens --input country=DE --input max_results=5

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "name": "siemens",
        "country": "DE",
        "max_results": 5
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "gleif.search",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "name": "siemens",
        "country": "DE",
        "max_results": 5
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "lei": "5299008BFMZJMZHC5G85",
          "url": "https://search.gleif.org/#/record/5299008BFMZJMZHC5G85",
          "legal_name": "Siemens-Fonds Siemens-Rente",
          "other_names": [],
          "legal_form_code": "Sondervermögen nach deutschem Recht (KAGB)",
          "category": "FUND",
          "status": "ACTIVE",
          "jurisdiction": "DE",
          "legal_address": {
            "lines": [
              "Otto-Hahn-Ring 6"
            ],
            "city": "München",
            "region": "DE-BY",
            "postal_code": "81739",
            "country": "DE"
          },
          "headquarters_address": {
            "lines": [],
            "city": "München",
            "region": "DE-BY",
            "postal_code": "81739",
            "country": "DE"
          },
          "registration_authority_id": "RA000373",
          "registry_number": "70132449",
          "registration_status": "ISSUED",
          "corroboration_level": "FULLY_CORROBORATED",
          "created_date": "2006-09-12",
          "initial_registration_date": "2013-09-27",
          "last_update_date": "2026-07-30",
          "next_renewal_date": "2027-09-26",
          "managing_lou": "5299000J2N45DDNE4Y28",
          "successor_lei": null,
          "bics": [],
          "opencorporates_id": null,
          "fetched_at": "2026-11-24T22:35:23.596342Z"
        }
      ],
      "next_cursor": null
    }

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the GLEIF scrapers are in their own section there.