Lookup BIN

GEThttps://api-bin-lookup.dataandapis.com/v1/bin/{bin}

Lookup BIN is an endpoint of the BIN & Card Validator API. Card scheme from a BIN and full-number validation with Luhn and length rules, nothing stored.

Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.

Request

Path parameters

ParameterExample
bin453201Required

Example request

curl
curl "https://api-bin-lookup.dataandapis.com/v1/bin/453201" \
  -H "X-Api-Key: YOUR_API_KEY"
Node.js
const res = await fetch("https://api-bin-lookup.dataandapis.com/v1/bin/453201", {
  headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();
Python
import os, requests

r = requests.get(
    "https://api-bin-lookup.dataandapis.com/v1/bin/453201",
    headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()

Example response

Example response
{
  "bin": "453201",
  "scheme": "visa",
  "expected_lengths": [
    13,
    16,
    19
  ]
}