BIN Lookup API
The BIN Lookup API allows you to look up bank information from Bank Identification Numbers (BIN). Our database contains hundreds of thousands of BINs worldwide.
API Status
/v2/bin GET
https://api.api-ninjas.com/v2/bin
Returns detailed information about a bank based on the BIN number provided.
Parameters
binrequiredThe Bank Identification Number (BIN) to look up. This is typically the first 6-8 digits of a credit card number.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
binThe Bank Identification Number that was looked up.
brandpremium onlyThe card brand (e.g. Visa, Mastercard, American Express).
typepremium onlyThe type of card. Possible values are
creditordebit.categoriespremium onlyAn array of category tags for the card. Possible categories include:
Payment Type:
prepaid- Loaded funds before usecredit- Traditional credit with billing cycledebit- Direct bank account linkcharge- Full payment required each cycleatm- Cash withdrawal onlyCardholder Segment:
personal- Individual consumersbusiness- Small/medium businessescorporate- Large enterprises & B2Bgovernment- Public sectorCard Tier:
basic- Entry-level (Classic, Standard)mid-tier- Enhanced (Gold, Platinum)premium- High-end (Signature, Infinite, World)luxury- Ultra-premium (Black, Centurion, World Elite)Specialized Use:
travel- T&E and travel expensespurchasing- Procurement cardsfleet- Vehicle/fuel expensesgift- Gift cards and voucherspayroll- Salary disbursementbenefits- FSA, flex benefits, workplace programshealthcare- HSA and medical expensesrewards- Cashback and points programsagricultural- Farming operationsmeal- Food-restricted purchasesForm Factor:
virtual- Digital-only cardsSpecial Category:
proprietary- Private label/store-specificvpay- V PAY networkmixed- Multiple/uncategorized typesissuerpremium onlyThe name of the bank or financial institution that issued the card.
country_iso2The two-letter country code (ISO-3166-1 alpha-2) of the issuing bank.
countryThe full name of the country where the card was issued.
is_validpremium onlyIndicates whether the BIN is valid. Returns
trueif the BIN is valid,falseotherwise.
Sample Request Live Demo!
https://api.api-ninjas.com/v2/bin?bin=405316Headers
X-Api-KeyLog in or sign up to get your API KeySample Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[
{
"bin": "405316",
"brand": "Visa",
"type": "credit",
"categories": [
"basic"
],
"issuer": "Jpmorgan Chase Bank N.A.",
"country_iso2": "US",
"country": "United States",
"is_valid": true
}
]Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v2/bin?bin=405316" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.