Card Generator is a simple tool for generating test/sample card numbers. It returns a list of card numbers for testing.
The Test Card Generator API provides a simple, reliable way to integrate test card generator functionality into your applications. Built for developers who need production-ready test card generator capabilities without the complexity of building from scratch.
Quick Start
Using JavaScript
async function callTestCardGeneratorAPI() {
try {
const params = new URLSearchParams({
brand: 'visa'
});
const response = await fetch(`https://api.apiverve.com/v1/cardgenerator?${params}`, {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY_HERE'
}
});
const data = await response.json();
console.log(data);
} catch (error) {
console.error('Error:', error);
}
}
callTestCardGeneratorAPI();Using cURL
curl -X GET "https://api.apiverve.com/v1/cardgenerator?brand=visa" \
-H "x-api-key: YOUR_API_KEY_HERE"Get your API key: https://apiverve.com
📁 For more examples, see the examples folder
Installation
Choose your preferred programming language:
📦 NPM (JavaScript/Node.js)
npm install @apiverve/cardgeneratorView NPM Package → | Package Code →
🔷 NuGet (.NET/C#)
dotnet add package APIVerve.API.TestCardGeneratorView NuGet Package → | Package Code →
🐍 Python (PyPI)
pip install apiverve-cardgeneratorView PyPI Package → | Package Code →
💎 Ruby (RubyGems)
gem install apiverve_cardgeneratorView RubyGems Package → | Package Code →
🐘 PHP (Packagist)
composer require apiverve/cardgeneratorView Packagist Package → | Package Code →
🎯 Dart (pub.dev)
dart pub add apiverve_cardgeneratorView pub.dev Package → | Package Code →
🤖 Android (JitPack)
implementation 'com.github.apiverve:cardgenerator-api:1.0.0'🐹 Go
go get github.com/apiverve/cardgenerator-api/goWhy Use This API?
| Feature | Benefit |
|---|---|
| Multi-language SDKs | Native packages for JavaScript, Python, C#, Go, and Android |
| Simple Integration | Single API key authentication, consistent response format |
| Production Ready | 99.9% uptime SLA, served from 24 global regions |
| Comprehensive Docs | Full examples, OpenAPI spec, and dedicated support |
Documentation
- 🏠 API Home: Test Card Generator API
- 📚 API Reference: docs.apiverve.com/ref/cardgenerator
- 📖 OpenAPI Spec: openapi.yaml
- 💡 Examples: examples/
What Can You Build?
The Test Card Generator API is commonly used for:
- Web Applications - Add test card generator features to your frontend or backend
- Mobile Apps - Native SDKs for Android development
- Automation - Integrate with n8n, Zapier, or custom workflows
- SaaS Products - Enhance your product with test card generator capabilities
- Data Pipelines - Process and analyze data at scale
API Reference
Authentication
All requests require an API key in the header:
x-api-key: YOUR_API_KEY_HERE
Get your API key: https://apiverve.com
Response Format
Every APIVerve endpoint returns the same envelope — check status, then read data:
{
"status": "ok",
"error": null,
"data": { ... }
}Example Response
A real response from the Test Card Generator API:
{
"status": "ok",
"error": null,
"data": {
"brand": "visa",
"count": 5,
"cards": [
{
"cvv": 175,
"issuer": "SOUTHEAST F.C.U.",
"id": "0faca124-9a33-4ac6-a3df-8bf103025779",
"number": "4750377207233152",
"expiration": "12/2030",
"brand": "visa",
"number_alt": {
"masked": "************3152",
"unmasked": "4750 3772 0723 3152",
"last4": "3152"
}
},
{
"cvv": 129,
"issuer": "U.S. BANK, N.A.",
"id": "0d074efe-69e2-4e30-b49a-4cead1ea8411",
"number": "4431387818727358",
"expiration": "12/2030",
"brand": "visa",
"number_alt": {
"masked": "************7358",
"unmasked": "4431 3878 1872 7358",
"last4": "7358"
}
},
{
"cvv": 249,
"issuer": "AUGUSTA VAH F.C.U.",
"id": "2f01f458-7422-400e-bbcf-41364564193b",
"number": "4425919427248836",
"expiration": "12/2030",
"brand": "visa",
"number_alt": {
"masked": "************8836",
"unmasked": "4425 9194 2724 8836",
"last4": "8836"
}
},
{
"cvv": 892,
"issuer": "CITIZENS SECURITY BANK AND TRUST COMPANY",
"id": "d311e9d0-f410-4f75-a21f-f14125c88cbb",
"number": "4127737519045634",
"expiration": "12/2030",
"brand": "visa",
"number_alt": {
"masked": "************5634",
"unmasked": "4127 7375 1904 5634",
"last4": "5634"
}
},
{
"cvv": 524,
"issuer": "CREDIT LIBANAIS S.A.L.",
"id": "64113f4d-c625-43d2-9d82-04f220c9e26f",
"number": "4741441509416816",
"expiration": "12/2030",
"brand": "visa",
"number_alt": {
"masked": "************6816",
"unmasked": "4741 4415 0941 6816",
"last4": "6816"
}
}
],
"owner": {
"name": "Benny Swaniawski",
"address": {
"street": "007 Nelson Mountains",
"city": "Margueriteton",
"state": "Washington",
"zipCode": "39956-7950"
},
"avatar": "https://storage.googleapis.com/apiverve/APIResources/faces/Male/30-40/12345678.jpg?X-Goog-Signature=..."
}
}
}Support & Community
- 🏠 API Home: Test Card Generator API
- 💬 Support: https://apiverve.com/contact
- 🐛 Issues: GitHub Issues
- 📖 Documentation: https://docs.apiverve.com
- 🌐 Website: https://apiverve.com
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Security
For security concerns, please review our Security Policy.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Built with ❤️ by APIVerve
Copyright © 2026 APIVerve. All rights reserved.