"JSON", 'title' => "Mr", 'callingname' => "John", 'familyname' => "Doe", 'companyname' => "ACME Ltd", 'sedamo' => "ABCDEFGH", 'email' => "john@example.com", 'username' => "john_doe", 'password' => "", // password will be generated automatically 'language' => "en" ); $url = "https://api.sedamo.info/2.0/account/create?" . http_build_query($data); $json = file_get_contents($url); $json_array = json_decode($json, true); // 2nd parameter "true": returns result as an array var_dump($json_array); // shows array