लॉग इनमुफ़्त ट्रायल शुरू करें
easyCoexistence आधिकारिक एपीआई

Python और Node में Google Business Profile API: रिव्यू देखें और जवाब दें

Python या Node से Google रिव्यू देखने और उनका जवाब देने के लिए, Basic API Access के लिए मंज़ूर अपना Google Cloud प्रोजेक्ट इस्तेमाल करें, business.manage स्कोप के लिए OAuth से साइन इन करें, खाते और लोकेशन के नाम खोजें, फिर comment के साथ GET .../reviews और PUT .../reviews/{reviewId}/reply कॉल करें। बिना कोड के, easyCoexistence अपने MCP सर्वर के ज़रिए ChatGPT या Claude को यही काम करने देता है, और हर जवाब आप मंज़ूर करते हैं।

अपना प्रोजेक्ट

Google की एपीआई नीतियों के अनुसार, जो एजेंसियाँ और अंतिम ग्राहक Business Profile का प्रोग्रामेटिक इस्तेमाल करते हैं, उन्हें अपना ही Business Profile प्रोजेक्ट इस्तेमाल करना होगा।

business.manage

Business Profile APIs के लिए ज़रूरी OAuth स्कोप: https://www.googleapis.com/auth/business.manage।

0 से 300 QPM

Google द्वारा Application for Basic API Access मंज़ूर करने से पहले और बाद में किसी प्रोजेक्ट का Business Profile API quota।

4,096 बाइट

किसी रिव्यू के जवाब के कमेंट की अधिकतम लंबाई।

सत्यापित

updateReply, जो जवाब बनाता या बदलता है, तभी मान्य है जब लोकेशन सत्यापित हो।

कोई सैंडबॉक्स नहीं

Business Profile APIs के लिए Google का कोई सैंडबॉक्स नहीं है; कुछ कॉल्स में validateOnly लिया जाता है ताकि बिना बदलाव के अनुरोध जांचा जा सके।

Google Cloud का अपना प्रोजेक्ट क्यों चाहिए?

क्योंकि Google की Business Profile API नीतियाँ कहती हैं: "एजेंसियों या अंतिम ग्राहकों द्वारा Business Profile का कोई भी स्वचालित या प्रोग्रामेटिक इस्तेमाल उनसे अपना ही Business Profile प्रोजेक्ट इस्तेमाल करने की मांग करता है।" रिव्यू पढ़ने या जवाब पोस्ट करने वाला कोड प्रोग्रामेटिक इस्तेमाल है, इसलिए वह ऐसे Cloud प्रोजेक्ट पर चलता है जो आपका हो और जिसे Google मंज़ूर करे, किसी और कंपनी के प्रोजेक्ट या API से नहीं। Google यह पहुंच हर प्रोजेक्ट को अलग से देता है, और प्रोजेक्ट तक पहुंच रखने वाला कोई भी उपयोगकर्ता फिर APIs को कॉल कर सकता है।

Google एपीआई कॉल करने से पहले क्या चाहिए?

चार चीज़ें, हर एक आपके अपने Google खाते और प्रोजेक्ट में सेट की हुई:

  • Basic API Access के लिए मंज़ूर एक Cloud प्रोजेक्ट, जिसके लिए Google के GBP API contact form से अनुरोध उस ईमेल से भेजा जाए जो प्रोफ़ाइल का owner या manager हो। तब तक quota 0 QPM है।
  • Cloud console में Business Profile APIs चालू हों। इस कोड में तीन इस्तेमाल होते हैं: Google My Business API, जिसमें रिव्यू हैं, My Business Account Management API और My Business Business Information API।
  • Desktop app प्रकार का OAuth client, जो स्क्रिप्ट के बगल में credentials.json नाम से सहेजा जाए। अगर app की audience External है और Testing में है, तो अपना Google खाता test user के रूप में जोड़ें।
  • वह Google खाता जो लोकेशन का owner या manager हो, ब्राउज़र खुलने पर उसी से साइन इन करने के लिए।

Google के कौन से एंडपॉइंट रिव्यू की सूची देते हैं और जवाब पोस्ट करते हैं?

पहली दो कॉल्स वे resource names खोजती हैं जो Google चाहता है, accounts/{accountId} और locations/{locationId}, और रिव्यू कॉल्स फिर accounts/{accountId}/locations/{locationId} के अंतर्गत काम करती हैं। सभी को business.manage स्कोप चाहिए, और v4 कॉल्स के पीछे का Google My Business API Cloud console में तभी दिखता है जब Google आपका पहुंच अनुरोध मंज़ूर कर ले।

accounts.listGET mybusinessaccountmanagement.googleapis.com/v1/accounts: accounts you own or manage, your personal account first
accounts.locations.listGET mybusinessbusinessinformation.googleapis.com/v1/{account}/locations, with readMask required
accounts.locations.reviews.listGET mybusiness.googleapis.com/v4/{account}/{location}/reviews: up to 50 a page, updateTime desc by default
accounts.locations.reviews.updateReplyPUT .../reviews/{reviewId}/reply with a comment: creates the reply, or updates the one there
accounts.locations.batchGetReviewsPOST .../v4/{account}/locations:batchGetReviews: up to 50 verified locations a call

Python में रिव्यू कैसे देखें और जवाब कैसे दें?

Google के auth library और सादी HTTPS कॉल्स से। स्क्रिप्ट Google साइन इन के लिए ब्राउज़र खोलती है, हर रिव्यू को उसकी id और star rating के साथ प्रिंट करती है, फिर पूछती है कि किस रिव्यू का जवाब देना है और क्या लिखना है, ताकि जब तक कोई व्यक्ति उसे टाइप न करे, कुछ भी पोस्ट न हो।

reviews.py: Google's API with OAuth
# pip install google-auth-oauthlib
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import AuthorizedSession

SCOPES = ["https://www.googleapis.com/auth/business.manage"]
flow = InstalledAppFlow.from_client_secrets_file("credentials.json", SCOPES)
google = AuthorizedSession(flow.run_local_server(port=0))

# accounts[0] is your personal account; pick another from the list if the location sits elsewhere
account = google.get("https://mybusinessaccountmanagement.googleapis.com/v1/accounts").json()["accounts"][0]["name"]
location = google.get(
    f"https://mybusinessbusinessinformation.googleapis.com/v1/{account}/locations",
    params={"readMask": "name,title"},
).json()["locations"][0]["name"]
reviews_url = f"https://mybusiness.googleapis.com/v4/{account}/{location}/reviews"

for r in google.get(reviews_url).json().get("reviews", []):
    print(r["reviewId"], r["starRating"], r.get("comment", ""), "(replied)" if "reviewReply" in r else "")

review_id = input("Review id to answer: ")
text = input("Reply, as the owner approved it: ")
google.put(f"{reviews_url}/{review_id}/reply", json={"comment": text}).raise_for_status()

Node में भी यही काम कैसे करें?

Google के local-auth package से, जो वही ब्राउज़र साइन इन खोलता है और एक authorized client लौटाता है, जिसका request method किसी भी एंडपॉइंट को कॉल करता है। स्क्रिप्ट रिव्यू सूचीबद्ध करती है, फिर Python वाली की तरह एक review id और मंज़ूर किया गया टेक्स्ट मांगती है। इसे .mjs फ़ाइल के रूप में सहेजें ताकि top-level await काम करे।

reviews.mjs: Google's API with OAuth
// npm install @google-cloud/local-auth   then: node reviews.mjs
import path from "node:path";
import readline from "node:readline/promises";
import { authenticate } from "@google-cloud/local-auth";

const google = await authenticate({
  scopes: ["https://www.googleapis.com/auth/business.manage"],
  keyfilePath: path.resolve("credentials.json"),
});
const get = async (url) => (await google.request({ url })).data;

// accounts[0] is your personal account; pick another if the location sits elsewhere
const { accounts } = await get("https://mybusinessaccountmanagement.googleapis.com/v1/accounts");
const account = accounts[0].name;
const { locations } = await get(
  `https://mybusinessbusinessinformation.googleapis.com/v1/${account}/locations?readMask=name,title`
);
const reviewsUrl = `https://mybusiness.googleapis.com/v4/${account}/${locations[0].name}/reviews`;

const { reviews = [] } = await get(reviewsUrl);
for (const r of reviews) console.log(r.reviewId, r.starRating, r.comment ?? "", r.reviewReply ? "(replied)" : "");

const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
const reviewId = await rl.question("Review id to answer: ");
const comment = await rl.question("Reply, as the owner approved it: ");
rl.close();
await google.request({ url: `${reviewsUrl}/${reviewId}/reply`, method: "PUT", data: { comment } });

कोड जवाब देने से पहले व्यक्ति का इंतज़ार क्यों करता है?

क्योंकि Google की नीतियाँ कहती हैं: "उपयोगकर्ता की पूर्व विशिष्ट और स्पष्ट सहमति के बिना आप रिव्यू के जवाब, Q&A, लिस्टिंग बनाने, लिस्टिंग में बदलाव या अन्य कार्रवाइयों को स्वचालित या ट्रिगर नहीं कर सकते," और ग्राहक की ओर से जवाब देने वाली एजेंसी को पहले ग्राहक की अनुमति लेनी होगी। जवाब सार्वजनिक भी होता है: Google मंज़ूर कर दे तो वह व्यवसाय के नाम से रिव्यू के नीचे दिखता है, बिना किसी व्यक्ति के निजी नाम के, और रिव्यू करने वाले को सूचना जाती है।

बिना कोड के वही काम कैसे करें?

easyCoexistence के ज़रिए साइन इन करें और पूछें। उसके डैशबोर्ड में New connection चुनें, फिर Google Business, फिर प्रोफ़ाइल के owner या manager के रूप में Google से साइन इन करें, और ChatGPT या Claude में https://easycoexistence.com/api/mcp जोड़ें। बिना जवाब के रिव्यू मांगें: assistant list_google_reviews कॉल करता है, हर रिव्यू का जवाब ड्राफ़्ट करता है, हर ड्राफ़्ट आपको दिखाता है, और सिर्फ़ आपके मंज़ूर किए हुए जवाबों पर reply_to_google_review कॉल करता है। delete_google_review_reply कोई जवाब हटाता है, रिव्यू वहीं रहता है। नए रिव्यू का हर बार पूछे बिना जवाब देने के लिए, डैशबोर्ड में रिव्यू ऑटोमेशन चालू करें: वह एक तय टेक्स्ट से या आपके अपने AI से जवाब देता है, या हर नया रिव्यू आपके वेबहुक को भेजता है और वहाँ से मिला जवाब पोस्ट करता है।

कैसे कॉन्फ़िगर करें

  1. प्रोजेक्ट बनाएँएक Google Cloud प्रोजेक्ट बनाएँ, उसका प्रोजेक्ट नंबर नोट करें और Google का GBP API कॉन्टैक्ट फ़ॉर्म भेजें, जिसमें Basic API Access के लिए Application चुनें।
  2. APIs चालू करेंजब quota 300 QPM दिखाए, तब Cloud console में Business Profile APIs चालू करें।
  3. OAuth client बनाएँएक Desktop app OAuth client बनाएँ और उसकी JSON को स्क्रिप्ट के बगल में credentials.json नाम से सहेजें।
  4. चलाएँ और साइन इन करेंPython या Node स्क्रिप्ट चलाएँ और उस Google खाते से साइन इन करें जो लोकेशन का मालिक है या उसे मैनेज करता है।
  5. एक रिव्यू का जवाब देंसूची से एक review id चुनें और मालिक द्वारा मंज़ूर किया गया जवाब टाइप करें।

आम गड़बड़ियाँ

  • 0 QPM पर quota बढ़ाने का अनुरोध। Google की limits page कहती है कि quota 0 का मतलब है कि पहुंच अभी दी नहीं गई है, इसलिए इसकी जगह Application for Basic API Access भेजें।
  • locations कॉल पर readMask छोड़ना। Business Information API इसे ज़रूरी बताती है, इसलिए कम से कम readMask=name,title भेजें।
  • लाइव रिव्यू पर reply कॉल का परीक्षण। Business Profile APIs का कोई सैंडबॉक्स नहीं है, इसलिए test reply व्यवसाय की असली, सार्वजनिक reply होती है।
  • 4,096 बाइट की reply सीमा को अक्षरों में मापना। accent वाले अक्षर और emoji हर एक कई बाइट लेते हैं, इसलिए छोटी दिखने वाली reply भी अस्वीकार हो सकती है।
EasyCoexistence के साथ ऐसा करना

easyCoexistence उसी काम का बिना-कोड रास्ता है: Google साइन इन से एक लोकेशन कनेक्ट करें, उसका MCP सर्वर ChatGPT या Claude में जोड़ें और बिना जवाब के रिव्यू मांगें। assistant जवाब ड्राफ़्ट करता है और सिर्फ़ वही पोस्ट करता है जिन्हें आप मंज़ूर करें, रिव्यू Google से लाइव पढ़े जाते हैं और कभी सहेजे नहीं जाते। या डैशबोर्ड में रिव्यू ऑटोमेशन चालू करें, जो नए रिव्यू का जवाब अपने आप दे। प्रति कनेक्शन प्रति माह US$ 9 से US$ 0.75 तक, कनेक्शन बढ़ने पर घटती दर, पहले 3 दिन मुफ़्त।

Claude और ChatGPT से Google Business Profile कनेक्ट करें

अक्सर पूछे जाने वाले सवाल

स्क्रिप्ट को 403 error क्यों मिलता है?

Google की setup guide एक कारण बताती है: जब किसी Google Workspace खाते के लिए Business Profile बंद हो, तो कॉल 403 PERMISSION DENIED के साथ विफल होती हैं। यह भी जांचें कि स्क्रिप्ट जिन तीन एपीआई को कॉल करती है, वे आपके प्रोजेक्ट पर चालू हैं।

50 से ज़्यादा रिव्यू कैसे सूचीबद्ध करें?

पेज टोकन का पालन करें। reviews.list एक पेज पर अधिकतम 50 रिव्यू लौटाता है, और जब तक और बचे हों, हर response में एक nextPageToken होता है, जिसे अगले अनुरोध में pageToken के रूप में भेजें।

असली प्रोफ़ाइल को छुए बिना परीक्षण कैसे करें?

Google के पास test listings नहीं हैं: उसकी एपीआई FAQ कहती है कि नकली listings आम तौर पर flag और suspend हो जाती हैं। वह सुझाती है कंपनी के मुख्यालय की listing, या किसी client की listing पर शाम के बाद काम करना, बिना उसका नाम, पता या श्रेणी बदले, या mock एपीआई responses।

कैसे पता चले कि जवाब लाइव हो गया?

रिव्यू दोबारा सूचीबद्ध करें और जवाब की reviewReplyState पढ़ें: PENDING, APPROVED या REJECTED, और अस्वीकृत पर policyViolation। reviews.get वह स्टेटस नहीं देता, और Google की जांच आम तौर पर 10 मिनट तक लेती है, कभी 30 दिन भी।

पढ़ना जारी रखें

Google Business Profile API (पहले Google My Business API): पूरी गाइड2026 में Google Business Profile API: एपीआई परिवार, एक्सेस, business.manage स्कोप, कोटा, हर काम के एंडपॉइंट और बंद हुई सुविधाएँ।Google रिव्यू एपीआई: रिव्यू कैसे पढ़ें और उनका जवाब कैसे देंBusiness Profile API से लोकेशन के Google रिव्यू पढ़ें, जवाब दें और हटाएं: एंडपॉइंट, रिव्यू फ़ील्ड, 4,096 बाइट सीमा और मॉडरेशन।API के ज़रिए Google Business Profile पोस्ट कैसे प्रकाशित करेंlocalPosts API से Google Business Profile पर अपडेट, इवेंट और ऑफ़र प्रकाशित करें: टॉपिक टाइप, फ़ील्ड, बटन, फ़ोटो, पोस्ट स्टेट और 6 महीने का आर्काइव।Google Business Profile API की पहुँच अस्वीकृत या अब भी लंबित: आप क्या कर सकते हैंऐप और स्क्रिप्ट के लिए Google की मंज़ूरी या दोबारा आवेदन ज़रूरी: कोई शॉर्टकट नहीं। फ़िलहाल अनुमोदित टूल से ChatGPT या Claude से प्रोफ़ाइल पर काम करें।

दो मिनट में अपना पहला चैनल कनेक्ट करें।

किसी प्लैटफ़ॉर्म की समीक्षा का इंतज़ार नहीं। WhatsApp, Instagram, TikTok या कोई और चैनल कनेक्ट करें, फिर अपने AI से पोस्ट करने, जवाब देने या रिपोर्ट बनाने को कहें और उसे काम करते देखें।

  • 3 दिन मुफ़्त
  • कभी भी रद्द करें
  • सिर्फ़ आधिकारिक एपीआई
  • 24/7 निगरानी

इस तारीख को सत्यापित