Google Sheets API की खास जानकारी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Sheets API एक RESTful इंटरफ़ेस है. इसकी मदद से, स्प्रेडशीट के डेटा को पढ़ा और उसमें बदलाव किया जा सकता है. Sheets API की मदद से ये काम किए जा सकते हैं:
- स्प्रेडशीट बनाना
- स्प्रेडशीट सेल की वैल्यू देखने और उनमें बदलाव करने की अनुमति दें
- स्प्रेडशीट की फ़ॉर्मैटिंग अपडेट करना
- कनेक्टेड शीट मैनेज करना
Sheets API में इस्तेमाल होने वाले सामान्य शब्दों की सूची यहां दी गई है:
- स्प्रेडशीट
Google Sheets में मौजूद मुख्य ऑब्जेक्ट. इसमें कई Sheets
शामिल हो सकते हैं. हर Sheets
में, Cells
में मौजूद स्ट्रक्चर्ड जानकारी होती है. spreadsheets
रिसॉर्स, स्प्रेडशीट को दिखाता है. इसमें यूनीक spreadsheetId
वैल्यू शामिल होती है.
- स्प्रेडशीट आईडी
- स्प्रेडशीट के लिए यूनीक आइडेंटिफ़ायर. यह एक खास स्ट्रिंग होती है. इसमें अक्षर, संख्याएं, और कुछ खास वर्ण होते हैं. यह किसी स्प्रेडशीट का रेफ़रंस देती है. इसे स्प्रेडशीट के यूआरएल से हासिल किया जा सकता है. स्प्रेडशीट का नाम बदल जाने पर भी, स्प्रेडशीट आईडी में कोई बदलाव नहीं होता.
https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit?gid=SHEET_ID#gid=SHEET_ID
- शीट
स्प्रेडशीट में मौजूद कोई पेज या टैब. Sheets
रिसॉर्स, किसी शीट को दिखाता है. इसमें यूनीक संख्या वाली sheetId
वैल्यू और SheetProperties
ऑब्जेक्ट के हिस्से के तौर पर शीट title
शामिल होती है.
- शीट आईडी
- स्प्रेडशीट में मौजूद किसी शीट के लिए यूनीक आइडेंटिफ़ायर. यह एक पूर्णांक होता है. इसमें ऐसी संख्याएं होती हैं जो किसी शीट को रेफ़रंस करती हैं. इसे स्प्रेडशीट के यूआरएल से हासिल किया जा सकता है. शीट का नाम बदलने पर भी, शीट आईडी नहीं बदलते. उदाहरण के लिए, स्प्रेडशीट आईडी देखें.
- सेल
शीट में मौजूद टेक्स्ट या डेटा का कोई फ़ील्ड. सेल को पंक्तियों और कॉलम में व्यवस्थित किया जाता है. साथ ही, उन्हें सेल की रेंज के तौर पर ग्रुप किया जा सकता है. Cells
रिसॉर्स, हर सेल को दिखाता है. हालांकि, इसमें यूनीक आईडी की वैल्यू नहीं होती.
इसके बजाय, सेल की पहचान पंक्ति और कॉलम के कोऑर्डिनेट से होती है.
- A1 नोटेशन
- यह सिंटैक्स, किसी सेल या सेल की रेंज को ऐसी स्ट्रिंग के साथ तय करने के लिए इस्तेमाल किया जाता है जिसमें शीट का नाम, कॉलम के अक्षरों और लाइन नंबरों का इस्तेमाल करके शुरुआती और आखिरी सेल के कोऑर्डिनेट शामिल होते हैं. यह तरीका सबसे ज़्यादा इस्तेमाल किया जाता है. साथ ही, यह तब सबसे ज़्यादा काम आता है, जब आपको सेल की किसी ऐब्सलूट रेंज का रेफ़रंस देना हो.
Sheet1!A1:B2
का मतलब है कि Sheet1 की पहली दो पंक्तियों और कॉलम की सभी सेल.
Sheet1!A:A
का मतलब Sheet1 के पहले कॉलम की सभी सेल से है.
Sheet1!1:2
, Sheet1 की पहली दो पंक्तियों की सभी सेल को दिखाता है.
Sheet1!A5:A
का मतलब है कि Sheet1 के पहले कॉलम की पांचवीं लाइन से लेकर आखिरी लाइन तक की सभी सेल.
A1:B2
का मतलब है कि पहली शीट की पहली दो लाइनों और कॉलम में मौजूद सभी सेल.
Sheet1
का मतलब Sheet1 की सभी सेल से है.
'Jon's_Data'!A1:D5
का मतलब है "Jon's_Data" नाम की शीट की पहली पांच लाइनों और चार कॉलम में मौजूद सभी सेल.
'My Custom Sheet'!A:A
का मतलब है "My Custom Sheet" नाम की शीट के पहले कॉलम की सभी सेल.
'My Custom Sheet'
का मतलब "मेरी कस्टम शीट" की सभी सेल से है.
स्पेस या खास वर्णों वाले शीट के नामों के लिए, सिंगल कोटेशन मार्क ज़रूरी हैं.
सलाह: जहां भी हो सके, अपनी स्प्रेडशीट में मौजूद ऑब्जेक्ट के लिए अलग-अलग नामों का इस्तेमाल करें. उदाहरण के लिए, A1 (बिना कोटेशन मार्क के) का मतलब है कि पहली दिखने वाली शीट में मौजूद सेल A1. 'A1'
का मतलब A1 नाम वाली शीट से है. इसी तरह, Sheet1 का मतलब Sheet1 नाम वाली शीट से है. हालांकि, अगर "Sheet1" नाम की कोई रेंज है, तो Sheet1 का मतलब उस रेंज से होगा और 'Sheet1'
का मतलब शीट से होगा.
- R1C1 नोटेशन
- यह एक सिंटैक्स है. इसका इस्तेमाल किसी सेल या सेल की रेंज को तय करने के लिए किया जाता है. इसमें एक स्ट्रिंग होती है. इस स्ट्रिंग में, शीट का नाम, शुरुआती और आखिरी सेल के कोऑर्डिनेट शामिल होते हैं. ये कोऑर्डिनेट, लाइन और कॉलम नंबर का इस्तेमाल करके तय किए जाते हैं. यह तरीका, A1 नोटेशन से कम इस्तेमाल किया जाता है. हालांकि, किसी सेल की पोज़िशन के हिसाब से सेल की किसी रेंज को रेफ़रंस करने के लिए, यह तरीका काम का हो सकता है.
Sheet1!R1C1:R2C2
का मतलब Sheet1 की सबसे ऊपर की दो लाइनों में मौजूद पहले दो सेल से है.
R1C1:R2C2
का मतलब है कि पहली शीट की ऊपर की दो लाइनों में मौजूद पहले दो सेल.
Sheet1!R[3]C[1]
का मतलब, मौजूदा सेल से तीन लाइन नीचे और एक कॉलम दाईं ओर मौजूद सेल है.
- नाम वाली रेंज
- यह किसी सेल या सेल की रेंज को दिया गया कस्टम नाम होता है. इससे पूरे ऐप्लिकेशन में रेफ़रंस को आसानी से समझा जा सकता है.
FilterView
संसाधन, नाम वाली किसी रेंज को दिखाता है.
- सुरक्षित की गई रेंज
- तय की गई कोई सेल या सेल की रेंज, जिसमें बदलाव नहीं किया जा सकता.
ProtectedRange
संसाधन, सुरक्षित की गई रेंज को दिखाता है.
Google Workspace API का इस्तेमाल करके डेवलपमेंट करने के बारे में जानने के लिए, Google Workspace पर डेवलप करें लेख पढ़ें. इसमें पुष्टि करने और अनुमति देने की प्रोसेस को मैनेज करने के बारे में भी बताया गया है.
Sheets 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 Sheets API Overview\n\nThe Google Sheets API is a RESTful interface that lets you read and modify a\nspreadsheet's data. The Sheets API lets you:\n\n- Create spreadsheets\n- Read and write spreadsheet cell values\n- Update spreadsheet formatting\n- Manage Connected Sheets\n\nThe following is a list of common terms used in the Sheets API:\n\n*Spreadsheet*\n\n: The primary object in Google Sheets. It can contain multiple `Sheets`, each\n with structured information contained in `Cells`. The\n [`spreadsheets`](/workspace/sheets/api/reference/rest/v4/spreadsheets)\n resource represents a spreadsheet. It contains a unique `spreadsheetId`\n value.\n\n *Spreadsheet ID*\n : The unique identifier for a spreadsheet. It's a particular string\n containing letters, numbers, and some special characters that reference a\n spreadsheet and it can be derived from the spreadsheet's URL. Spreadsheet\n IDs are stable, even if the spreadsheet name changes. \n\n https://docs.google.com/spreadsheets/d/\u003cvar translate=\"no\"\u003eSPREADSHEET_ID\u003c/var\u003e/edit?gid=\u003cvar translate=\"no\"\u003eSHEET_ID\u003c/var\u003e#gid=\u003cvar translate=\"no\"\u003eSHEET_ID\u003c/var\u003e\n\n*Sheet*\n\n: A page or tab within a spreadsheet. The\n [`Sheets`](/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets) resource\n represents a sheet. It contains a unique numeric `sheetId` value and sheet\n `title` as part of the\n [`SheetProperties`](/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#sheetproperties)\n object.\n\n *Sheet ID*\n : The unique identifier for a specific sheet within a spreadsheet. It's a\n particular integer containing numbers that reference a sheet and it can be\n derived from the spreadsheet's URL. Sheet IDs are stable, even if the sheet\n name changes. For an example, see [Spreadsheet ID](#spreadsheet-id).\n\n*Cell*\n\n: An individual field of text or data within a sheet. Cells are arranged in rows\n and columns, and can be grouped as a range of cells. The\n [`Cells`](/workspace/sheets/api/reference/rest/v4/spreadsheets/cells)\n resource represents each cell, but it doesn't have a unique ID value.\n Instead, row and column coordinates identify the cells.\n\n *A1 notation*\n : A syntax used to define a cell or range of cells with a string that\n contains the sheet name plus the starting and ending cell coordinates using\n column letters and row numbers. This method is the most common and useful\n when referencing an absolute range of cells.\n - `Sheet1!A1:B2` refers to all the cells in the first two rows and columns of Sheet1.\n - `Sheet1!A:A` refers to all the cells in the first column of Sheet1.\n - `Sheet1!1:2` refers to all the cells in the first two rows of Sheet1.\n - `Sheet1!A5:A` refers to all the cells of the first column of Sheet 1, from row 5 onward.\n - `A1:B2` refers to all the cells in the first two rows and columns of the first visible sheet.\n - `Sheet1` refers to all the cells in Sheet1.\n - `'Jon's_Data'!A1:D5` refers to all the cells in the first five rows and four columns of a sheet named \"Jon's_Data.\"\n - `'My Custom Sheet'!A:A` refers to all the cells in the first column of a sheet named \"My Custom Sheet.\"\n - `'My Custom Sheet'` refers to all the cells in \"My Custom Sheet\".\n\n Single quotes are required for sheet names with spaces or special characters.\n\n **Tip** : Where possible, use distinct names for objects in your spreadsheets. For example, A1 (without quotes) refers to cell A1 in the first visible sheet. `'A1'` refers to a sheet with the name A1. Similarly, Sheet1 refers to a sheet with the name Sheet1. However, if there's a named range titled \"Sheet1\", then Sheet1 refers to the named range and `'Sheet1'` refers to the sheet.\n\n *R1C1 notation*\n : A syntax used to define a cell or range of cells with a string that\n contains the sheet name plus the starting and ending cell coordinates using\n row numbers and column numbers. This method is less common than A1 notation,\n but can be useful when referencing a range of cells relative to a given\n cell's position.\n - `Sheet1!R1C1:R2C2` refers to the first two cells in the top two rows of Sheet1.\n - `R1C1:R2C2` refers to the first two cells in the top two rows of the first visible sheet.\n - `Sheet1!R[3]C[1]` refers to the cell that is three rows below and one column to the right of the current cell.\n\n *Named range*\n : A defined cell or range of cells with a custom name to simplify references\n throughout an application. A\n [`FilterView`](/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#filterview)\n resource represents a named range.\n\n *Protected range*\n : A defined cell or range of cells that cannot be modified. A\n [`ProtectedRange`](/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#protectedrange)\n resource represents a protected range.\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 learn how to configure and run a Sheets API app, try the\n [JavaScript quickstart](/workspace/sheets/api/quickstart/js)."]]