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)
You can try BytesBin.com’s latest Direct File Downloader Tool, which allows you to download Large Google Drive Files without a web preview and virus warning. All you need is a public sharing URL.
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 in handy to create a download link for large files.
- Open Google Cloud Console, which is a freemium service offered by Google.
- Log in with your Google Account and Password to access the Clouse Console.
- Once successfully logged in, you will be taken to Google Cloud Dashboard Homepage.
- Tap on the Project icon to create a new project.
- Here create a New Project
- Give the project a name, location, and hit Create.
- Click on 3 horizontal lines on the left sidebar to open the menu option.
- Here click on APIs & Credentials and Open Library.
- An API Library page will open, here look for Google Drive API and click to open it
- Click on Enable button to Turn ON Google Drive API
- Once enabled, click on Manage.
- Open Credentials Tab
- Select Google Drive API from the drop-down menu for Credential Type.
- Select User data and click Done.
- Now tap on +Create Credentials on the top of the page.
- An API key will be generated, copy the key and paste it somewhere as we will need it later.
Step 2. Get Google Drive Sharing Link URL
- Now look for the Google Drive file that you wish to download directly without any warning.
- Right-click on the file and click on the Get link
- Here select anyone with the link.
- Copy the Sharing URL
- Paste the Sharing URL and just copy the FileID and save it somewhere safe.
https://drive.google.com/file/fileid/view?=sharing
Step 3. Create the Direct Download Link
- Open Chrome and enter the following Google APIs URL.
https://www.googleapis.com/drive/v3/files/FileID?alt=media&key=APIKey
- Paste the file id copied in the FileID section and API key in the APIKey section.
- Hit Enter and the file will start downloading without any warning page.
With the simple method above, you can create a direct download link for your Google Drive file to download the large file without a 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.
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.
Hey, thanks for the message. The video should play without any issues Play Google Drive Videos on VLC Player | PC and Mobile. I believe you exceeded the Google Drive API quota limit. You may have crossed that request quota. Create a fresh API key or wait for few hours. It will work! 🙂
just download with file id as name
How do I get it to download it with the file name?
You need FileID from Sharing URL to paste in GoogleAPIS URL.
Does this also work with folders, not just files?
Sorry to say, this will only work with files.
Download with file ID how do i download with file name
I fear, it may not be possible. FileID is the unique identification of each file.
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.
I doubt this method work with Zip file. THis is best suited for images, videos, etc files.
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 🙂
The Google API key auto-generates the file name, we cannot change or modify it.
Ok, thank you!
Hello, is it possible to use an unlimited api key ??
2- Do the links expire?
Yes, there is a quota limit. You can buy an extra quota from developer tools.
why i try to second time, my video can.t play.
i must wait for a few hour to watch again .
and how can i get extra quota api gdrive?
Buy More!
Hey,
How can i add this to Minecraft Technic Launcher to use a Google Drive direct download file to create a modpack?
Because Technic Laucher (technicpack.net) needs a direct download like dropbox to create.
But when i add this Link “https://www.googleapis.com/drive/v3/files/FileID?alt=media&key=APIKey” (api key and fileid replaced by mine) then it says “The Modpack Location you specified is not a valid ZIP file”. I know ur not specified for this but its the same problem. i just need a direct download link without a prompt like at dropbox just for google drive.
Thanks.
If you need direct download links for the file try – 10 Best File Hosting Providers with Direct Link or Hotlink
I am trying to create a direct download link for large .rar files but it doesn’t download as .rar file. Does this method work for doc.xlsx, pdf file types alone
I think it works for media file types only!
This worked for my large mp4 file! Thank you!