Google Fit REST API के साथ-साथ, Google Fit के सभी एपीआई 2026 में बंद कर दिए जाएंगे. डेवलपर, 1 मई, 2024 से इन एपीआई का इस्तेमाल करने के लिए साइन अप नहीं कर सकते.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह नीति, OAuth का इस्तेमाल करके डेवलपर को दिखने वाले सभी डेटा सोर्स की सूची बनाती है
दिए गए दायरे हैं. यह पूरी सूची नहीं है; उपयोगकर्ता के पास निजी जानकारी हो सकती है
ऐसे डेटा सोर्स जो सिर्फ़ दूसरे डेवलपर को दिखते हैं या इनका इस्तेमाल करके किए जाने वाले कॉल
अन्य दायरे होते हैं.
इसे अभी आज़माएं.
अनुरोध
एचटीटीपी अनुरोध
GET https://www.googleapis.com/fitness/v1/users/userId/dataSources
पैरामीटर
पैरामीटर का नाम
मान
ब्यौरा
पाथ पैरामीटर
userId
string
पहचाने गए व्यक्ति के डेटा सोर्स की सूची बनाएं. इसके लिए me का इस्तेमाल करें
प्रमाणित उपयोगकर्ता को दर्शाता हो. इसमें सिर्फ़ me का इस्तेमाल किया जा सकता है
समय.
वैकल्पिक क्वेरी पैरामीटर
dataTypeName
string
सूची में शामिल किए जाने वाले डेटा टाइप के नाम. अगर इसके बारे में नहीं बताया गया है, तो सभी
डेटा सोर्स दिखाए जाएंगे.
अनुमति देना
इस अनुरोध के लिए, इनमें से कम से कम एक दायरे की अनुमति लेना ज़रूरी है:
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eLists all visible data sources for a user, including those accessible with provided OAuth scopes.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with at least one of the listed scopes related to fitness data (activity, location, body, nutrition, etc.).\u003c/p\u003e\n"],["\u003cp\u003eReturns a list of data sources accessible to the developer for the specified user, which can be filtered by data type.\u003c/p\u003e\n"],["\u003cp\u003eThe request is made using an HTTP GET to a specific endpoint, with the user ID specified as 'me' for the authenticated user.\u003c/p\u003e\n"]]],[],null,["# Users.dataSources: list\n\n| **Note:** Requires [authorization](#auth).\n\nLists all data sources that are visible to the developer, using the OAuth\nscopes provided. The list is not exhaustive; the user may have private\ndata sources that are only visible to other developers, or calls using\nother scopes.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nGET https://www.googleapis.com/fitness/v1/users/userId/dataSources\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|--------------------------------------------------------------------------------------------------------------------------------|\n| **Path parameters** |||\n| `userId` | `string` | List data sources for the person identified. Use `me` to indicate the authenticated user. Only `me` is supported at this time. |\n| **Optional query parameters** |||\n| `dataTypeName` | `string` | The names of data types to include in the list. If not specified, all data sources will be returned. |\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes:\n\n| Scope |\n|---------------------------------------------------------------------|\n| `https://www.googleapis.com/auth/fitness.activity.read` |\n| `https://www.googleapis.com/auth/fitness.activity.write` |\n| `https://www.googleapis.com/auth/fitness.location.read` |\n| `https://www.googleapis.com/auth/fitness.location.write` |\n| `https://www.googleapis.com/auth/fitness.body.read` |\n| `https://www.googleapis.com/auth/fitness.body.write` |\n| `https://www.googleapis.com/auth/fitness.nutrition.read` |\n| `https://www.googleapis.com/auth/fitness.nutrition.write` |\n| `https://www.googleapis.com/auth/fitness.blood_pressure.read` |\n| `https://www.googleapis.com/auth/fitness.blood_pressure.write` |\n| `https://www.googleapis.com/auth/fitness.blood_glucose.read` |\n| `https://www.googleapis.com/auth/fitness.blood_glucose.write` |\n| `https://www.googleapis.com/auth/fitness.oxygen_saturation.read` |\n| `https://www.googleapis.com/auth/fitness.oxygen_saturation.write` |\n| `https://www.googleapis.com/auth/fitness.body_temperature.read` |\n| `https://www.googleapis.com/auth/fitness.body_temperature.write` |\n| `https://www.googleapis.com/auth/fitness.reproductive_health.read` |\n| `https://www.googleapis.com/auth/fitness.reproductive_health.write` |\n\nFor more information, see the [authentication and authorization](/fit/rest/v1/authorization) page.\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"dataSource\": [\n users.dataSources Resource\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|----------------|--------|-----------------------------------|-------|\n| `dataSource[]` | `list` | A previously created data source. | |\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response."]]