"JSON", 'apikey' => "TestTestTestTestTestTestTestTestTestTest", 'title' => "Mr", 'addrline1' => "ATTN Mr John Doe", 'addrline2' => "ACME Ltd", 'sedamo' => "ABCDEFGH", 'flagairmail' => 1, 'flagregistered' => 0 ); $url = "https://api.sedamo.info/2.0/job/retrieve?" . 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