- file_get_contents: documentation ( source)
- json_decode: documentation ( source)
<?php
$store_id = '5242013';
$url = 'http://app.ecwid.com/api/v1/' . $store_id . '/categories';
$response = file_get_contents(url);
$response = json_decode($response);
echo $response;