# 2s BIN/IIN Lookup

> 2s BIN/IIN Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Looks up a payment card BIN/IIN prefix to return the card brand, type, issuing bank, and country of origin

## Facts

- Endpoint: GET https://2s.io/api/finance/bin
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-bin-iin-lookup-e289e201
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9hTivNPYbS4ej_0UTKbot

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 2s-bin-iin-lookup-e289e201
```

Example prompt: Can you look up the BIN 424242 and tell me what card brand it is, whether it's credit or debit, which bank issued it, and what country it's from?

## When to prefer this

Use this endpoint when you need to identify a payment card's brand, type, issuer, or origin country from its leading digits — particularly when no API key or signup is desired and pay-per-call micropayment via USDC is acceptable. Prefer over scraping or manual lookup when programmatic BIN resolution is needed in an agent workflow.

## Known failure modes

- BIN not found in dataset — found: false returned with empty issuer fields
- Invalid or too-short BIN string — may return no matches
- Network or payment failure via x402 — 402 Payment Required if USDC not sent
- Malformed query parameter — 400-level error

## How this service works

Identify a payment card from its BIN/IIN (Bank Identification Number — the leading 6-8 digits). Pass the BIN or the first digits of a card number and get the card brand (Visa, Mastercard, …), card type (debit/credit), category, issuing bank, and country (ISO alpha-2 + name). Longest-prefix match against an open community dataset (CC-BY). The BIN identifies the issuer/brand/country only — never the cardholder or account number. For payment routing, fraud checks, and checkout UX.

## Output

Returns a JSON object with ok status and an items array containing the matched BIN record including brand (e.g. VISA, MASTERCARD), cardType (CREDIT/DEBIT), issuer bank name, bank URL if available, country name and ISO alpha-2 country code, and query metadata showing the input and matched BIN. Also includes a source object crediting the open dataset used.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "bin"
     ],
     "properties": {
      "bin": {
       "type": "string",
       "description": "BIN/IIN or leading card digits (6-8+)."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-bin-iin-lookup-e289e201/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
