├── Users ├── php.ini ├── FetchUsernames.php ├── FetchUserIds.php ├── RawUsername.php ├── CurrentUsername.php ├── UserId.php ├── AllUsernames.php └── UserInfo.php ├── Assets ├── php.ini └── AssetInfo.php ├── Groups ├── php.ini ├── GroupOwner.php ├── GroupName.php └── GroupDescription.php └── README.md /Users/php.ini: -------------------------------------------------------------------------------- 1 | allow_url_fopen = ON -------------------------------------------------------------------------------- /Assets/php.ini: -------------------------------------------------------------------------------- 1 | allow_url_fopen = ON -------------------------------------------------------------------------------- /Groups/php.ini: -------------------------------------------------------------------------------- 1 | allow_url_fopen = ON -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Roblox-API 2 | ========== 3 | 4 | A library of all my PHP Roblox APIs 5 | 6 | Some APIs are not shared publicly on robloxapi.com but are open to take and use here. 7 | 8 | How to use 9 | ========== 10 | 11 | You must have allow_url_fopen enabled in your PHP settings 12 | 13 | Please give credit if you are going to use this. 14 | -------------------------------------------------------------------------------- /Groups/GroupOwner.php: -------------------------------------------------------------------------------- 1 | '); 7 | $End = strpos(substr($GroupPage,$Start),""); 8 | $Owner = substr($GroupPage,$Start,$End); 9 | $Owner = substr($Owner,strlen('onclick="" >')); 10 | $JSON = array( 11 | GroupId => $GroupId, 12 | GroupOwner => $Owner 13 | ); 14 | 15 | echo json_encode($JSON); 16 | ?> -------------------------------------------------------------------------------- /Assets/AssetInfo.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Groups/GroupName.php: -------------------------------------------------------------------------------- 1 | '); 7 | $End = strpos(substr($GroupPage,$Start),""); 8 | $Name = substr($GroupPage,$Start,$End); 9 | $Name = substr($Name,strlen('

')); 10 | $JSON = array( 11 | GroupId => $GroupId, 12 | GroupName => $Name 13 | ); 14 | 15 | echo json_encode($JSON); 16 | ?> -------------------------------------------------------------------------------- /Users/FetchUsernames.php: -------------------------------------------------------------------------------- 1 | = $i) { 11 | $i++; 12 | if (!($UserIds[$i] == null)) { 13 | $Username = file_get_contents("http://api.robloxapi.com/Users/RawUsername?UserId=" . $UserIds[$i]); 14 | array_push($Usernames, $Username); 15 | } 16 | } 17 | echo json_encode($Usernames); 18 | } 19 | ?> -------------------------------------------------------------------------------- /Users/FetchUserIds.php: -------------------------------------------------------------------------------- 1 | = $i) { 11 | $i++; 12 | if (!($Usernames[$i] == null)) { 13 | $UserId = json_decode(file_get_contents("http://api.robloxapi.com/Users/UserId?Username=" . $Usernames[$i])); 14 | array_push($UserIds, $UserId); 15 | } 16 | } 17 | echo json_encode(array(UserIds=>$UserIds)); 18 | } 19 | ?> -------------------------------------------------------------------------------- /Groups/GroupDescription.php: -------------------------------------------------------------------------------- 1 | '); 7 | $End = strpos(substr($GroupPage,$Start),""); 8 | $Description = substr($GroupPage,$Start,$End); 9 | $Description = substr($Description,strlen('
'));
10 | 	$JSON = array(
11 | 		GroupId => $GroupId,
12 | 		GroupDescription => $Description
13 | 	);
14 |   
15 |   	echo json_encode($JSON);
16 | ?>


--------------------------------------------------------------------------------
/Users/RawUsername.php:
--------------------------------------------------------------------------------
 1 | ');
 7 | 	$End = strpos(substr($ProfilePage,$Start),"");
 8 | 	$Username = substr($ProfilePage,$Start,$End);
 9 | 	$Username = substr($Username,strlen(''));
10 | 	echo $Username;
11 | ?>


--------------------------------------------------------------------------------
/Users/CurrentUsername.php:
--------------------------------------------------------------------------------
 1 | ');
 7 | 	$End = strpos(substr($ProfilePage,$Start),"");
 8 | 	$Username = substr($ProfilePage,$Start,$End);
 9 | 	$Username = substr($Username,strlen(''));
10 | 	$JSON = array(
11 | 		UserId => $UserId,
12 | 		Username => $Username
13 | 	);
14 |   
15 |   	echo json_encode($JSON);
16 | ?>


--------------------------------------------------------------------------------
/Users/UserId.php:
--------------------------------------------------------------------------------
 1 | ');
 8 | 	$UserId = substr($ProfilePage,$Start,$End);
 9 | 	$UserId = substr($UserId,strlen(' $Username,
15 | 		UserId => $UserId
16 | 	);
17 |   
18 |   	echo json_encode($JSON);
19 | ?>


--------------------------------------------------------------------------------
/Users/AllUsernames.php:
--------------------------------------------------------------------------------
 1 | ");
 8 | 	$Usernames = substr($ProfilePage,$Start,$End);
 9 | 	$Usernames = substr($Usernames,strlen("
 9 |     ');
10 | $endBlurb = strpos(substr($data,$startBlurb),'');
11 | $blurb = substr($data,$startBlurb,$endBlurb);
12 | $blurb = substr($blurb,strlen('
13 | ')); 14 | $blurb = str_replace("
","\n",$blurb); 15 | // Friends 16 | $startFriendStats = strpos($data,''); 17 | $endFriendStats = strpos(substr($data,$startFriendStats),''); 18 | $friends = substr($data,$startFriendStats,$endFriendStats); 19 | $friends = substr($friends,strlen('')); 20 | // Forum Posts 21 | $startForumPostStats = strpos($data,''); 22 | $endForumPostStats = strpos(substr($data,$startForumPostStats),''); 23 | $forumPosts = substr($data,$startForumPostStats,$endForumPostStats); 24 | $forumPosts = substr($forumPosts,strlen('')); 25 | echo $blurb; 26 | ?> --------------------------------------------------------------------------------