API di ricerca BIN gratuita
Una API REST veloce che restituisce i dati BIN delle carte in JSON. Nessuna chiave API, CORS abilitato.
GratisNessuna chiave API richiesta
<5 msTempo di risposta del server
JSONCORS ✓
Ricerca BIN
GET https://www.visatk.com/api/v1/bin/{bin}Invia da 6 a 19 cifre; vengono confrontate le prime 8. Restituisce found: false con il circuito rilevato quando il BIN è sconosciuto.
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'];
Esempio di risposta
{
"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
}
}
Ricerca multipla
POST https://www.visatk.com/api/v1/bulk
Content-Type: application/json
{"bins": ["411111", "542418", "371449"]}Invia fino a 1.000 BIN in un'unica richiesta. La risposta contiene un array results nello stesso ordine.
Geolocalizzazione IP
GET https://www.visatk.com/api/ip/{ip}
GET https://www.visatk.com/api/meRestituisce paese, regione, città, coordinate, valuta, ASN e organizzazione di qualsiasi indirizzo IPv4 o IPv6. /api/me restituisce l'IP del chiamante.
Campi della risposta
| Field | Type | Significato |
|---|---|---|
| bin | string | BIN corrispondente |
| found | boolean | Indica se il BIN è presente nel database |
| length | number | Numero di cifre del BIN |
| brand | string | Circuito della carta |
| type | string | Carta di credito, di debito o charge |
| level | string | Livello del prodotto, ad esempio Classic o Platinum |
| prepaid | boolean | Carta prepagata o carta regalo |
| commercial | boolean | Carta business, aziendale o per acquisti |
| bank.name | string | Banca emittente |
| bank.phone | string | Telefono dell'emittente |
| bank.url | string | Sito web dell'emittente |
| country.name | string | Paese di emissione |
| country.alpha2 | string | Codice ISO 3166-1 alpha-2 |
| country.alpha3 | string | Codice ISO 3166-1 alpha-3 |
| country.currency | string | Valuta ISO 4217 |
| country.flag | string | Emoji della bandiera |
| country.latitude | number | Latitudine del paese |
| country.longitude | number | Longitudine del paese |
Uso equo
L'API è gratuita per un uso ragionevole. Memorizza i risultati nella cache dal tuo lato e contattaci prima di inviare volumi elevati in modo continuativo.
Codici di stato
| 200 | Successo (controlla il campo found). |
| 400 | Sono state fornite meno di 6 cifre. |
| 404 | Endpoint sconosciuto. |