randomapi / randomuser.me-old-source Goto Github PK
View Code? Open in Web Editor NEW[Deprecated] PHP source for Random User Generator - Please take a look at the new Node version
Home Page: https://randomuser.me
[Deprecated] PHP source for Random User Generator - Please take a look at the new Node version
Home Page: https://randomuser.me
Example, in french :
Miss => Mlle
Ms, Mrs => Mme
Mr => M
Would save some frustration and headaches of end-users not having to implement their own capitalizing functions
For example:
https://randomuser.me/api/portraits/women/11.jpg
and
https://randomuser.me/api/portraits/thumb/women/11.jpg
are 2 different women.
This also leads to problems on your website. Steps to reproduce the issue are as follows:
Hi,
There is a problem in randomuser.me/api . Please fix it cuz I'm testing my project with it! ;) tnx
504 Gateway Time-out
AL
AL
AZ
AR
CA
CL
CT
DE
FL
GA
HI
ID
IL
IN
IA
KA
KY
LA
ME
MD
MA
MI
MN
MS
MT
MO
NE
NV
NH
NJ
NM
NY
NC
ND
OH
OK
OR
PA
RI
SC
SD
TN
TX
UT
VT
VA
DC
WV
WI
WY
WordPress installs don't use local images by default, they use Gravatar. I was thinking of building a random user importer using the API. It would be great if email addresses had associated Gravatar images. Feel free to close if the idea is infeasible.
Some languages have different endings for Male and Female last names.
My suggestions is to look for female_last_names.txt file and use it if present, otherwise stick to default last_names.txt
Hello,
Can you add support for pagination? Or just additional parameter for offset.
I understand that this is based on the unix timestamp that is used for the dob
field. But, for a number of reasons, it would be great to have some older random users generated as well.
Based on the current dob
field format, I'm not sure how this would be done. Time before epoch??
I'll be generating my own birthdays for the time being, but older users would be great.
Looks like the Random User API is down? Got the following error:
Error 502 Ray ID: 56a51f591829d276 • 2020-02-24 23:12:06 UTC
Bad gateway
Noticed because I have a project on my website that uses it.
using "results" parameter returns n number of users but all from the same nationality.
Can I commit other language data ??
I see you don't merge a German data #27
I have shared C# code for using and displaying data from RandomAPI/Randomuser.me-Data
And probably AGE limited avtars
Hey there!
When requesting multiple users, is there a way to find a per-generated-user seed
to make a second call that only returns the first item in the results array?
If not, would it make sense to move seed
outside of the first result in the results array?
Background — I'm making two calls to your API:
seed
from the first result in the first call to (theoretically) fetch the first user in the list again: https://www.runscope.com/public/03041da1-29a4-4d55-9f08-90098f078340/03093baa-4b6b-4a10-85d1-6f681ba89155Expected behavior: The seed
in the first result would apply to only that randomly generated user, and making a subsequent call to /?seed={{seed}}
would return that same first user.
Actual behavior: seed
is included in the first item in the results array but applies to the entire list of results, rather than the first item. I couldn't find a per-generated-user seed
in the response body when making a call like /?results=100
.
The main reason I can see the password element being used, is to test the validation of password input fields on a form. In many cases, it is necessary to test that correct validation takes place for special characters, numbers etc. Adding more "random" looking passwords would be a good idea I think.
Currently some local names have unicode characters (groß, Işik, etc), how about names in a different alphabet (Greek, Cyrillic)? Should we agree to use english-transliterated version?
It seems like both website and the api is down
I requested 200 random users and all the user birth days are in January 1970. Is this a bug or by design?
Related to issue #10, the nationality parameter also doesn't work. It randomly returns US or GB. It might require the same fix.
https://randomuser.me/api/?results=200
This doesn't return a valid JSON. It returns only part of it, around ~30 entries, I think, then it stops.
I was using rand(0, 10000) to generate a seed to work with and began noticing that seeding wasnt working, after some very limited test on only integers as seeds, it seems that some seeds work and some dont when only using integers as seeds. I'm using a results parameter of 20 too.
Testing for me:
http://api.randomuser.me/?seed=252&results=20 - Respects seed
http://api.randomuser.me/?seed=2&results=20 - Does not respect seed
http://api.randomuser.me/?seed=200&results=20 - Respects seed
http://api.randomuser.me/?seed=100&results=20 Does not respect seed
I've no idea what the pattern here is?
Why have the user pictures changed?
Hi
This is an awesome API - just a couple of improvements for GB based users would help as follows...
GB Postcode formats are alphanumeric and between six and eight characters long. They are divided into two parts separated by a single space. Examples of postcodes include "SW1W 0NY", "PO16 7GZ", "GU16 7HF", or "L1 8JQ".
As for phone numbers well... formatting them can be complex. You can read much more detail here: http://www.area-codes.org.uk/formatting.php
The basic list of geographic patterns below show the various valid formats in the UK:
01### #####
01### ######
011# ### ####
01#1 ### ####
013873 #####
015242 #####
015394 #####
015395 #####
015396 #####
016973 #####
016974 #####
016977 ####
016977 #####
017683 #####
017684 #####
017687 #####
019467 #####
02# #### ####
Non geographic numbers:
03## ### ####
05### ######
0500 ######
07### ###### Note: Mobile (Cell) numbers always begin "07..."
0800 ######
08## ### ####
09## ### ####
Hope that helps!
Cheers
Maybe consider the ability to point an image tag to the site (randomuser.me/randimg) that would spit out a random user picture. So I could simply drop a few img tags in and get random user pictures.
The Irish data generated does not include a City. Also It includes a State and a Zip. See http://api.randomuser.me/?nat=ie for an example.
The correct format for Irish addresses is as follows:
[Firstname] [Lastname]
[Street Address]
[City name]
Co. [Countyname]
State is not required, but postcodes are being introduced in Summer 2015.
It would be useful to have a seed
for each individual user in the list, so we could reference to the same user later. Now it includes the seed
only in the first record and it seems to be a seed
for the multiple users request itself
For example, our app needs only name & email. Is there anyway for the API to generate only these fields?
Of course, right now we can fetch only required things from API result. However I think it would be faster if API has to generate only a few fields that we need.
i'm suggesting a solution that can be very useful for the utilization of this API by developers.
i figured out that some fields changes name for every nationality, we have the "Zip" field and the " Social Security number " field that change name.
- zip field -
For all nationality it is named "zip" but for GB it is named "Postcode"
- Social Security number field -
here a the list of every nationality available now on the API
AU = PPS
DE = HETU
ES = DNI
FI = HETU
FR = INSEE
GB = NINO
IE = PPS
NL = BNS
US = SSN
this is a model that works with US ( see the field SSN ) :
but if we change the nationality for exemple DE ( the field needs to be named HETU ) and if i use the same Model my application will crash,
Yes i can add some conditions, but i know that the API is growing and later some new nationalities will be added,
i propose :
http://api.randomuser.me/?gender=female
You can see this by reloading that URL a few times.
http://api.randomuser.me/?format=csv still returns a json result
Pretty much self-explanatory.
Small dataset, I know, but only 1/12 returned results were women.
We can do better than this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.