title: How to get files in My Drive using Google Drive API v3?
body: <p>I'm trying to get list of files and folders in My Drive via this endpoint </p>
  
  <blockquote>
    <p><a href="https://www.googleapis.com/drive/v3/files" rel="noreferrer">https://www.googleapis.com/drive/v3/files</a></p>
  </blockquote>
  
  <p>but the result returned is all my files (not same with My Drive).</p>
  
  <p>Can I get correct list of resources like Outlook app ?</p>
  
  <p>Regards,</p>
  
  <p><strong>Solution</strong>
  To get items list in "My Drive", I have to pass this query in the request</p>
  
  <blockquote>
    <p>q='root' in parents</p>
  </blockquote>