Data source: Well-known public BIN prefix ranges
https://context.gnist.ai/rest/bin-lookup/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (3)
lookup_binIdentify the card brand, type, and category from a Bank Identification Number (BIN).
Matches the input against well-known public BIN prefix ranges for Visa,
Mastercard, American Express, Discover, JCB, UnionPay, Diners Club, and Maestro.
Args:
bin_digits: The first 6-8 digits of a payment card number.
| Parameter | Type | Required | Description |
|---|---|---|---|
bin_digits | string | required | First 6-8 digits of a payment card number. |
{
"bin_digits": "123456789"
}get_card_brandsList all card brands that can be identified from BIN prefixes.
Returns the sorted list of known card brands (e.g. Visa, Mastercard, etc.).
{
"query": "example"
}report_feedbackReport a bug, feature request, or general feedback for this data source.
Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.
Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"feedback": "example"
}Quick Start
curl -X POST "https://context.gnist.ai/rest/bin-lookup/lookup_bin" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"bin_digits": "example"}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/rest/bin-lookup/lookup_bin",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={
"bin_digits": "example"
},
)
print(resp.json())