NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server

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.

Online
(4.4)

From 2,803 users

1,400+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
346ms382ms435ms720ms1264ms

Didn't find what you were looking for? Suggest an improvement

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 or 8 digits of a credit card number.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.

  • 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.

  • is_eu

    Whether the issuing country is an EU member state.

  • is_eea

    Whether the issuing country is in the European Economic Area. This is the boundary that governs PSD2 / SCA and interchange-fee caps.

  • is_sepa

    Whether the issuing country is in the Single Euro Payments Area. SEPA is wider than the EEA — it also includes Switzerland, the United Kingdom, Monaco, San Marino, Andorra and Vatican City.

Live Demo

Live demo · no API key required
Query parameters
bin

Get a free API key to get started — no credit card required.

Headers
X-Api-KeyLog in or sign up to get your API key
GET
https://api.api-ninjas.com/v2/bin?bin=405316
Sample response
[
{
"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

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.

Frequently Asked Questions

  • Yes, but you must have a premium subscription. Commercial use of the BIN API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.
  • The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.
  • Send a GET request to /v2/bin with the required bin parameter, which is typically the first 6 digits of a credit card number (e.g. bin=405316). You can create a free account to get an API key and try it out.
  • The API returns a JSON array of objects with fields such as bin, brand (e.g. Visa, Mastercard, American Express), type (credit or debit), categories, issuer, country_iso2, country, and is_valid. Several of these fields including brand, type, categories, issuer, and is_valid are available on premium plans.
  • The categories field is an array of tags describing the card, grouped by payment type (e.g. prepaid, credit, debit), cardholder segment (e.g. personal, business, corporate), card tier (e.g. basic, premium, luxury), and specialized use (e.g. travel, fleet, healthcare). This field is a premium feature; see the full category table on the documentation page above.
  • The BIN API is useful for payment validation, fraud screening, identifying a card's issuing bank and country, and routing transactions by card brand or type using fields like brand, issuer, and country. For related financial lookups, see the IBAN, SWIFT Code, Routing Number, and Sanctions Screening APIs, or browse all API Ninjas APIs.