Google Business Profile एपीआई में
एपीआई का नया तरीका है. इसकी मदद से, एक ही एपीआई अनुरोध में कई `डेली मेट्रिक` फ़ेच की जा सकती हैं.
सेवा बंद होने का शेड्यूल देखें. साथ ही, v4 reportInsights API वाले तरीके से Google Business Profile की परफ़ॉर्मेंस एपीआई में माइग्रेट करने के बारे में निर्देश देखें.
Method: locations.questions.answers.list
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन किसी खास सवाल के लिए, जवाबों की पेजों वाली सूची दिखाता है.
एचटीटीपी अनुरोध
GET https://mybusinessqanda.googleapis.com/v1/{parent=locations/*/questions/*}/answers
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
parent |
string
ज़रूरी है. उस सवाल का नाम जिसके जवाब पाना है.
|
क्वेरी पैरामीटर
पैरामीटर |
pageSize |
integer
ज़रूरी नहीं. हर पेज पर कितने जवाब फ़ेच करने हैं. pageSize की डिफ़ॉल्ट और ज़्यादा से ज़्यादा वैल्यू 10 हैं.
|
pageToken |
string
ज़रूरी नहीं. बताए जाने पर, जवाबों का अगला पेज वापस लाया जाता है.
|
orderBy |
string
ज़रूरी नहीं. जवाब लौटाने के लिए ऑर्डर. मान्य विकल्पों में 'updateTime विवरण' शामिल है और 'upvoteCount desc' के तौर पर मिलेंगे. इनकी मदद से, अनुरोध किए गए फ़ील्ड के हिसाब से घटते क्रम में जवाब मिलेंगे. क्रम से लगाने का डिफ़ॉल्ट क्रम 'updateTime desc' है.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
QuestionAndAnswers.ListAnswers के लिए एक प्रतिक्रिया संदेश
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"answers": [
{
object (Answer )
}
],
"totalSize": integer,
"nextPageToken": string
} |
फ़ील्ड |
answers[] |
object (Answer )
अनुरोध किए गए जवाब.
|
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) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eRetrieves a paginated list of answers for a specific question using the \u003ccode\u003eGET\u003c/code\u003e method and the provided URL structure.\u003c/p\u003e\n"],["\u003cp\u003eAllows for customization of results through query parameters like \u003ccode\u003epageSize\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, and \u003ccode\u003eorderBy\u003c/code\u003e to control pagination and sorting.\u003c/p\u003e\n"],["\u003cp\u003eThe response body includes an array of answers, the total number of answers, and a token for retrieving subsequent pages if available.\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"]]],["This content describes retrieving a list of answers for a specific question using a `GET` request to a defined URL. The `parent` path parameter specifies the question's location. Optional query parameters include `pageSize` (default and max 10), `pageToken` for pagination, and `orderBy` for sorting. The request body should be empty. The response includes an array of `answers`, `totalSize` indicating the total answers, and `nextPageToken` for further pages. Authorization requires the `business.manage` scope.\n"],null,[]]