Migrate to Drive API v3
If you are currently using Drive API v2, you can migrate to v3.
You should review the V2 to v3 reference for a complete map of all resource differences between versions.
The {drive_api_short} version is set differently for each language:
var DISCOVERY_DOCS = ["https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"];
- For Python, you specify the version when you build the service object. For an example,
see Python Quickstart.
service = build('drive', 'v3', credentials=creds)
- For Node.js, you define the version when you set the google.drive constructor. For an example,
see Node.js Quickstart.
const drive = google.drive({version: 'v3', auth});
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-24 UTC.
[null,null,["Last updated 2025-02-24 UTC."],[[["Drive API users can migrate from v2 to v3 using the provided reference guide."],["The v3 implementation varies by language, with Java requiring a library download, JavaScript needing a Discovery docs URL, Python specifying during service object creation, and Node.js setting it in the google.drive constructor."]]],["Drive API v2 users can migrate to v3, consulting the provided reference for resource differences. Version specification varies by language: Java users download the v3 library; JavaScript users define the version via a Discovery docs URL. Python developers specify the version when building the service object, and Node.js developers define the version during the `google.drive` constructor. Each language has a quickstart for an example on the implementation.\n"]]