Free BIN Lookup API
A fast REST API that returns card BIN data as JSON. No API key, CORS enabled.
FreeNo API key needed
<5 msServer response time
JSONCORS ✓
BIN lookup
GET https://www.visatk.com/api/v1/bin/{bin}Pass 6 to 19 digits; the first 8 are matched. Returns found: false with the detected brand when the BIN is unknown.
cURL
curl https://www.visatk.com/api/v1/bin/457173
JavaScript
const r = await fetch('https://www.visatk.com/api/v1/bin/457173');
const data = await r.json();
console.log(data.brand, data.bank.name, data.country.name);
Python
import requests
d = requests.get('https://www.visatk.com/api/v1/bin/457173').json()
print(d['brand'], d['bank']['name'], d['country']['alpha2'])PHP
$d = json_decode(file_get_contents('https://www.visatk.com/api/v1/bin/457173'), true);
echo $d['brand'];
Example response
{
"bin": "45717360",
"found": true,
"length": 8,
"brand": "Visa",
"type": "Debit",
"level": "Classic",
"prepaid": false,
"commercial": false,
"bank": {
"name": "Jyske Bank A/S",
"phone": "+4589893300",
"url": "www.jyskebank.dk"
},
"country": {
"name": "Denmark",
"alpha2": "DK",
"alpha3": "DNK",
"currency": "DKK",
"flag": "🇩🇰",
"latitude": 56.26,
"longitude": 9.5018
}
}
Bulk lookup
POST https://www.visatk.com/api/v1/bulk
Content-Type: application/json
{"bins": ["411111", "542418", "371449"]}Send up to 1,000 BINs in one request. The response contains a results array in the same order.
IP geolocation
GET https://www.visatk.com/api/ip/{ip}
GET https://www.visatk.com/api/meReturns country, region, city, coordinates, currency, ASN and organisation for any IPv4 or IPv6 address. /api/me returns the caller IP.
Response fields
| Field | Type | Meaning |
|---|---|---|
| bin | string | Matched BIN |
| found | boolean | Whether the BIN exists in the database |
| length | number | Number of BIN digits |
| brand | string | Card network |
| type | string | Credit, Debit or Charge card |
| level | string | Product level such as Classic or Platinum |
| prepaid | boolean | Prepaid or gift card |
| commercial | boolean | Business, corporate or purchasing card |
| bank.name | string | Issuing bank |
| bank.phone | string | Issuer phone number |
| bank.url | string | Issuer website |
| country.name | string | Issuing country |
| country.alpha2 | string | ISO 3166-1 alpha-2 code |
| country.alpha3 | string | ISO 3166-1 alpha-3 code |
| country.currency | string | ISO 4217 currency |
| country.flag | string | Flag emoji |
| country.latitude | number | Country latitude |
| country.longitude | number | Country longitude |
Fair use
The API is free for reasonable use. Please cache results on your side and contact us before sending sustained high volumes.
Status codes
| 200 | Success (check the found field). |
| 400 | Fewer than 6 digits supplied. |
| 404 | Unknown endpoint. |