Object of class GuzzleHttp\Psr7\Request could not be converted to string $json = $res->getBody()->getContents(); try this