API Documentation
Endpoint
POST https://generator.getcreditcard.xyz/api/generateRequest Parameters
bin(optional): 6-digit BIN/IINquantity(optional): Number of cards to generate (1-100, default: 1)type(optional): Card type (visa, mastercard, amex, discover, custom; default: visa)includeExpiry(optional): Include expiry date (boolean, default: true)includeCvv(optional): Include CVV (boolean, default: true)format(optional): Output format (json, csv, pipe; default: json)
Example Request
fetch('https://generator.getcreditcard.xyz/api/generate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
quantity: 2,
type: 'visa',
includeExpiry: true,
includeCvv: true,
format: 'json'
})
})
.then(response => response.json())
.then(data => console.log(data))Example Response
{
"success": true,
"data": [
{
"number": "4539123456789012",
"expiry": { "month": 3, "year": 2026 },
"cvv": 123
},
{
"number": "4532987654321098",
"expiry": { "month": 11, "year": 2025 },
"cvv": 456
}
]
}