Google Business Profile एपीआई में
एपीआई का नया तरीका है. इसकी मदद से, एक ही एपीआई अनुरोध में कई `डेली मेट्रिक` फ़ेच की जा सकती हैं.
सेवा बंद होने का शेड्यूल देखें. साथ ही, v4 reportInsights API वाले तरीके से Google Business Profile की परफ़ॉर्मेंस एपीआई में माइग्रेट करने के बारे में निर्देश देखें.
Method: accounts.locations.questions.list
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन किसी खास जगह के लिए, सवालों की पेजों वाली सूची और उसके कुछ जवाबों को दिखाता है.
एचटीटीपी अनुरोध
GET https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/questions
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
parent |
string
उस जगह का नाम जिसके लिए सवाल फ़ेच करने हैं.
|
क्वेरी पैरामीटर
पैरामीटर |
pageSize |
integer
हर पेज पर कितने सवालों को फ़ेच किया जा सकता है. pageSize की डिफ़ॉल्ट और ज़्यादा से ज़्यादा वैल्यू 10 हैं.
|
pageToken |
string
बताए जाने पर, सवालों का अगला पेज फिर से मिल जाता है.
|
answersPerQuestion |
integer
हर सवाल के कितने जवाब फ़ेच करने हैं. answersPerQuestion की डिफ़ॉल्ट और ज़्यादा से ज़्यादा वैल्यू 10 हैं.
|
filter |
string
यह फ़िल्टर, सवालों को दिखाए जाने से रोकता है. फ़िलहाल, सिर्फ़ "ignore_answered=true" फ़िल्टर इस्तेमाल किया जा सकता है
|
orderBy |
string
सवालों को लौटाने का क्रम. मान्य विकल्पों में 'updateTime विवरण' शामिल है और 'upvoteCount desc' के तौर पर मिलेंगे. इनकी मदद से, अनुरोध किए गए फ़ील्ड के हिसाब से सवालों को घटते क्रम में दिखाया जाएगा. क्रम से लगाने का डिफ़ॉल्ट क्रम 'updateTime desc' है.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
QuestionAndAnswers.ListQuestions के लिए जवाब वाला मैसेज
JSON के काेड में दिखाना |
{
"questions": [
{
object (Question )
}
],
"totalSize": integer,
"nextPageToken": string
} |
फ़ील्ड |
questions[] |
object (Question )
पूछे गए सवाल,
|
totalSize |
integer
इस जगह के लिए सभी पेजों पर पोस्ट किए गए सवालों की कुल संख्या.
|
nextPageToken |
string
अगर सवालों की संख्या, अनुरोध किए गए पेज के साइज़ से ज़्यादा हो जाती है, तो इस फ़ील्ड में एक टोकन मौजूद होता है. इसकी मदद से, अगले कॉल पर सवालों के अगले पेज को फ़ेच किया जा सकता है. अगर कोई और सवाल नहीं है, तो जवाब में यह फ़ील्ड मौजूद नहीं होता.
|
अनुमति पाने के लिंक
इनमें से किसी एक OAuth स्कोप की ज़रूरत होती है:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
ज़्यादा जानकारी के लिए, OAuth 2.0 की खास जानकारी देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eRetrieves a paginated list of questions and some of their answers for a specified location using the \u003ccode\u003eGET\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering by answered status, ordering by update time or upvote count, and specifying the number of questions and answers per page.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with either \u003ccode\u003ehttps://www.googleapis.com/auth/plus.business.manage\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes an array of questions, the total number of questions, and a token for retrieving the next page if available.\u003c/p\u003e\n"],["\u003cp\u003eUses gRPC Transcoding syntax in the URL structure.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.locations.questions.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListQuestionsResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n\nReturns the paginated list of questions and some of its answers for a specified location.\n\n### HTTP request\n\n`GET https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/questions`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-----------------------------------------------------------|\n| `parent` | `string` The name of the location to fetch questions for. |\n\n### Query parameters\n\n| Parameters ||\n|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` How many questions to fetch per page. The default and maximum `pageSize` values are 10. |\n| `pageToken` | `string` If specified, the next page of questions is retrieved. |\n| `answersPerQuestion` | `integer` How many answers to fetch per question. The default and maximum `answersPerQuestion` values are 10. |\n| `filter` | `string` A filter constraining the questions to return. The only filter currently supported is \"ignore_answered=true\" |\n| `orderBy` | `string` The order to return the questions. Valid options include 'updateTime desc' and 'upvoteCount desc', which will return the questions sorted descendingly by the requested field. The default sort order is 'updateTime desc'. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse message for QuestionsAndAnswers.ListQuestions\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"questions\": [ { object (/my-business/reference/rest/v4/accounts.locations.questions#Question) } ], \"totalSize\": integer, \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `questions[]` | `object (`[Question](/my-business/reference/rest/v4/accounts.locations.questions#Question)`)` The requested questions, |\n| `totalSize` | `integer` The total number of questions posted for this location across all pages. |\n| `nextPageToken` | `string` If the number of questions exceeds the requested max page size, this field is populated with a token to fetch the next page of questions on a subsequent call. If there are no more questions, this field is not present in the response. |\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/plus.business.manage`\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]