Save over 30% when you subscribe to an annual subscription plan!

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

Online - All Systems Operational

/v2/bin GET

https://api.api-ninjas.com/v2/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 premium only

    The type of card. Possible values are credit or debit.

  • categories premium only

    An array of category tags for the card. Possible categories include:

    Payment Type:

    prepaid - Loaded funds before use

    credit - Traditional credit with billing cycle

    debit - Direct bank account link

    charge - Full payment required each cycle

    atm - Cash withdrawal only

    Cardholder Segment:

    personal - Individual consumers

    business - Small/medium businesses

    corporate - Large enterprises & B2B

    government - Public sector

    Card 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 expenses

    purchasing - Procurement cards

    fleet - Vehicle/fuel expenses

    gift - Gift cards and vouchers

    payroll - Salary disbursement

    benefits - FSA, flex benefits, workplace programs

    healthcare - HSA and medical expenses

    rewards - Cashback and points programs

    agricultural - Farming operations

    meal - Food-restricted purchases

    Form Factor:

    virtual - Digital-only cards

    Special Category:

    proprietary - Private label/store-specific

    vpay - V PAY network

    mixed - Multiple/uncategorized types

  • issuer premium only

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

  • country_iso2

    The two-letter country code (ISO-3166-1 alpha-2) of the issuing bank.

  • country

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

  • is_valid premium only

    Indicates whether the BIN is valid. Returns true if the BIN is valid, false otherwise.

Sample Request Live Demo!

bin
https://api.api-ninjas.com/v2/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 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.