Overview
GeneradorDNI is a data generator API that creates realistic fake profiles including personal identity numbers, vehicle data, bank accounts, and credit card details for testing purposes. You need an API key to use it, which you can obtain by registering on their site. It is particularly useful for developers building Spanish-market applications that need realistic test identity data.
Beginner Tip
Register for a free API key at the GeneradorDNI website before making requests. Use generated data strictly in development environments—never submit fake identity data to real government or financial systems.
Available Data
Example Response
{
"make": "Toyota",
"model": "Camry",
"year": 2025,
"engine": "2.5L 4-cylinder",
"fuel_economy": {
"city_mpg": 28,
"highway_mpg": 39
},
"msrp": 28400
} Field Reference
dni A syntactically valid but fake Spanish national identity number (DNI) nombre Generated first name for the fake person profile apellidos Generated surnames for the fake person profile fecha_nacimiento Fake date of birth in DD/MM/YYYY format sexo Gender field, typically M or F, for the generated profile Implementation Example
const url = "https://api.generadordni.es/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →FakeJSON
FakeJSON provides programmatic access to service to generate test and fake data via REST API.
Mailsac
⭐ Beginner's PickMailsac lets you create disposable email addresses and read incoming messages via API — ideal for testing email-sending features in your app.
Mockaroo
⭐ Beginner's PickMockaroo lets you generate realistic fake datasets in JSON, CSV, SQL, or XML with fully customizable schemas.
Randommer
Randommer is a multi-purpose random data API that generates names, phone numbers, credit card numbers, text, and more — all through a single key-authenticated endpoint.
Bacon Ipsum
⭐ Beginner's PickBacon Ipsum is a fun lorem ipsum generator that returns meat-themed placeholder text in JSON format.