Get Download Links for Google Drive Files

I've been looking way too much around for this very simple information: How to getting the download link of a file on Google Drive, If a user has the correct permission to access it?


Two easy steps (that's all):

  1. Extract File ID from Shared URL: The sharable URLs in Google Drive look like<FILE_ID>&usp=sharing. The id can be extracted from the query string's (the part of URL which starts with a ?) id parameter.
  2. Replace that ID with the id in the query string of following URL:<FILE_ID>&export=download

You are done! 😀😀😀

The Rstats tag of this blog is added to R Bloggers