Where can I find the File ID on Google Drive
The Google Drive File ID is a unique identifier ofassigned theto each file on Google Drive. FileIt IDsis area stable throughoutidentifier that remains the lifespan of the file,same even if the file name or location changes.
The File ID can be found in the URL of the file when it is opened on Google Drive. It is the combination of letters and numbers that appear after "d/" in the link:
To locate the File ID, right-click on the name of the file, choose the Get Shareable Link option, and turn on Link Sharing if needed.
You will see the link with a combination of numbers and letters at the end, and what you see after `id =` is the File ID.https://drive.google.com/open?id=***ThisIsFileID*** If your file is already open in a browser, you can obtain File ID from its link:
https://docs.google.com/spreadsheets/d/***ThisIsFileID***/edit#gid=123456789
For example, in the URL below the File ID is "1vKx1iPAplNzydYZbFEAxLknpR8S6UzjC91sAXTrpVVw"
Alternatively, you can right-click on a file in Google Drive and select "Get link", then the "Copy link" button and the file ID will be in the copied URL.
It is also worth mentioning that the File ID is different than the sheet ID, the sheet ID is the unique identifier of a specific sheet within a Google spreadsheet, and it's located after the gid in the URL, for example:
Learn more: Google API Spreadsheet ID