title: Youtube v3 Api Get video by ID
body: <p>How can I get a single video by its <code>ID</code> using the <code>Youtube API v3</code>.</p>
  
  <p>So far I've only come across search mechanisms and other, but not specifically one to get a single video, the code that I have currently is:</p>
  
  <pre><code>def youtube_search(q, max_results=1,order="relevance", token=None, location=None, location_radius=None):
  
     youtube = build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION, developerKey=DEVELOPER_KEY)
  
     search_response = youtube.search().list(
      q=q,
      type="video",
      pageToken=token,
      order = order,
      part="id,snippet",
      maxResults=max_results,
      location=location,
      locationRadius=location_radius
  
     ).execute()
  
  
  
    videos = []
  
    for search_result in search_response.get("items", []):
      if search_result["id"]["kind"] == "youtube#video":
          videos.append(search_result)
    try:
      nexttok = search_response["nextPageToken"]
      return(nexttok, videos)
    except Exception as e:
      nexttok = "last_page"
      return(nexttok, videos)
  </code></pre>
  
  <p>But I've realized that this method is not efficient but rather wastes time and resources. How can I go about it?</p>