0
嗨我打电话给一个名为生命百科全书的物种数据库的api。我最初调用一种称为搜索的方法,该方法呈现30个结果(我将这种方法称为下面的方法),但对于30个结果,我称这个方法为每个结果提供信息,所以我基本上称这种方法为30结果和它非常缓慢。你有什么建议让这些API调用更快?谢谢Api请求JSON缓慢的性能
$jsonurls = 'http://eol.org/api/pages/1.0/'.$id.'.json?images=2&videos=0&sounds=0&maps=0&text=2&iucn=false&subjects=overview&licenses=all&details=true&common_names=true&synonyms=true&references=true';
$jsons = file_get_contents($jsonurls,0,null,null);
$responsetaxObjects = json_decode($jsons);
//then I run through the object array like this
foreach($responsetaxObjects->taxonConcepts as $sources){
}