作者 lyh

gx

... ... @@ -47,7 +47,13 @@ class RapIdApIService
*/
public function requestKeywordUrl($keyword){
$this->url = 'https://google-keyword-insight1.p.rapidapi.com/topkeys';
$url = $this->url.'/?keyword='.$keyword.'&location=US&&lang=en';
$param = [
'keyword'=>$keyword,
'location'=>'US',
'lang'=>'en'
];
$query_string = http_build_query($param);
$url = $this->url.'/?'.$query_string;
return $this->curlGoogleApi($url);
}
... ...