संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Drive API की मदद से, ऐसे ऐप्लिकेशन बनाए जा सकते हैं जो Google Drive क्लाउड स्टोरेज का इस्तेमाल करते हैं.
Drive के साथ इंटिग्रेट होने वाले ऐप्लिकेशन डेवलप किए जा सकते हैं. साथ ही, Drive API का इस्तेमाल करके अपने ऐप्लिकेशन में बेहतर सुविधाएं बनाई जा सकती हैं.
इस डायग्राम में, आपके Drive ऐप्लिकेशन, Drive API, और Drive के बीच का संबंध दिखाया गया है:
पहली इमेज. Google Drive का रिलेशनशिप डायग्राम.
इन शब्दों से, पहली इमेज में दिखाए गए मुख्य कॉम्पोनेंट के बारे में पता चलता है:
Google Drive
Google की क्लाउड फ़ाइल स्टोरेज सेवा, उपयोगकर्ताओं को निजी स्टोरेज स्पेस उपलब्ध कराती है. इसे मेरी ड्राइव कहा जाता है. साथ ही, उन्हें शेयर किए गए फ़ोल्डर में मिलकर काम करने की सुविधा मिलती है. इन्हें शेयर की गई ड्राइव कहा जाता है.
Google Drive API
यह REST API, आपके ऐप्लिकेशन में Drive स्टोरेज का इस्तेमाल करने की सुविधा देता है.
Google Drive ऐप्लिकेशन
ऐसा ऐप्लिकेशन जो Drive को स्टोरेज के तौर पर इस्तेमाल करता है.
Google Drive का यूज़र इंटरफ़ेस (यूआई)
Google का ऐसा यूज़र इंटरफ़ेस जो Drive में सेव की गई फ़ाइलों को मैनेज करता है. अगर आपका ऐप्लिकेशन, एडिटर टाइप का ऐप्लिकेशन है, जैसे कि स्प्रेडशीट या वर्ड प्रोसेसर, तो अपने ऐप्लिकेशन में फ़ाइलें बनाने और खोलने के लिए, Drive के यूज़र इंटरफ़ेस (यूआई) के साथ इंटिग्रेट किया जा सकता है.
मेरी ड्राइव
Drive में स्टोरेज की ऐसी जगह जिसका मालिकाना हक किसी खास उपयोगकर्ता के पास है. 'मेरी ड्राइव' में सेव की गई फ़ाइलों को दूसरे उपयोगकर्ताओं के साथ शेयर किया जा सकता है. हालांकि, कॉन्टेंट का मालिकाना हक किसी एक उपयोगकर्ता के पास ही रहता है.
OAuth 2.0
यह अनुमति देने का वह प्रोटोकॉल है जिसकी ज़रूरत Drive API को आपके ऐप्लिकेशन के उपयोगकर्ताओं की पुष्टि करने के लिए होती है. अगर आपका ऐप्लिकेशन Google से साइन इन करें सुविधा का इस्तेमाल करता है, तो यह OAuth 2.0 फ़्लो और ऐप्लिकेशन ऐक्सेस टोकन को मैनेज करता है.
शेयर की गई ड्राइव
Drive में स्टोरेज की ऐसी जगह जहां कई उपयोगकर्ता मिलकर काम करते हैं. जिस उपयोगकर्ता के पास शेयर की गई ड्राइव का ऐक्सेस होता है उसके पास उसमें मौजूद सभी फ़ाइलों का ऐक्सेस होता है. उपयोगकर्ताओं को शेयर की गई ड्राइव में मौजूद अलग-अलग फ़ाइलों का ऐक्सेस भी दिया जा सकता है.
Drive API का इस्तेमाल करके क्या-क्या किया जा सकता है?
Drive API का इस्तेमाल इन कामों के लिए किया जा सकता है:
Drive में मौजूद सभी फ़ाइलों को खोजने के लिए, इसे Google Picker API के साथ इस्तेमाल करें. इसके बाद, फ़ाइल का नाम, यूआरएल, बदलाव की आखिरी तारीख, और उपयोगकर्ता की जानकारी दिखाएं.
तीसरे पक्ष के शॉर्टकट बनाएं. ये ऐसे बाहरी लिंक होते हैं जो Drive के बाहर, किसी दूसरे डेटास्टोर या क्लाउड स्टोरेज सिस्टम में सेव किए गए डेटा पर ले जाते हैं.
ऐप्लिकेशन से जुड़ा डेटा सेव करने के लिए, Drive में एक फ़ोल्डर बनाएं. इससे ऐप्लिकेशन, Drive में सेव किए गए उपयोगकर्ता के सभी कॉन्टेंट को ऐक्सेस नहीं कर पाएगा.
Google Drive के इवेंट का इस्तेमाल करके, फ़ाइल से जुड़ी गतिविधि पर नज़र रखें या उसका जवाब दें.
Google Drive के यूज़र इंटरफ़ेस (यूआई) का इस्तेमाल करके, Drive की सुविधा वाले ऐप्लिकेशन को Drive के यूज़र इंटरफ़ेस (यूआई) के साथ इंटिग्रेट करें. यह Google का स्टैंडर्ड वेब यूआई है. इसका इस्तेमाल करके, Drive में मौजूद फ़ाइलें बनाई जा सकती हैं, उन्हें व्यवस्थित किया जा सकता है, उन्हें ढूंढा जा सकता है, और उन्हें शेयर किया जा सकता है.
Drive फ़ाइलों पर लेबल लागू करें, लेबल फ़ील्ड की वैल्यू सेट करें, फ़ाइलों पर लेबल फ़ील्ड की वैल्यू पढ़ें, और कस्टम लेबल टैक्सोनॉमी में तय किए गए लेबल मेटाडेटा शब्दों का इस्तेमाल करके फ़ाइलें खोजें.
क्या आपको Google Drive API का इस्तेमाल करके देखना है?
Google Workspace Developers चैनल पर, आपको सलाह, तरकीबें, और नई सुविधाओं के बारे में वीडियो मिलेंगे.
Google Workspace API का इस्तेमाल करके डेवलपमेंट करने के बारे में जानने के लिए, Google Workspace पर डेवलप करें लेख पढ़ें. इसमें पुष्टि करने और अनुमति देने की प्रोसेस को मैनेज करने के बारे में भी बताया गया है.
Drive API ऐप्लिकेशन को कॉन्फ़िगर करने और चलाने का तरीका जानने के लिए, क्विकस्टार्ट गाइड पढ़ें.
[null,null,["आखिरी बार 2025-08-04 (UTC) को अपडेट किया गया."],[],[],null,["# Google Drive API overview\n\nThe Google Drive API lets you create apps that use Google Drive cloud storage.\nYou can develop applications that integrate with Drive, and\ncreate robust functionality in your application using the Drive API.\n\nThis diagram shows the relationship between your Drive app, the\nDrive API, and Drive:\n**Figure 1.** Google Drive relationship diagram.\n\nThese terms define the key components shown in Figure 1:\n\n*Google Drive*\n: Google's cloud file storage service provides users with a\n personal storage space, called *My Drive* , and the option to\n access collaborative shared folders, called *shared drives*.\n\n*Google Drive API*\n: The REST API that lets you use Drive storage\n from within your app.\n\n*Google Drive app*\n: An app that uses Drive as its storage solution.\n\n*Google Drive UI*\n: Google's user interface that manages files stored on\n Drive. If your app is an editor-type app, such as a\n spreadsheet or word processor, you can integrate with the\n Drive UI to create and open files within your app.\n\n*My Drive*\n: A Drive storage location that a\n specific user owns. Files stored on My Drive can be shared\n with other users, but ownership of the content remains specific to an\n individual user.\n\n*OAuth 2.0*\n: The authorization protocol that Drive API requires to\n authenticate your app users. If your application uses [Sign In With\n Google](/identity/gsi/web/guides/overview), it handles the OAuth 2.0 flow\n and application access tokens.\n\n*Shared drive*\n: A Drive storage location that owns files that multiple users\n collaborate on. Any user with access to a shared drive has access to all\n files it contains. Users can also be granted access to individual\n files inside the shared drive.\n\nWhat can you do with the Drive API?\n-----------------------------------\n\nYou can use the Drive API to:\n\n- [Download files](/workspace/drive/api/guides/manage-downloads) from Drive and [upload files](/workspace/drive/api/guides/manage-uploads) to Drive.\n- [Search for files and folders](/workspace/drive/api/guides/search-files) stored in Drive. Create complex search queries that return any of the file metadata fields in the [`files`](/workspace/drive/api/reference/rest/v3/files) resource.\n- Let users [share files, folders, and drives](/workspace/drive/api/guides/manage-sharing) to collaborate on content.\n- Combine with the [Google Picker API](https://developers.google.com/picker/docs/) to search all files in Drive, then return the filename, URL, last modified date, and user.\n- [Create *third-party shortcuts*](/workspace/drive/api/guides/third-party-shortcuts) that are external links to data stored outside of Drive, in a different datastore or cloud storage system.\n- Create a dedicated Drive folder to [store\n application-specific data](/workspace/drive/api/guides/appdata) so the app cannot access all the user's content stored in Drive.\n- Monitor or respond to file activity using [Google Drive\n events](/workspace/events/guides/events-drive).\n- Integrate your Drive-enabled app with the [Drive UI](/workspace/drive/api/guides/about-apps) using the *Google Drive UI*. It's Google's standard web UI that you can use to create, organize, discover, and share Drive files.\n- Apply [labels](/workspace/drive/api/guides/about-labels) to Drive files, set label field values, read label field values on files, and search for files using label metadata terms defined by the custom label taxonomy.\n\n|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | Want to see the Google Drive API in action? The Google Workspace Developers channel offers videos about tips, tricks, and the latest features. [Subscribe now](https://www.youtube.com/channel/UCUcg6az6etU_gRtZVAhBXaw) |\n\nRelated topics\n--------------\n\n- To learn about developing with Google Workspace APIs, including handling\n authentication and authorization, see [Develop on\n Google Workspace](/workspace/guides/getstarted-overview).\n\n- To learn how to configure and run a Drive API app, read the\n [Quickstarts](/workspace/drive/api/quickstart/js)."]]