Advertisement
angelgoitia

Untitled

Mar 28th, 2025 (edited)
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. $response = $this->client->get($googleApiUrl, [
  2.                 'query' => [
  3.                     'q' => "{$hashtag} site:instagram.com",
  4.                     'num' => 10,
  5.                     'key' => env('GOOGLE_API'),
  6.                     'cx' => env('GOOGLE_CX'),
  7.                 ],
  8.                 'headers' => [
  9.                     'Accept' => 'application/json',
  10.                 ],
  11.             ]);
  12.  
  13.             $results = json_decode($response->getBody()->getContents(), true);
  14.             dd($results);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement