GeneradorDNI API

Test Data / API Key Intermediate HTTPS
Varies by plan (check documentation)

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

vehicle make and model
year and specifications
fuel economy
VIN decode data

Example Response

JSON 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

401 Unauthorized Missing or invalid API key in the request
Append your API key as the apikey query parameter: ?apikey=YOUR_API_KEY
Unexpected data format Different endpoints return different schemas for profiles, vehicles, and banks
Read the API documentation for each specific endpoint path, as the response structure varies significantly between resource types
429 Too Many Requests Exceeded the rate limit for your API key tier
Add delays between requests and cache generated test data locally so you do not need to regenerate it on every test run

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Test Data
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →