title: Using Google API in Angular 4
body: <p>I am trying to connect to google API through http get service in Angular 4, however, I cannot access. The code looks like the following: </p>
  
  <pre><code>const requestHeaders = new Headers();
  requestHeaders.append('Content-Type', 'application/x-www-form-urlencoded');
  
  const options = new RequestOptions({ headers: requestHeaders });
  const myURL = 'https://kgsearch.googleapis.com/v1/entities:' +
      'search?query=taylor+swift&amp;key=MYKEY&amp;limit=1&amp;indent=True';
  return this.http.get(myURL, options)
  .map((res: Response) =&gt; res.json())
  .subscribe(
      data =&gt; console.log(data),
      err =&gt; console.log(err),
      () =&gt; console.log('output')
  );
  </code></pre>