Random User API
Generate realistic random user data (names, photos, addresses) for testing.
What it does
Random User Generator returns realistic fake user records — name, gender, address with coordinates and timezone, email, login credentials, date of birth and registration, phone numbers, ID numbers and profile photos — for populating UIs and test data.
Base URL
Authentication
None. ?results=10 for a batch, plus gender=, nat=us,gb,fr (nationalities), inc=/exc= to pick fields, seed= for reproducible data, and page= with a seed for stable pagination.
Code examples
curl -s "https://randomuser.me/api/?results=3&nat=gb&inc=name,email,picture"
import requests
r = requests.get("https://randomuser.me/api/", params={
"results": 5, "seed": "larzos", "nat": "us"}, timeout=10)
for u in r.json()["results"]:
n = u["name"]
print(n["first"], n["last"], u["email"])Rate limits & quotas
No hard rate limit for reasonable use; it is a static generator. Large results values are fine. Use seed so your tests and screenshots are reproducible — the same seed always yields the same users, and seed + page gives stable pages.
Key response fields
| results[].name.title / first / last | Name parts |
| results[].location | Street, city, state, country, postcode, coordinates, timezone |
| results[].email / phone / cell | Contact details |
| results[].login.uuid / username / password | Fake credentials (uuid is handy as a stable id) |
| results[].picture.large / medium / thumbnail | Profile photo URLs |
| info.seed | The seed used — echo it to reproduce |
Common errors
| (uppercase nat) | Nationality codes must be uppercase (nat=US); lowercase is ignored. |
| (field name typos in inc/exc) | Unknown field names are silently dropped — check output. |
| 500 (rare) | Transient — retry. |
When to use it (and alternatives)
The standard for seeding user tables, building list/table/profile UIs before real data exists, and demo screenshots. For placeholder body text use Bacon Ipsum; for placeholder avatars specifically, DiceBear or UI Avatars.
FAQ
How do I get the same users every time?
Pass seed=yourstring. The generator is deterministic per seed, so your fixtures, tests and screenshots stay stable. Add page=2 (with the same seed) for a stable second page.
Can I limit which fields come back?
Yes — inc=name,email,picture to include only those, or exc=login,id to drop sensitive-looking ones.
Are the photos of real people?
The default photo set is a fixed library of AI/stock-style faces reused across generated users — fine for mockups, not unique per user.
New to APIs?
Short guides for working with this API — and any other.