Google Docs API की खास जानकारी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Docs API की मदद से, Google Docs में दस्तावेज़ बनाए और उनमें बदलाव किए जा सकते हैं.
ऐप्लिकेशन, Docs API के साथ इंटिग्रेट हो सकते हैं. इससे, उपयोगकर्ता और सिस्टम से मिले डेटा से बेहतर दस्तावेज़ बनाए जा सकते हैं. Docs API की मदद से, ये काम किए जा सकते हैं:
- प्रोसेस को ऑटोमेट करना
- एक साथ कई दस्तावेज़ बनाना
- दस्तावेज़ों को फ़ॉर्मैट करना
- इनवॉइस या अनुबंध जनरेट करना
- ऑब्जेक्ट के कुछ एट्रिब्यूट वापस पाना
Docs API में इस्तेमाल होने वाले सामान्य शब्दों की सूची यहां दी गई है:
- दस्तावेज़ आईडी
किसी दस्तावेज़ के लिए यूनीक आइडेंटिफ़ायर. यह एक खास स्ट्रिंग होती है. इसमें अक्षर, संख्याएं, और कुछ खास वर्ण शामिल होते हैं. यह किसी दस्तावेज़ का रेफ़रंस देती है. इसे दस्तावेज़ के यूआरएल से हासिल किया जा सकता है. दस्तावेज़ का नाम बदलने पर भी, दस्तावेज़ आईडी में कोई बदलाव नहीं होता. आईडी ढूंढने के तरीके के बारे में ज़्यादा जानने के लिए, दस्तावेज़ आईडी देखें.
https://docs.google.com/document/d/DOCUMENT_ID/edit
- Element
दस्तावेज़ बनाने वाला स्ट्रक्चर. किसी दस्तावेज़ के टॉप-लेवल एलिमेंट में Body
,
DocumentStyle
, और
List
शामिल होते हैं.
- Google Workspace दस्तावेज़
Google Workspace ऐप्लिकेशन, जैसे कि Google Docs से बनाई गई फ़ाइल.
Docs के लिए MIME टाइप का फ़ॉर्मैट application/vnd.google-apps.document
है. MIME टाइप की सूची देखने के लिए,
Google Workspace और Google Drive के साथ काम करने वाले MIME टाइप पर जाएं.
- इंडेक्स
कॉन्टेंट बॉडी में मौजूद ज़्यादातर एलिमेंट में startIndex
और endIndex
प्रॉपर्टी होती हैं. इनसे किसी एलिमेंट के शुरू और खत्म होने के ऑफ़सेट का पता चलता है. यह ऑफ़सेट, उसके साथ जुड़े सेगमेंट की शुरुआत के हिसाब से होता है.
- इनलाइन इमेज
दस्तावेज़ में टेक्स्ट के साथ दिखने वाली इमेज. यह अटैचमेंट नहीं है.
- नाम वाली रेंज
टेक्स्ट की लगातार रेंज. NamedRange
, एक ही namedRangeId
वाली रेंज का कलेक्शन होता है. नाम वाली रेंज की मदद से डेवलपर, दस्तावेज़ के कुछ हिस्सों को उपयोगकर्ता के तय किए गए किसी भी लेबल से जोड़ सकते हैं. इससे, बाद में प्रोग्राम के हिसाब से उनके कॉन्टेंट को पढ़ा या बदला जा सकता है. किसी दस्तावेज़ में एक ही नाम वाली कई नाम वाली रेंज हो सकती हैं. हालांकि, हर नाम वाली रेंज का आईडी अलग होता है.
- सेगमेंट
Body
, Header
,
Footer
या
Footnote
में स्ट्रक्चरल या कॉन्टेंट एलिमेंट शामिल हैं. किसी सेगमेंट में मौजूद एलिमेंट के इंडेक्स, उस सेगमेंट की शुरुआत के हिसाब से होते हैं.
- सुझाव
किसी दस्तावेज़ के मूल टेक्स्ट में बदलाव किए बिना, बदलावों का सुझाव दिया जा सकता है. अगर दस्तावेज़ का मालिक आपके सुझावों को स्वीकार करता है, तो वे ओरिजनल टेक्स्ट को बदल देंगे.
Google Workspace API का इस्तेमाल करके डेवलपमेंट करने के बारे में जानने के लिए, Google Workspace पर डेवलप करें लेख पढ़ें. इसमें पुष्टि करने और अनुमति देने की प्रोसेस को मैनेज करने के बारे में भी बताया गया है.
किसी दस्तावेज़ की खास जानकारी पाने के लिए, दस्तावेज़ देखें.
Docs API ऐप्लिकेशन को कॉन्फ़िगर करने और चलाने का तरीका जानने के लिए, JavaScript क्विकस्टार्ट आज़माएं.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया."],[],[],null,["# Google Docs API overview\n\nThe Google Docs API lets you create and modify documents in Google Docs.\n\nApplications can integrate with the Docs API to create polished\ndocuments from both user and system-provided data. The Docs API lets\nyou:\n\n- Automate processes\n- Create documentation in bulk\n- Format documents\n- Generate invoices or contracts\n- Retrieve specific attributes of objects\n\nThe following is a list of common terms used in the Docs API:\n\n*Document ID*\n\n: The unique identifier for a document. It's a particular string containing\n letters, numbers, and some special characters that reference a document and\n it can be derived from the document's URL. Document IDs are stable, even if\n the document name changes. For more information on how to find the ID, see\n [Document ID](/workspace/docs/api/concepts/document#document-id).\n\n https://docs.google.com/document/d/\u003cvar translate=\"no\"\u003eDOCUMENT_ID\u003c/var\u003e/edit\n\n*Element*\n\n: The structure that makes up a document. Top-level elements of a document\n include the [`Body`](/workspace/docs/api/reference/rest/v1/documents#body),\n [`DocumentStyle`](/workspace/docs/api/reference/rest/v1/documents#documentstyle), and\n [`List`](/workspace/docs/api/reference/rest/v1/documents#list).\n\n*Google Workspace document*\n\n: A file that a Google Workspace application, like Google Docs, creates.\n The MIME type format for Docs is\n `application/vnd.google-apps.document`. For a list of MIME types, see [Google Workspace and Google Drive supported MIME types](/drive/api/guides/mime-types).\n\n*Index*\n\n: Most *elements* within the content body have the `startIndex` and `endIndex`\n properties. These indicate the offset of an element's beginning and end,\n relative to the beginning of its enclosing *segment*.\n\n*Inline image*\n\n: An image that appears in the flow of text within a document. It's not an\n attachment.\n\n*Named range*\n\n: A contiguous range of text. A\n [`NamedRange`](/workspace/docs/api/reference/rest/v1/documents#namedrange) is a\n collection of ranges with the same `namedRangeId`. Named ranges allow\n developers to associate parts of a document with an arbitrary user-defined\n label so their contents can be programmatically read or edited later. A\n document can contain multiple named ranges with the same name, but every\n named range has a unique ID.\n\n*Segment*\n\n: The `Body`, [`Header`](/workspace/docs/api/reference/rest/v1/documents#header),\n [`Footer`](/workspace/docs/api/reference/rest/v1/documents#footer), or\n [`Footnote`](/workspace/docs/api/reference/rest/v1/documents#footnote) containing\n structural or content *elements* . The *indexes* of the elements within a\n segment are relative to the beginning of that segment.\n\n*Suggestion*\n\n: Changes to a document without changing the original text. If the owner\n approves your suggestions, they replace the original text.\n\nRelated topics\n--------------\n\n- To learn about developing with Google Workspace APIs, including handling\n authentication and authorization, refer to [Develop on\n Google Workspace](/workspace/guides/get-started).\n\n- To get a conceptual overview of a document, see\n [Document](/workspace/docs/api/concepts/document).\n\n- To learn how to configure and run a Docs API app, try the\n [JavaScript quickstart](/workspace/docs/api/quickstart/js)."]]