{"uid":"cap_41nf2pal-WscUm2KLGux-","slug":"24k-labs-luhn-check-card-brand-detector-f7e907e3","name":"24K Labs Luhn Check & Card Brand Detector","description":"Validate a number by the Luhn checksum and detect the card brand.","url":"https://api.24klabs.ai/api/luhn-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"number":{"type":"string"}}},"responseSchema":{"type":"json","example":{"brand":"Visa","valid":true}},"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_G9mzh6PK_jJQJjN1nkRUA","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":"Validates a number string against the Luhn checksum algorithm and identifies the associated payment card brand (e.g. Visa, Mastercard, Amex).","exampleAgentPrompt":"Can you check if the card number 4532015112830366 is valid and tell me what card brand it belongs to?","exampleUseCases":[{"title":"Payment form pre-validation","prompt":"Before I submit this order, check if the card number 5425233430109903 is a legitimate card number and what network it's on — I want to catch typos before hitting the payment processor."},{"title":"Fraud screening on user input","prompt":"A user just entered 378282246310005 as their card number during checkout — run a Luhn check on it and tell me if it's structurally valid and what card brand it is."},{"title":"Card number format debugging","prompt":"I'm testing my payment integration and want to verify that the test card number 4111111111111111 passes the Luhn checksum and is recognized as a Visa — can you confirm?"}],"resultDescription":"Returns whether the submitted number passes the Luhn checksum (true/false), the detected card brand (e.g. Visa, Mastercard, American Express, Discover, or unknown), and potentially additional metadata about the card network or number structure.","failureModes":["Non-numeric input or empty string returns a validation error","Number with spaces or dashes may need to be stripped before submission","Unrecognized card prefix returns unknown brand even if Luhn passes","Very short or very long numbers outside standard card length ranges may produce unexpected results"],"whenToPreferThis":"Use this endpoint when you need a lightweight, no-transaction, offline-style validity check on a card number — ideal for real-time form validation, fraud pre-screening, or debugging test card numbers without hitting a live payment gateway. Prefer this over a full payment processor API when you only need structural validity and brand detection, not authorization or tokenization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:04.365Z","isFirstParty":false}