title: Is it possible to get google api access token by using any REST API Client
body: <p>I am looking for tips or tutorial where I can fetch data from youtube data api.</p>
  
  <p>By using only api key, I can use any rest api client in order to fetch many informations from <a href="https://www.googleapis.com/youtube/v3/channels" rel="nofollow noreferrer">https://www.googleapis.com/youtube/v3/channels</a>.</p>
  
  <p>And now, I would like to get <strong>auditDetails</strong> which needs authorization token <a href="https://developers.google.com/youtube/v3/docs/channels/list#auth" rel="nofollow noreferrer">https://developers.google.com/youtube/v3/docs/channels/list#auth</a>.</p>
  
  <p><strong>[Edit]</strong> </p>
  
  <p>By following the steps <a href="https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps" rel="nofollow noreferrer">below (Using OAuth guides)</a>, I can now make request but I have an error 400 which is redirect_uri_mismatch:</p>
  
  <p><strong>The redirect URI in the request, <a href="http://localhost:9874" rel="nofollow noreferrer">http://localhost:9874</a>, does not match the ones authorized for the OAuth client</strong></p>
  
  <p>In my console developer configuration, I set the redirect authorized url to <a href="http://localhost/authorize.php" rel="nofollow noreferrer">http://localhost/authorize.php</a> </p>
  
  <p>So I do not understand why during the authentification, it uses <a href="http://localhost:9874" rel="nofollow noreferrer">http://localhost:9874</a></p>