 user data for testing out scripts and doing tutorials and populating databases for testing purposes and I've done that by taking real voter registration and shuffling up the names and Addresses and whatnot, but there's a lot of projects out there, but I came across this one the other day I really like it. It's called the web website is random user dot me and it's a free and open-source API for generating random user data And I came across this because I was looking for user images, but it gives you a lot more than that So you can see here here's a website and shows a some user information here I can see all this girl's information again It's not real if I refresh the page it should give me somebody else with other fake information And you can see if we go to photos here, you know, just Randomly I don't say generated images, but it randomly selected from their list of images Some images to display and if I refresh the page it's going to give me different images and I can do that and It's super simple. So how does it work? Let's go up to their documentation and just click on How to use and right here it just it shows you some JavaScript here for doing doing a Ajax request in the background, but all I really need is this URL right here, which is Random user dot me for it slash API if I put that in my browser right here. I hit enter It's going to give me a random user's worth of information Web browser doesn't format very well right here But if we look here, this is an example of what we'd get and each time I call that URL it will give me Different information, but it will tell you For results the agenda it will give you a title a first and last name it will generate a address for you with a city in a state and a postal code and Latitude and longitude time zones it will generate a fake email address Obviously, it's not a real email address that you can use this is all for again when you're testing software You need to see what it's like using real user data, but you don't necessarily have the user data You can generate fake user data like this You know it give you a user name will generate a password that person with a salt and a hash and you know a date of birth So you don't have to you can generate all this stuff yourself with a script But it's super simple this way and you get those images which are real images that people have submitted so again Super simple to just get one user bit of information here, but if we read down a little bit further You can see you can also request a certain number of results right here. They're listing 5000 Let's just do 50. So again, it's just random user dot me API Question mark and then you give it results and the number of results you want I can do five I can do 50 I could do 500 and not only is it giving me again that user information But it's also giving me a link to an image a large image, which still isn't a very high resolution You know, it's just basically for applications a medium and a thumbnail, which is even smaller And you can link to those directly as well There's other things you can do, you know other than results you can also say gender you want a Male image if you want a password you can tell it for password I want upper and lower case 1 to 16 Characters so a lot of stuff you can do but what's great about this is again It's you're just doing an API call So you can do it through JavaScript like this or any language that you can do an HTTP request So how we would do this in the shell? Well, let's go to the shell and again the URL is just Random user dot ME API so I can use W get or curl if you prefer curl And I'm just gonna say quiet and dump the output to the shell here and there we go I got random user data and of course I can if you have jq installed if not It's in your repositories very useful help you format and search through JSON output I can do pipe it into jq dot and It will format it for me. So that's the same information just Formatted a little bit nicer so we can read it I can scroll back here You can see what it's generated for me and I can do the same thing and again I can change this and I can say question mark results Equal 10 and I will get 10 different random users generated and of course I can Look at this image here that it got so that's the user image generated there again They seem to have a folder for women and men and there's kind of numbers You can almost just not even use the whole API if there's a picture you want to use regularly you just you know type in that number and That's person 20 if I'm in the women's directory So yeah super simple generate stuff I have some notes on this up on pay spin Which I will link to in the description of the video and of course You can simply do something like this and then I could grep for large and probably get the large image there And then I can cut based on The quotation marks probably for I think there we go now. I got a bunch of Large again, they're not very high resolution, but I got user images So I just do that there of course if you're more familiar with things using jq more efficiently might be to use jq So I could do something like this. I'll just copy it from my notes again This will be in the link in the description But I'm gonna say give me two results put it in jq I'm gonna say okay from those results from the array find a name. I want the first and The large picture so I do that It gave me a first name and a large picture, which is not an English name. Let's see. There we go. So Jersey and rowy. I don't know if that's how you say that So Yeah, so you can use grep if you want jq is a useful tool once you learn how to use it I have many examples on the a pay spin link in the notes in the description of the video How to search for different things using jq in this API, but I hope that you found this useful I certainly will use this in the future even if it's just for thumbnails, you know and again once you you get one of these URLs you can just use something like image magic so To display it or whatever, you know Whatever image viewer as long as it does URLs or you can just download it and open it so now I'm rambling a little bit I thank you for watching. I hope you do find this useful and I hope that you have a great day