GnistAI GnistAI
Log in

BIN Lookup

BIN (Bank Identification Number) lookup — identify card brand, type, and category from the first 6-8 digits.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 type: validation enrichment type type validation enrichment validation enrichment lifecycle: maintained lifecycle lifecycle maintained maintained Finance

Data source: Well-known public BIN prefix ranges

REST Bridge Endpoint https://context.gnist.ai/rest/bin-lookup/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (3)

lookup_bin

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

ParameterTypeRequiredDescription
bin_digitsstringrequiredFirst 6-8 digits of a payment card number.
Request Body
{
  "bin_digits": "123456789"
}
get_card_brands

List all card brands that can be identified from BIN prefixes.

Returns the sorted list of known card brands (e.g. Visa, Mastercard, etc.).

Request Body
{
  "query": "example"
}
report_feedback

Report 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'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
Request Body
{
  "feedback": "example"
}

Quick Start

Shell
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"}'
Python
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())

Related Toolkits (Finance)

Resources