I use api movie search to display movies from the site from here in php implementation
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://api.kinopoisk.cf/getFilm?filmID=714888 "); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE); $response = curl_exec($ch); curl_close($ch); $querys = json_decode($response); $star=$querys->ratingData->rating; $IMDd=$querys->ratingData->ratingIMDb;
and if on a page with one request it works quickly everything is fine, then on the categories page where there can be a lot of such requests, everything works much more slowly. Writing to the database is not an exit ratings can change very quickly (which is important for newly made films). Would you recommend how to speed up work with api?