GET /randomuser
Genereerige a realistic random user profile from the RandomUser.me API, a popular service for generating fake user data. Tagastab täieliku user identity sealhulgas name, email, phone, address (street, city, state, country, postcode), date of birth, age, profile picture URLs (thumbnail, medium, large), login credentials (username, password), nationality, and a unique ID. Unlike the /generate/user lõpp-punkt which generates simple profiles locally, this lõpp-punkt produces richer, more realistic data with actual profile photos. Ideaalne UI prototyping, populating demo environments, testing user registration flows, and creating realistic mockup data for presentations.
gender
valikuline
Filter by gender (male or female)
nat
valikuline
Nationality code (e.g., US, GB, NO, FI, DK)
| Nimi | Kohustuslik | Vaikeväärtus | Kirjeldus |
|---|---|---|---|
gender |
Ei | - | Filter by gender (male or female) |
nat |
Ei | - | Nationality code (e.g., US, GB, NO, FI, DK) |
curl https://nordapi.ee/api/v1/randomuser
curl https://nordapi.ee/api/v1/randomuser
curl "https://nordapi.ee/api/v1/randomuser?nat=NO"
curl "https://nordapi.ee/api/v1/randomuser?gender=female&nat=FI"
curl "https://nordapi.ee/api/v1/randomuser?nat=DK"
{
"count": 1,
"data": [
{
"age": 39,
"date_of_birth": "1986-12-11T15:23:36.657Z",
"email": "alexander.serrano@example.com",
"gender": "male",
"location": {
"city": "Fuenlabrada",
"country": "Spain",
"latitude": "-35.2947",
"longitude": "-116.4123",
"postcode": 92601,
"state": "Asturias"
},
"name": {
"first": "Alexander",
"last": "Serrano",
"title": "Mr"
},
"nationality": "ES",
"phone": "948-433-893",
"picture": {
"large": "https://randomuser.me/api/portraits/men/53.jpg",
"medium": "https://randomuser.me/api/portraits/med/men/53.jpg",
"thumbnail": "https://randomuser.me/api/portraits/thumb/men/53.jpg"
},
"registered": "2017-10-22T02:25:12.623Z",
"username": "silverfish237"
}
],
"success": true
}