Google Business Profile एपीआई में
एपीआई का नया तरीका है. इसकी मदद से, एक ही एपीआई अनुरोध में कई `डेली मेट्रिक` फ़ेच की जा सकती हैं.
सेवा बंद होने का शेड्यूल देखें. साथ ही, v4 reportInsights API वाले तरीके से Google Business Profile की परफ़ॉर्मेंस एपीआई में माइग्रेट करने के बारे में निर्देश देखें.
Method: googleLocations.search
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
वे सभी संभावित जगहें खोजें जो तय किए गए अनुरोध से मेल खाती हैं.
एचटीटीपी अनुरोध
POST https://mybusiness.googleapis.com/v4/googleLocations:search
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में, यहां दिए गए स्ट्रक्चर का डेटा शामिल होता है:
JSON के काेड में दिखाना |
{
"resultCount": integer,
// Union field search_query can be only one of the following:
"location": {
object (Location )
},
"query": string
// End of list of possible types for union field search_query .
} |
फ़ील्ड |
resultCount |
integer
दिखाए जाने वाले मैच की संख्या. डिफ़ॉल्ट वैल्यू 3 है. इसमें ज़्यादा से ज़्यादा 10 वैल्यू हो सकती हैं. ध्यान दें कि ज़्यादा अनुरोध करने पर, इंतज़ार का समय बढ़ सकता है. पेजों को क्रम में नहीं लगाया जाता.
|
यूनियन फ़ील्ड search_query . खोज क्वेरी. इसे लोकेशन ऑब्जेक्ट या स्ट्रिंग क्वेरी के तौर पर दिया जा सकता है. search_query इनमें से सिर्फ़ एक हो सकता है: |
location |
object (Location )
खोजी जाने वाली जगह. अगर जगह की जानकारी दी गई है, तो उस जानकारी से मेल खाने वाली जगहें दिखेंगी.
|
query |
string
खोजने के लिए टेक्स्ट क्वेरी. किसी क्वेरी स्ट्रिंग से मिलने वाले खोज नतीजे, जगह की सटीक जानकारी देने की तुलना में कम सटीक होंगे. हालांकि, वे ज़्यादा सटीक मिलान दे सकते हैं.
|
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
GoogleLocations.SearchGoogleLocations के लिए जवाब मैसेज.
JSON के काेड में दिखाना |
{
"googleLocations": [
{
object (GoogleLocation )
}
]
} |
फ़ील्ड |
googleLocations[] |
object (GoogleLocation )
GoogleLocations का संग्रह जो बताए गए अनुरोध से संभावित मेल खाता है, जिसे सबसे ज़्यादा से लेकर सबसे कम सटीक के क्रम में सूची में रखा गया है.
|
अनुमति पाने के लिंक
इनमें से किसी एक 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 एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-10-14 (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"]],["आखिरी बार 2024-10-14 (UTC) को अपडेट किया गया."],[[["Search for Google Locations using either a specific location or a text-based query."],["Specify the desired number of search results, with a maximum of 10."],["Results are returned in order of accuracy, with the most accurate matches appearing first."],["Requires specific authorization scopes for access."]]],["The core content describes searching for Google locations via a `POST` request to `https://mybusiness.googleapis.com/v4/googleLocations:search`. The request body can include either a `location` object or a string `query` within the `search_query` field, plus an integer `resultCount`. The response body contains an array of `googleLocations`, representing potential matches ranked by accuracy. Authorization requires either `plus.business.manage` or `business.manage` OAuth scopes.\n"]]