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

MCP Endpoint (Streamable HTTP) https://context.gnist.ai/mcp/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.
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "lookup_bin",
    "arguments": {
      "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.).

JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_card_brands",
    "arguments": {}
  }
}
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")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "report_feedback",
    "arguments": {
      "feedback": "example"
    }
  }
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/mcp/bin-lookup/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "lookup_bin", "arguments": {"bin_digits": "example"}}}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/bin-lookup/",
    headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "lookup_bin",
    "arguments": {
      "bin_digits": "example"
    }
  }
},
)
print(resp.json())

Related Toolkits (Finance)

Resources