Generator · Spanish data

Spanish person

Endpoint GET /v1/es/person

What it covers

Returns a synthetic Spanish person: given name(s), surname, initials, birth date, and the matching DNI. Constrain with `sex` and age/birth-date filters (contradictory combinations are rejected with a 400). Set `invalid=true` for a deliberately wrong check value, `edge=true` for rare-corner values, and `caseStrict=false` to mangle the name casing.

Parameters

ParameterTypeDescription
atAgeintegerExact age in years at request time.
bornAfterstringpattern ^\d{4}(?:-\d{2}(?:-\d{2})?)?$Born after this date or fragment (YYYY, YYYY-MM, YYYY-MM-DD).
bornBeforestringpattern ^\d{4}(?:-\d{2}(?:-\d{2})?)?$Born before this date or fragment (YYYY, YYYY-MM, YYYY-MM-DD).
bornOnstringpattern ^\d{4}(?:-\d{2}(?:-\d{2})?)?$Born on a date or within a fragment: YYYY, YYYY-MM, or YYYY-MM-DD.
caseStrictbooleanDefaults to true (proper casing). Set false to deliberately mangle the casing of name and surname; initials stay proper uppercase.
countinteger1–1000Number of records to return, 1–1000 (your plan may lower this). Omitted returns a single record; set it for a batch.
edgebooleanBias the number and name shape toward their rarely-exercised corners.
extremebooleanReturn a correct person whose name and surname are wrapped in a hostile encoding (untrimmed whitespace, invisible/zero-width characters, BOM, homoglyph letters, or bidi/combining marks). initials, birthDate, and the national identifier stay clean.
invalidbooleanReturn a person whose DNI has a deliberately wrong check value.
olderThanintegerMinimum age in years at request time.
seedintegerInteger seed for reproducible output: the same seed always yields the same record.
sex"m" | "f"Encoded sex: "m" or "f".
youngerThanintegerMaximum age in years at request time.

Response fields

FieldTypeDescription
namestringGiven (first) name(s).
surnamestringSurname.
initialsstringUppercase initials of name and surname, no dots.
birthDatestringThe birth date, ISO `YYYY-MM-DD`.
dnistringThe matching DNI.

Other generators for Spain

See all generators for Spain →

The same kind of identifier elsewhere

Try it

Generate a live example below — every response is valid by format and entirely synthetic.