When a payment workflow needs to classify a card, asking for a full card number just to identify its issuer or brand adds unnecessary exposure. Card Checker API accepts a six-digit BIN and returns card and issuer details. By the end of this guide, you can call the endpoint, read its response, and use the result in a finance application without treating a BIN lookup as a payment authorization.
What a BIN lookup can tell you
A Bank Identification Number, or BIN, identifies the beginning of a card number. Card Checker API checks a supplied BIN and can return the card brand, type and level, along with issuer and country information.
That makes the API useful for payment operations dashboards, transaction review workflows and checkout diagnostics. For example, an operations team can use issuer and country information to investigate a transaction without requesting the full card number for this lookup.
The result describes a BIN; it is not proof that an individual card is active, belongs to a particular customer or can complete a payment. Keep payment authorization and any account-holder verification separate from the lookup.
Getting started on Zyla API Hub
Open the Card Checker API listing on Zyla API Hub. Create a free account, select Subscribe or Start Free Trial when available, and get your API key for calls through the Hub.
The first API offers a 7-day trial or 50 requests; check the API page for current access options, pricing and applicable trial terms. Access uses a subscription and quota rather than pay-per-call billing.
Send the key in the Authorization header as a Bearer token. Keep it in server-side configuration for a deployed application rather than embedding it in browser code or committing it to a repository.
Check a card BIN
The available endpoint is Check card. It uses GET and requires one parameter: bin, a number containing the six-digit BIN to check.
Request URL: https://zylalabs.com/api/2333/card-checker-api/2243/check-card
Replace YOUR_API_KEY with your Hub key before running the official request:
curl -s -X GET "https://zylalabs.com/api/2333/card-checker-api/2243/check-card?bin=444444" \
-H "Authorization: Bearer YOUR_API_KEY"
The official response example is:
{
"status": 200,
"success": true,
"isValid": true,
"message": "The BIN number is valid.",
"data": {
"bin_iin": "557829",
"card_brand": "MASTERCARD",
"card_type": "CREDIT",
"card_level": "GOLD",
"issuer_name_bank": "AKBANK T.A.S.",
"issuer_bank_website": "------",
"issuer_bank_phone": "4442525",
"iso_country_name": "TURKEY",
"iso_country_code": "TR"
}
}
Use success and isValid before consuming the nested data object. For a classification display, the useful fields are card_brand, card_type and card_level; for issuer review, use issuer_name_bank and the country fields.
Important: the official request uses BIN 444444, while the official response example contains bin_iin 557829. Do not assume that this response belongs to that request. Check the returned BIN against the requested BIN before attaching card details to a transaction.
Call the endpoint from Python
This example uses Python’s standard library, so it does not require an additional HTTP package. It checks the response flags and confirms that the returned BIN matches the request before printing card information.
import json
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
api_key = "YOUR_API_KEY"
requested_bin = "444444"
url = "https://zylalabs.com/api/2333/card-checker-api/2243/check-card?bin=444444"
request = Request(
url,
headers={"Authorization": f"Bearer {api_key}"},
method="GET",
)
try:
with urlopen(request, timeout=10) as response:
payload = json.load(response)
except HTTPError as error:
raise SystemExit(f"HTTP request failed: {error.code}")
except URLError as error:
raise SystemExit(f"Could not reach the API: {error.reason}")
except json.JSONDecodeError:
raise SystemExit("The response was not valid JSON")
if not isinstance(payload, dict):
raise SystemExit("Unexpected response format")
if payload.get("success") is not True or payload.get("isValid") is not True:
raise SystemExit(payload.get("message", "BIN lookup was not valid"))
data = payload.get("data")
if not isinstance(data, dict):
raise SystemExit("Card data is missing")
if data.get("bin_iin") != requested_bin:
raise SystemExit("Returned BIN does not match the requested BIN")
print("Brand:", data.get("card_brand"))
print("Type:", data.get("card_type"))
print("Level:", data.get("card_level"))
print("Issuer:", data.get("issuer_name_bank"))
print("Country:", data.get("iso_country_name"))
print("Country code:", data.get("iso_country_code"))
Replace the key before running the sample. For a dynamic lookup, construct the request with the six-digit BIN your application has received and compare the returned bin_iin with that same value. Keep the request and comparison values together so a stale or mismatched result cannot be displayed as the current card’s details.
The code deliberately stops if the response resembles the official example but does not match the requested BIN. In production, surface that condition to an operator or an error-handling path instead of silently using the issuer information.
Practical finance use cases
Classify a payment method for operations
An internal payment dashboard can show the brand, type and level associated with a transaction’s BIN. This helps an analyst distinguish the attributes returned by the lookup from transaction-specific facts recorded elsewhere in the payment system.
For reference, here is the same official response example, showing the fields a classification view would read:
{
"status": 200,
"success": true,
"isValid": true,
"message": "The BIN number is valid.",
"data": {
"bin_iin": "557829",
"card_brand": "MASTERCARD",
"card_type": "CREDIT",
"card_level": "GOLD",
"issuer_name_bank": "AKBANK T.A.S.",
"issuer_bank_website": "------",
"issuer_bank_phone": "4442525",
"iso_country_name": "TURKEY",
"iso_country_code": "TR"
}
}
Display a classification only after checking the response flags and BIN match. A valid BIN result alone should not be presented as a successful payment or as confirmation of a cardholder’s identity.
Review issuer and country details
A payment support tool can place the issuer name and country alongside a transaction for human review. The country code is useful when the application needs a compact value, while the country name is easier to read in an operations screen.
The same official response also illustrates why contact fields need careful handling:
{
"status": 200,
"success": true,
"isValid": true,
"message": "The BIN number is valid.",
"data": {
"bin_iin": "557829",
"card_brand": "MASTERCARD",
"card_type": "CREDIT",
"card_level": "GOLD",
"issuer_name_bank": "AKBANK T.A.S.",
"issuer_bank_website": "------",
"issuer_bank_phone": "4442525",
"iso_country_name": "TURKEY",
"iso_country_code": "TR"
}
}
In this example, issuer_bank_website contains dashes rather than a usable website. Treat contact information as optional display data, not as a guaranteed link or a reason to skip independent review.
Reduce repeated lookups in a review queue
If several records in an operations queue share a BIN, an application can reuse a previously checked result rather than requesting it for every screen render. Key any cache by the requested BIN, retain the returned BIN with the result, and choose a refresh policy appropriate to your application.
Do not assume cached issuer details are permanently current. Also account for quota when deciding when to refresh; check the listing for the access terms attached to your subscription.
Because the BIN appears in the request URL, review how your HTTP client, application logs and monitoring tools record query strings. Send only the six-digit value needed by this endpoint, not a full card number.
Call from an AI agent
For an agent workflow, configure an MCP-compatible client with https://mcp.zylalabs.com/mcp?apikey=YOUR_API_KEY, replacing the placeholder with your Hub key. The endpoint works with Claude Code, Cursor, Windsurf and other MCP-compatible clients.
Use MCP to connect the agent to the Hub, then select the available Card Checker API tool in the client. Give the agent a six-digit BIN rather than a full card number, and have your application check the returned BIN before using issuer or card attributes.
An agent can summarize the lookup for a payment analyst, but it should not turn the result into a claim that a card is authorized or that a transaction will succeed. Protect the MCP connection URL as you would any other configuration containing an API key.
FAQ
What parameter does Card Checker API require?
The Check card endpoint requires bin, a six-digit BIN supplied as a number. The request uses HTTP GET and Bearer authentication.
Does a valid BIN mean a payment will succeed?
No. The response describes the BIN and its associated card information; it does not authorize a payment or verify a cardholder.
Why should I compare bin_iin with the requested BIN?
The official request and response examples contain different BIN values. Comparing them in your integration prevents a mismatched response from being attached to the wrong transaction.
How do I access the API and check its current pricing?
Create a free account on Zyla API Hub, then check the listing for subscription, quota and trial details. The first API offers a 7-day trial or 50 requests, subject to the applicable terms on the item page.
Ready to test a BIN lookup? Start 7-day trial on Card Checker API, get your API key, and run the request above.