# P0 Agent Economy Index — Company LEI Lookup

> P0 Agent Economy Index — Company LEI Lookup is a paid API for AI agents from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-30).

Look up a company's Legal Entity Identifier (LEI) record from the GLEIF Global LEI Index by LEI code or company name, returning registration status, legal address, parent relationships, and mapped SWIFT BICs.

## Facts

- Endpoint: GET https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/company/lei?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/p0-agent-economy-index-company-lei-lookup-c11af9ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IJR5WocZa8ZU_QPrG2nNb

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability p0-agent-economy-index-company-lei-lookup-c11af9ca
```

Example prompt: Can you look up the legal entity details for Apple Inc. in the US using the GLEIF registry — I need their LEI, registration status, legal address, and any SWIFT BICs linked to them?

## When to prefer this

Use this endpoint when you need authoritative legal entity data from the GLEIF Global LEI Index — specifically LEI resolution, entity status, corporate hierarchy (parent/ultimate parent), legal address, and SWIFT BIC mapping. Prefer it over commercial KYB data providers when GLEIF-sourced, CC0-licensed data is sufficient, or when you already have a LEI code and need to resolve it to a full record. Not suitable for credit checks, sanctions screening, or L402-gated services.

## Known failure modes

- Invalid LEI format (not 20 alphanumeric chars) returns a validation error
- Company name shorter than 2 or longer than 100 characters rejected
- No matches found for name search returns empty matches array
- GLEIF upstream unavailable causes service error
- Neither lei nor name provided results in a bad request error
- Country code not a valid 2-letter ISO code returns validation error

## How this service works

An open index of the machine-to-machine (agent) economy. x402 routes: ranked discovery over the live x402 service market, every indexed service scored by real 30-day calls and paying-wallet bounds, with a receipt naming the snapshot hash and scoring revision. /economy routes, for Tempo MPP, Virtuals ACP, Olas, Masumi, ERC-8004 agent registries, Solana agent registries, Base agent contracts and MCP servers (Official MCP Registry): each protocol's published figures (agent or server counts, transactions or payment events; payers and USD volume only where the source publishes them: payers for x402 and Tempo MPP, USD volume for x402 and Virtuals ACP), each with its unit, window and source; units differ, so totals are not summed. L402 listings are not covered.

## Output

A JSON record containing the LEI code, legal name, entity status (e.g. ACTIVE), registration status (e.g. ISSUED), legal address (lines, city, region, country, postal code), jurisdiction, legal form code (ISO 20275 ELF), registered-as number, creation date, direct and ultimate parent relationships (or reporting exceptions), mapped SWIFT BICs, other historical names, and data provenance fields (source, as_of timestamp, cached flag, attribution).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "lei": {
       "type": "string",
       "pattern": "^[A-Za-z0-9]{18}[0-9]{2}$",
       "description": "20-character Legal Entity Identifier (ISO 17442). Give lei or name."
      },
      "name": {
       "type": "string",
       "maxLength": 100,
       "minLength": 2,
       "description": "Company name to search (2-100 characters); returns up to 10 ranked matches. Give lei or name."
      },
      "country": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$",
       "description": "Optional 2-letter ISO country of the legal address to narrow a name search, e.g. DE."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "mode",
      "as_of",
      "source",
      "source_url",
      "attribution"
     ],
     "properties": {
      "bic": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       },
       "description": "SWIFT BICs mapped to this LEI"
      },
      "lei": {
       "type": "string"
      },
      "mode": {
       "type": "string",
       "description": "lei (one record) or name (matches list)"
      },
      "note": {
       "type": "string"
      },
      "as_of": {
       "type": "string",
       "description": "when GLEIF was read (ISO time)"
      },
      "count": {
       "type": "integer"
      },
      "query": {
       "type": "string"
      },
      "cached": {
       "type": "boolean"
      },
      "source": {
       "type": "string"
      },
      "country": {
       "type": [
        "string",
        "null"
       ]
      },
      "matches": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "lei": {
          "type": "string"
         },
         "city": {
          "type": [
           "string",
           "null"
          ]
         }
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bic": [
   "APLEUS66XXX"
  ],
  "lei": "HWUPKR0MPOU8FGXBT394",
  "mode": "lei",
  "note": "Registry data exactly as GLEIF publishes it; legal_form_code is the ISO 20275 ELF code. Parents are the relationships reported to GLEIF (reporting_exception = the entity reported why none is given). Not legal advice or a credit check.",
  "as_of": "2026-10-25T09:20:00.000Z",
  "cached": false,
  "source": "GLEIF Global LEI Index",
  "category": "GENERAL",
  "bic_notice": "SWIFT (c) and database rights. All rights reserved. This Mapping Table has been developed by SWIFT. Any use of the Mapping Table, in whole or in part, is subject to the BIC/LEI Mapping Table License Agreement as published with the Mapping Table available on GLEIF's website. The Mapping Table is updated monthly. For the latest BIC information and updates, always refer to www.swift.com/bic.",
  "legal_name": "Apple Inc.",
  "source_url": "https://search.gleif.org/",
  "attribution": "LEI reference data: GLEIF (Global Legal Entity Identifier Foundation), api.gleif.org, CC0 1.0. This service is not provided, supported or endorsed by GLEIF or any LOU.",
  "other_names": [
   {
    "name": "Apple Computer, Inc.",
    "type": "PREVIOUS_LEGAL_NAME"
   }
  ],
  "jurisdiction": "US-CA",
  "registration": {
   "status": "ISSUED",
   "managing_lou": "5493001KJTIIGC8Y1R12",
   "last_update_date": "2026-03-03",
   "next_renewal_date": "2027-03-08",
   "corroboration_level": "FULLY_CORROBORATED",
   "initial_registration_date": "2012-06-06"
  },
  "creation_date": "1977-01-03",
  "direct_parent": {
   "lei": null,
   "reason": "NATURAL_PERSONS",
   "country": null,
   "legal_name": null,
   "relationship": "reporting_exception"
  },
  "entity_status": "ACTIVE",
  "legal_address": {
   "city": "Glendale",
   "lines": [
    "C/O C T Corporation System",
    "330 N. Brand Blvd",
    "Suite 700"
   ],
   "region": "US-CA",
   "country": "US",
   "postal_code": "91203"
  },
  "registered_as": "806592",
  "legal_form_code": "H1UM",
  "ultimate_parent": {
   "lei": null,
   "reason": "NATURAL_PERSONS",
   "country": null,
   "legal_name": null,
   "relationship": "reporting_exception"
  },
  "golden_copy_date": "2026-10-25",
  "legal_form_other": null,
  "successor_entities": [],
  "headquarters_address": {
   "city": "Cupertino",
   "lines": [
    "One Apple Park Way"
   ],
   "region": "US-CA",
   "country": "US",
   "postal_code": "95014"
  },
  "registration_authority_id": "RA00059
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/p0-agent-economy-index-company-lei-lookup-c11af9ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev](https://www.zero.xyz/host/x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/llms.txt)
