# Card BIN Lookup

> Card BIN Lookup is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Looks up card network metadata (type, scheme, issuing country) from a payment card BIN/IIN prefix

## Facts

- Endpoint: POST https://x402.agentutility.ai/card-bin-lookup
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/card-bin-lookup-c674a756
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3GTTfBG-8WeqBUKBxKQEi

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 card-bin-lookup-c674a756 -d '<json body>'
```

Example prompt: Can you look up the BIN 411111 and tell me whether it's a credit or debit card, which network it's on like Visa or Mastercard, and what country it's issued from?

## When to prefer this

Use this endpoint when you need to classify a payment card by its BIN prefix — especially for fraud checks, routing logic, or checkout UX that needs to display the card brand and type. Prefer this over full card validation services when you only have the first 6-8 digits and need quick network/type/country metadata.

## Known failure modes

- Invalid or unrecognized BIN returns empty or null result
- BIN not found in database returns no card type or scheme
- Malformed input (too short/long prefix) may return an error
- Payment failure via x402 if insufficient USDC balance

## How this service works

Paid x402 endpoints organized into product clusters. USDC-settled on Base. MCP-callable. ERC-8004 identity registry agentId 47167.

## Output

Returns a JSON object containing the card type (e.g. credit or debit), card scheme (e.g. visa, mastercard), and issuing country name for the provided BIN prefix.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "bin": {
       "type": "string",
       "description": "First 6-8 digits of a card number (BIN/IIN only). Never pass a full card number."
      }
     },
     "required": [
      "bin"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "scheme": {
       "type": "string"
      },
      "type": {
       "type": "string"
      },
      "country": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        }
       }
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "credit",
  "scheme": "visa",
  "country": {
   "name": "United States"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/card-bin-lookup-c674a756/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
