Jump to content
UBot Underground

[Free] Randomuser.me Api


Recommended Posts

randomuser.me API. Feel free to use it.

 

HTTP Post Plugin [Required]

JSONPath Plugin [Required]

define $Random User API {
    set(#success,0,"Local")
    set(#successCounter,0,"Local")
    loop while($both($comparison(#success,"!= Does not equal",1),$comparison(#successCounter,"< Less than",3))) {
        set(#post,$plugin function("HTTP post.dll", "$http get", "http://api.randomuser.me/?nat=US&gender=male", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36", "", "", 5),"Local")
        if($not($contains(#post,"The remote server returned an error"))) {
            then {
                set(#success,1,"Local")
            }
            else {
                wait(3)
            }
        }
        increment(#successCounter)
    }
    set(#user,"{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..first")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..last")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..street")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..city")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..state")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..zip")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..phone")},{$plugin function("JSONpath.dll", "$JSONpath parser", #post, "$..nationality")}","Local")
    return(#user)
}

Usage:

clear list(%user)
add list to list(%user,$list from text($Random User API(),","),"Don\'t Delete","Global")
alert("{$list item(%user,0)} {$list item(%user,1)} {$list item(%user,2)} {$list item(%user,3)} {$list item(%user,4)} {$list item(%user,5)} {$list item(%user,6)} {$list item(%user,7)}")
Edited by heopas
  • Like 1
Link to post
Share on other sites
  • 9 months later...

Thanks for sharring

 

randomuser
has many download formats including .csv
and many other options too

 

https://randomuser.me/documentation
download file("http://api.randomuser.me/?results=5000&gender=female&format=csv&nat=us,gb&dl","{$special folder("Desktop")}\\5k-female-english.csv")


will get you 5k females english names from us and gb

 

no plugins


Thanks,
Nick

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...