{"uid":"cap_9hTivNPYbS4ej_0UTKbot","slug":"2s-bin-iin-lookup-e289e201","name":"2s BIN/IIN Lookup","description":"Identify a payment card from its BIN/IIN (Bank Identification Number — the leading 6-8 digits). Pass the BIN or the first digits of a card number and get the card brand (Visa, Mastercard, …), card type (debit/credit), category, issuing bank, and country (ISO alpha-2 + name). Longest-prefix match against an open community dataset (CC-BY). The BIN identifies the issuer/brand/country only — never the cardholder or account number. For payment routing, fraud checks, and checkout UX.","url":"https://2s.io/api/finance/bin","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"required":["bin"],"properties":{"bin":{"type":"string","description":"BIN/IIN or leading card digits (6-8+)."}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TXqmYS3dnlzX5wk_UtY0r","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a payment card BIN/IIN prefix to return the card brand, type, issuing bank, and country of origin","exampleAgentPrompt":"Can you look up the BIN 424242 and tell me what card brand it is, whether it's credit or debit, which bank issued it, and what country it's from?","exampleUseCases":null,"resultDescription":"Returns a JSON object with ok status and an items array containing the matched BIN record including brand (e.g. VISA, MASTERCARD), cardType (CREDIT/DEBIT), issuer bank name, bank URL if available, country name and ISO alpha-2 country code, and query metadata showing the input and matched BIN. Also includes a source object crediting the open dataset used.","failureModes":["BIN not found in dataset — found: false returned with empty issuer fields","Invalid or too-short BIN string — may return no matches","Network or payment failure via x402 — 402 Payment Required if USDC not sent","Malformed query parameter — 400-level error"],"whenToPreferThis":"Use this endpoint when you need to identify a payment card's brand, type, issuer, or origin country from its leading digits — particularly when no API key or signup is desired and pay-per-call micropayment via USDC is acceptable. Prefer over scraping or manual lookup when programmatic BIN resolution is needed in an agent workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:45:17.976Z","isFirstParty":false}