{"uid":"cap_DL3Hi9cAQyFihxKmY1_1D","slug":"credit-card-bin-lookup-52cdf90e","name":"Credit Card BIN Lookup","description":"Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.","url":"https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/bin-lookup?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["bin"],"properties":{"bin":{"type":"string","pattern":"^[ -]*[0-9](?:[ -]*[0-9]){5,7}[ -]*$","description":"First 6-8 digits only; spaces and dashes allowed. Never send a full card number."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"bin":"457173","bank":null,"type":"debit","brand":"Visa/Dankort","found":true,"cached":false,"scheme":"visa","country":{"name":"Denmark","emoji":"🇩🇰","alpha2":"DK","currency":"DKK"},"prepaid":false,"product":"scanpay.bin_lookup","as_of_ms":1730419200000,"price_usd":0.001}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7211LCWKMRBdh5OxJQzVv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Identifies card scheme, type, brand, issuing country, and bank from the first 6-8 digits of a credit or debit card number","exampleAgentPrompt":"Can you look up BIN 457173 for me and tell me what card scheme it belongs to, whether it's debit or credit, and what country it was issued in?","exampleUseCases":[{"title":"Payment form card detection","prompt":"I need to identify whether the card starting with 45717300 is a Visa or Mastercard, and if it's debit or credit, so I can show the right logo on my checkout page."},{"title":"Fraud screening by card origin","prompt":"Can you check BIN 676130 and tell me the issuing country and bank? I want to flag transactions where the card country doesn't match the billing address country."},{"title":"Prepaid card gating","prompt":"Look up BIN 52356712 and tell me if it's a prepaid card — I need to block prepaid cards from being used on my subscription service."}],"resultDescription":"Returns a JSON object with fields: bin (input BIN), scheme (e.g. 'visa'), type (e.g. 'debit'), brand (e.g. 'Visa/Dankort'), country (name, alpha2 code, emoji, currency), bank (issuing bank name or null), prepaid (boolean), found (boolean), cached (boolean), and price_usd.","failureModes":["BIN not found in database: returns found=false with null bank and country fields","Invalid BIN format (less than 6 digits or non-numeric): likely 400 error or empty result","BIN with fewer than 6 valid digits rejected by pattern validation","Network timeout on the Cloudflare Worker edge node","Payment failure: 402 response if USDC payment is not included or insufficient"],"whenToPreferThis":"Use this endpoint when you need to enrich a partial card number (first 6-8 digits only) to determine card metadata without storing or transmitting a full PAN. Ideal for checkout flows needing real-time card brand detection, fraud screening by issuing country, prepaid card blocking, or routing decisions based on card scheme. Prefer this over full-card processors when PCI compliance requires minimizing PAN exposure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:08.004Z","isFirstParty":false,"canonicalSlug":"credit-card-bin-lookup-52cdf90e"}