- file_get_contents: documentation ( source)
- json_decode: documentation ( source)
- str_replace: documentation ( source)
<?php
$data = file_get_contents("http://steamcommunity.com/market/priceoverview/?appid=570¤cy=1&market_hash_name=Pudgling");
$data_jsons = json_decode($data, true);
$lowest = $data_jsons['lowest_price'];
$median = $data_jsons['median_price'];
$contents = "Lowest price " . $lowest . " and median price " . $median;
echo str_replace("/$/","", $contents); // It's will replace all HTML special chars
?>