Public Api’s to generate random users
Hi Everybody, hopefully you all are enjoying this lazy Sunday. Today I am going to give an amazing insight of publicly available apis which will give you all new ideas about development of new products (or features in your existing products). Here we go –
UI Names
http://uinames.com/ is a unique api which give a random user details based on several filters, let’s have a look
request –
http://uinames.com/api/?region=india&amount=2
and see the response
[{"name":"Chirag","surname":"Sen","gender":"male","region":"India"},{"name":"Aanya","surname":"Mistry","gender":"female","region":"India"}]
this api is like a gem to start you product from scratch.
Generate Random User
I have come across another amazing api called https://randomuser.me/ where it will give random user. Let’s have an example –
just try this request –
http://api.randomuser.me/?gender=male&result=1
and here what you get
{"results":[{"gender":"male","name":{"title":"mr","first":"kuzey","last":"kulaksızoğlu"},"location":{"street":"6313 bağdat cd","city":"adıyaman","state":"yozgat","postcode":16356},"email":"kuzey.kulaksızoğlu@example.com","login":{"username":"lazywolf365","password":"ripple","salt":"VCcoekTG","md5":"61ba628d33b85bae02231a9dbf4bc120","sha1":"1b7879146d6017cf6d9068de36b307d9ffe8d352","sha256":"d5edc6218b9237aa00e20f849e59ec23430f4100c6972153d937820c8d9f72b4"},"registered":1424040390,"dob":150739962,"phone":"(398)-445-7898","cell":"(203)-356-1491","id":{"name":"","value":null},"picture":{"large":"https://randomuser.me/api/portraits/men/16.jpg","medium":"https://randomuser.me/api/portraits/med/men/16.jpg","thumbnail":"https://randomuser.me/api/portraits/thumb/men/16.jpg"},"nat":"TR"}],"info":{"seed":"eee4ce9d03dd7881","results":1,"page":1,"version":"1.0"}}
UI Faces
Here is another api which gives random user details, but primary objective of this api is seems like giving user details with different sizes images of user faces. Here is the sample of it
request –
http://uifaces.com/api/v1/random
response of UI Faces –
{"username":"mfacchinello","image_urls":{"epic":"https:\/\/s3.amazonaws.com\/uifaces\/faces\/twitter\/mfacchinello\/128.jpg","bigger":"https:\/\/s3.amazonaws.com\/uifaces\/faces\/twitter\/mfacchinello\/73.jpg","normal":"https:\/\/s3.amazonaws.com\/uifaces\/faces\/twitter\/mfacchinello\/48.jpg","mini":"https:\/\/s3.amazonaws.com\/uifaces\/faces\/twitter\/mfacchinello\/24.jpg"}}
That’s all for today, you lazy bones 🙂
Happy coding!!!