Quick Start
To use the API, you'll need an API key. Include it in your requests using one of these methods:
Header (Recommended)
X-API-Key: your_api_key
Query Parameter
?api_key=your_api_key
Base URL
https://getcreditcardinfo.com/api/v1
GET
/api/v1/generate/{card_type}
Generate Single Card
Generate a single credit card with complete fake details.
Path Parameters
| card_type |
Required. One of: visa, mastercard, discover, amex, jcb
|
Example Request
curl -X GET "https://getcreditcardinfo.com/api/v1/generate/visa" \ -H "X-API-Key: your_api_key"
Example Response
{
"success": true,
"data": {
"network": "Visa",
"card_number": "4716718003943986",
"name": "John Smith",
"address": "123 Cedar Lane",
"country": "United States",
"cvv": "123",
"limit": "$2500",
"expiry": "12/2028"
}
}
GET
/api/v1/generate/bulk/{card_type}
Generate Bulk Cards
Generate multiple credit cards at once (max 100 per request).
Parameters
| card_type | Path. Required. Card type (visa, mastercard, etc.) |
| count | Query. Optional. Number of cards (default: 10, max: 100) |
Example Request
curl -X GET "https://getcreditcardinfo.com/api/v1/generate/bulk/mastercard?count=5" \ -H "X-API-Key: your_api_key"
Example Response
{
"success": true,
"count": 5,
"data": [
{
"network": "MasterCard",
"card_number": "5156398345836174",
"name": "Jane Doe",
...
},
...
]
}
POST
/api/v1/validate
Validate Card Number
Validate a credit card number using the Luhn algorithm.
Request Body
{
"card_number": "4716718003943986"
}
Example Request
curl -X POST "https://getcreditcardinfo.com/api/v1/validate" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"card_number": "4716718003943986"}'
Example Response
{
"success": true,
"data": {
"valid": true,
"card_type": "Visa",
"length": 16
}
}
GET
/api/v1/types
Get Card Types
Get list of available card types.
Example Response
{
"success": true,
"data": {
"visa": {"name": "Visa", "prefix": "4"},
"mastercard": {"name": "MasterCard", "prefix": "5"},
"discover": {"name": "Discover", "prefix": "6011"},
"amex": {"name": "American Express", "prefix": "34/37"},
"jcb": {"name": "JCB", "prefix": "35"}
}
}
Error Responses
401 - Missing API Key
{"error": "API key required", "code": "MISSING_API_KEY"}
401 - Invalid API Key
{"error": "Invalid API key", "code": "INVALID_API_KEY"}
400 - Invalid Card Type
{"error": "Invalid card type", "valid_types": ["visa", "mastercard", ...]}
Rate Limits
Currently, there are no strict rate limits. However, please use the API responsibly. Bulk generation is limited to 100 cards per request.