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.

/v1/bin GET

https://api.api-ninjas.com/v1/bin

Returns detailed information about a bank based on the BIN number provided.


Parameters

  • bin  required

    The Bank Identification Number (BIN) to look up. This is typically the first 6-8 digits of a credit card number.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

  • bin

    The Bank Identification Number that was looked up.

  • brand premium only

    The card brand (e.g. Visa, Mastercard, American Express).

  • type

    The type of card (e.g. Credit, Debit).

  • category

    The category of the card.

  • issuer premium only

    The name of the bank or financial institution that issued the card.

  • iso_code2

    The two-letter ISO country code of the issuing bank.

  • iso_code3

    The three-letter ISO country code of the issuing bank.

  • country

    The full name of the country where the card was issued.

Sample Request Live Demo!

bin
https://api.api-ninjas.com/v1/bin?bin=405316

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
1 2 3 4 5 6 7 8 9 10 11 12 [ { "bin": "405316", "brand": "Visa", "type": "Credit", "category": "Traditional", "issuer": "Jpmorgan Chase Bank N.A.", "iso_code2": "US", "iso_code3": "USA", "country": "United States" } ]

Code Examples

1 2 3 4 5 6 7 8 9 10 import requests bin = '405316' api_url = 'https://api.api-ninjas.com/v1/bin?bin={}'.format(bin) response = requests.get(api_url, headers={'X-Api-Key': 'YOUR_API_KEY'}) if response.status_code == requests.codes.ok: print(response.text) else: print("Error:", response.status_code, response.text)

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.