81trust / 100
Validate Card
by api.aventtech.com in Security & trust
x402 APIPassing, checked 30 min ago
Validate a credit card or payment card number and detect its brand. Checks the Luhn checksum and identifies Visa, Mastercard, Amex, Discover, Diners or JCB, returning the BIN and last four digits. Structural card number validation for checkout forms and fraud pre-checks (does not verify the card exists or has funds).
GET https://api.aventtech.com/validate/card
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 41 ms typical, 41 ms slowest 5%
- Last check
- 30 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.aventtech.com/validate/card?number=4242424242424242"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.aventtech.com%2Fvalidate%2Fcard
const res = await pay("https://api.aventtech.com/validate/card?number=4242424242424242");
console.log(await res.json());Example input
{
"number": "4242424242424242"
}Example output
{
"bin": "424242",
"brand": "visa",
"last4": "4242",
"valid": true
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 30 min ago | Passed | 402 | 395 ms | $0.01 |
| 6 h ago | Passed | 402 | 41 ms | $0.01 |