Create apiCall.php

API call to get data from posts.json with caching