Google Business Profile एपीआई में
एपीआई का नया तरीका है. इसकी मदद से, एक ही एपीआई अनुरोध में कई `डेली मेट्रिक` फ़ेच की जा सकती हैं.
सेवा बंद होने का शेड्यूल देखें. साथ ही, v4 reportInsights API वाले तरीके से Google Business Profile की परफ़ॉर्मेंस एपीआई में माइग्रेट करने के बारे में निर्देश देखें.
Method: locations.questions.list
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन किसी खास जगह के लिए, सवालों की पेजों वाली सूची और उसके कुछ जवाबों को दिखाता है. यह कार्रवाई सिर्फ़ तभी मान्य होगी, जब बताई गई जगह की पुष्टि हो चुकी हो.
एचटीटीपी अनुरोध
GET https://mybusinessqanda.googleapis.com/v1/{parent=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/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 answers for a verified Google Business location.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering by unanswered questions and sorting by update time or upvote count.\u003c/p\u003e\n"],["\u003cp\u003eResponse includes the questions, total question count, and a token for retrieving subsequent pages.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: 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. This operation is only valid if the specified location is verified.\n\n### HTTP request\n\n`GET https://mybusinessqanda.googleapis.com/v1/{parent=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` Required. The name of the location to fetch questions for. |\n\n### Query parameters\n\n| Parameters ||\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Optional. How many questions to fetch per page. The default and maximum `pageSize` values are 10. |\n| `pageToken` | `string` Optional. If specified, the next page of questions is retrieved. |\n| `answersPerQuestion` | `integer` Optional. How many answers to fetch per question. The default and maximum `answersPerQuestion` values are 10. |\n| `filter` | `string` Optional. A filter constraining the questions to return. The only filter currently supported is \"ignore_answered=true\" |\n| `orderBy` | `string` Optional. 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\nResponse message for QuestionsAndAnswers.ListQuestions\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"questions\": [ { object (/my-business/reference/qanda/rest/v1/locations.questions#Question) } ], \"totalSize\": integer, \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `questions[]` | `object (`[Question](/my-business/reference/qanda/rest/v1/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 the following OAuth scope:\n\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)."]]