$url = 'https://escapetalk.nl/api/reviews/'; $data = array( 'apikey' => 'SClESHS4Z8BkV1Kc57YTu0knW', 'loc_id' => '265', 'max_score' => '10', 'min_score' => '10', 'sort_type' => 'review_date', 'sort' => 'desc', 'limit' => '10' ); $options = array( 'http' => array( 'header' => 'Content-type: application/x-www-form-urlencoded', 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); $result = json_decode($result);