How to Create Google Drive Direct Download Link for Large Files?

Direct Download Large Files from Google Drive with this Simple API Key method and Skip any intermediate Warning Page.
Download Google Drive Large File Direct Link

Google Drive is the most robust Cloud Storage and file hosting platform available in the market. Developers also use Google Drive as a hosting platform due to its ease of access. Google Drive allows the users to create a one-click direct download link for the files but GDrive has some limitations on how often you can download the file and also restricts the size of the file for generating a download link.

If the file is large, you cannot directly download the desired file and it will give you a virus warning page ‘‘Google Drive Can’t Scan this File for Viruses‘. To download the large Google Drive files directly without any warning page then the best solution is to use a Google Drive API. This will skip the warning page and create a direct link for the Google Drive sharing file.

To do so you need two things;

  • Google Drive Sharing Link URL
  • Google Drive API Key from Google Console (Free)

Step 1. Generate Google Drive API Key

Google offers a cloud console tool for developers and users for cloud computing services like data management, creating apps, developing or hosting websites, online services, and other tools. You can use this free tool to create an API Key for your Google Drive, this key will come handy to create a download link for large files.

  1. Open Google Cloud Console, which is a freemium service offered by Google.
  2. Log in with your Google Account and Password to access the Clouse Console.
  3. Once successfully logged in, you will be taken to Google Cloud Dashboard Homepage.
  4. Tap on the Project icon to create a new project.
    Click on Projects to Create a New Project
  5. Here create a New Project
    Create_a_New_Porject
  6. Give the project a name, location, and hit Create.
    Add_Project_Name_and_Location_and_Click_Create
  7. Click on 3 horizontal lines on the left sidebar to open the menu option.
    Click_on_3_Horizontal_lines_to_open_menu_option
  8. Here click on APIs & Credentials and Open Library.
    click on APIs and Credentials and Open Library
  9. An API Library page will open, here look for Google Drive API and click to open it
    Click_Google_Drive_API
  10. Click on Enable button to Turn ON Google Drive API
    Enable_Google_Drive_API
  11. Once enabled, click on Manage.
    Click_Manage_Google_Drive_API
  12. Open Credentials Tab
    Create_Credentials
  13. Select Google Drive API from the drop-down menu for Credential Type.
    Credential_Type_Google_Drive_API
  14. Select User data and click Done.
    Fill_the_Credential_Details
  15. Now tap on +Create Credentials on the top of the page.
    Create_Credentials
  16. An API key will be generated, copy the key and paste it somewhere as we will need it later.
    Copy_the_API_Key

Step 2. Get Google Drive Sharing Link URL

  1. Now look for the Google Drive file that you wish to download directly without any warning.
  2. Right-click on the file and click on the Get link
  3. Share FileHere select anyone with the link.
    Here_Change_the_File_to_Anyone_with_the_Link
  4. Copy the Sharing URL
    Copy_Link
  5. Paste the Sharing URL and just copy the FileID and save it somewhere safe.
    https://drive.google.com/file/fileid/view?=sharing

    Copy_Google_Drive_File_ID

Step 3. Create the Direct Download Link

  1. Open Chrome and enter the following Google APIs URL.
    https://www.googleapis.com/drive/v3/files/FileID?alt=media&key=APIKey
  2. Paste the file id copied in the FileID section and API key in the APIKey section.
    Google_API_URL_to_Download_Google_Drive_File_Directly
  3. Hit Enter and the file will start downloading without any warning page.
    Direct Download Using Google APIs

With the simple method above you can create a direct download link for your Google Drive file to download the large file without virus warning.

Conclusion

With this Simple Drive API trick, you can download any large file directly without any intermediate warning page. The method is safe and works smoothly.

If you have any queries or issues, please comment below, we will try responding to your query within 24 hours.

17 thoughts on “How to Create Google Drive Direct Download Link for Large Files?”

  1. hello this is animesh I have used the above method to stream the video on google drive using html video player but ploblem is that it works only one time if you open link second time video will not load please help me. I am trying this”https://www.googleapis.com/drive/v3/files/?alt=media&key=<API Key" with 200mb video file.

  2. Hi,

    is it possible this works only with the google chrome browser?
    My links are working, but if I try it with mozilla firefox, I do not get my necessairy ZIP file, but a textedit file which I can not read.

    Or maybe that due to my firefox security settings?

    Looking forward to your feedback.

  3. Álvaro Rodríguez Sáez

    Hi Steath! I’ve tried this method and everything works perfectly. The only thing I don’t understand is why Google’s API keeps changing the original filename for an alphanumeric code. Could you please help me with that? I’ve seen it also happened on the last screenshot from this post. Thanks 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *