title: How to get a channel ID from a channel name for a channel with spaces in between
body: <p>Trying the below HTTP Get Requests</p>
  <p>URL = &quot;https://www.googleapis.com/youtube/v3/channels&quot;
  getReqParams = {&quot;key&quot;: &quot;YOUR_API_KEY&quot;, &quot;forUsername&quot;: &quot;Traveling Desi&quot;, &quot;part&quot;: &quot;id&quot;}</p>
  <p>URL = &quot;https://www.googleapis.com/youtube/v3/channels&quot;
  getReqParams = {&quot;key&quot;: &quot;YOUR_API_KEY&quot;, &quot;forUsername&quot;: &quot;AutoVlog&quot;, &quot;part&quot;: &quot;id&quot;}</p>
  <p>It does not return anything in the item list. The channel names were copied directly from YouTube.</p>
  <p>Code Sample</p>
  <pre><code>import requests 
  channelName = &quot;Traveling Desi&quot;
     
  URL = &quot;https://www.googleapis.com/youtube/v3/channels&quot;
  getReqParams = {&quot;key&quot;:&quot;YOUR_API_KEY&quot;, &quot;forUsername&quot;: channelName, &quot;part&quot;: &quot;id&quot;}
  
  r = requests.get(url=URL, params=getReqParams)
  </code></pre>