RandomUser API

Beginner's Pick Test Data / No Auth Required Beginner HTTPS
Free to Use
72 B
Measured Score 0 50 100 Speed 16/30 Consistency 13/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

Overview

RandomUser generates complete fake user profiles — including name, email, address, photo, and more — in a single JSON response. It requires no authentication and is great for populating UI mockups with realistic-looking people. Use the results parameter to request multiple users at once.

Beginner Tip

Use the nat parameter to specify a nationality (e.g. nat=us or nat=gb) so that names, addresses, and phone numbers match a realistic regional format.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://randomuser.me/api/?results=5&nat=us
Result
HTTP 200 · application/json · 5,493 bytes · compressed
Response time
233 ms (median of 3) · fastest 202 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
cloudflare
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
gender string female
name object {1 fields}
location object {1 fields}
email string [email protected]
login object {1 fields}
dob object {1 fields}
registered object {1 fields}
phone string (292) 475-0947
cell string (392) 979-9047
id object {1 fields}
picture object {1 fields}
nat string US

Captured Response

Captured from a real request to https://randomuser.me/api/?results=5&nat=us on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "results": [
    {
      "gender": "female",
      "name": {
        "…": "(3 more fields)"
      },
      "location": {
        "…": "(7 more fields)"
      },
      "email": "[email protected]",
      "login": {
        "…": "(7 more fields)"
      },
      "dob": {
        "…": "(2 more fields)"
      },
      "registered": {
        "…": "(2 more fields)"
      },
      "phone": "(292) 475-0947",
      "cell": "(392) 979-9047",
      "id": {
        "…": "(2 more fields)"
      },
      "picture": {
        "…": "(3 more fields)"
      },
      "nat": "US"
    }
  ],
  "info": {
    "seed": "d2e4768fea187496",
    "results": 5,
    "page": 1,
    "version": "1.4"
  }
}

Field Reference

results Array of generated user objects
name Object with title, first, and last name strings
email Randomly generated email address
picture URLs for large, medium, and thumbnail profile photos
location Full address including street, city, country, and postcode
login Generated username, password hash, and UUID

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://randomuser.me/api/?results=5&nat=us";
const response = await fetch(url);
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.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/plain
Not Found

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

Single user returned unexpectedly Omitting the results parameter defaults to 1 user
Add ?results=10 (up to 5,000) to get multiple users in one call
Inconsistent data across calls Results are randomized each request by default
Add &seed=abc123 to get the same dataset every time for reproducible tests
Large payload slowing things down Requesting more fields than needed
Use the inc parameter to request only the fields you need, e.g. &inc=name,email,picture

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 16/30
Consistency 13/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 233ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Test Data
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →