API Documentation

The BINLookup REST API lets you integrate BIN data directly into your payment systems. Available on the Enterprise plan.

Authentication

Pass your API key as a Bearer token in the Authorization header.

Authorization: Bearer YOUR_API_KEY

BIN Lookup

GET/api/v1/lookup?bin={bin}

Returns card details for the given BIN. Accepts 6 or 8 digits.

Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://yourdomain.com/api/v1/lookup?bin=405782"

Response

{
  "bin": "405782",
  "brand": "VISA",
  "card_type": "CREDIT",
  "card_category": "CLASSIC",
  "issuer": "(PKO BANK POLSKI)",
  "bank_name": "POWSZECHNA KASA OSZCZEDNOSCI BANK POLSKI SA",
  "country": {
    "code": "PL",
    "name": "Poland",
    "flag": "🇵🇱"
  }
}

Response Fields

FieldTypeDescription
binstringThe matched BIN (6 digits)
brandstringCard network: VISA, MASTERCARD, MAESTRO, etc.
card_typestringCREDIT, DEBIT, or CHARGE CARD
card_categorystringCLASSIC, GOLD, PLATINUM, BUSINESS, PREPAID, etc.
issuerstringShort issuer name
bank_namestringFull issuing bank name
country.codestringISO 3166-1 alpha-2 country code
country.namestringFull country name
country.flagstringCountry flag emoji

Error Codes

StatusMeaning
200Success
400Invalid BIN format (too short, non-numeric)
401Missing or invalid API key
404BIN not found in database
429Rate limit exceeded (free tier: 5/day)

API access requires the Enterprise plan

$99.95/month · Unlimited requests · Full JSON responses

Get Enterprise →