# Credit Card BIN Lookup

> Credit Card BIN Lookup is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-02).

Identifies card scheme, type, brand, issuing country, and bank from the first 6-8 digits of a credit or debit card number

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/bin-lookup?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/credit-card-bin-lookup-52cdf90e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DL3Hi9cAQyFihxKmY1_1D

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 credit-card-bin-lookup-52cdf90e
```

Example prompt: Can you look up BIN 457173 for me and tell me what card scheme it belongs to, whether it's debit or credit, and what country it was issued in?

## When to prefer this

Use this endpoint when you need to enrich a partial card number (first 6-8 digits only) to determine card metadata without storing or transmitting a full PAN. Ideal for checkout flows needing real-time card brand detection, fraud screening by issuing country, prepaid card blocking, or routing decisions based on card scheme. Prefer this over full-card processors when PCI compliance requires minimizing PAN exposure.

## Known failure modes

- BIN not found in database: returns found=false with null bank and country fields
- Invalid BIN format (less than 6 digits or non-numeric): likely 400 error or empty result
- BIN with fewer than 6 valid digits rejected by pattern validation
- Network timeout on the Cloudflare Worker edge node
- Payment failure: 402 response if USDC payment is not included or insufficient

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

Returns a JSON object with fields: bin (input BIN), scheme (e.g. 'visa'), type (e.g. 'debit'), brand (e.g. 'Visa/Dankort'), country (name, alpha2 code, emoji, currency), bank (issuing bank name or null), prepaid (boolean), found (boolean), cached (boolean), and price_usd.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "bin"
     ],
     "properties": {
      "bin": {
       "type": "string",
       "pattern": "^[ -]*[0-9](?:[ -]*[0-9]){5,7}[ -]*$",
       "description": "First 6-8 digits only; spaces and dashes allowed. Never send a full card number."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bin": "457173",
  "bank": null,
  "type": "debit",
  "brand": "Visa/Dankort",
  "found": true,
  "cached": false,
  "scheme": "visa",
  "country": {
   "name": "Denmark",
   "emoji": "🇩🇰",
   "alpha2": "DK",
   "currency": "DKK"
  },
  "prepaid": false,
  "product": "scanpay.bin_lookup",
  "as_of_ms": 1730419200000,
  "price_usd": 0.001
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/credit-card-bin-lookup-52cdf90e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
