تتضمّن واجهة برمجة التطبيقات
لأداء الأعمال في Google طريقة واجهة برمجة تطبيقات
جديدة تتيح جلب عدة "مقاييس يومية" في طلب واحد لواجهة برمجة التطبيقات.
يُرجى مراجعة
الجدول الزمني للإيقاف وتعليمات نقل البيانات من طريقة v4 reportInsights API إلى واجهة برمجة التطبيقات الخاصة بأداء "الملف التجاري على Google".
My Business Q&A API
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تسمح واجهة برمجة التطبيقات للأسئلة والأجوبة في نشاطي التجاري بنشر الأسئلة والإجابات على بطاقات بيانات محددة.
ملاحظة: إذا كانت لديك حصة 0 بعد تفعيل واجهة برمجة التطبيقات، يُرجى طلب الدخول إلى واجهة برمجة تطبيقات "الملف التجاري على Google".
الخدمة: mybusinessqanda.googleapis.com
للاتصال بهذه الخدمة، ننصحك باستخدام مكتبات العملاء التي توفّرها Google. إذا كان تطبيقك يحتاج إلى استخدام مكتباتك الخاصة لاستدعاء هذه الخدمة، فاستخدم المعلومات التالية عند تقديم طلبات واجهة برمجة التطبيقات.
مستند "اقتراحات"
مستند الاستكشاف هو مواصفات يمكن للآلة قراءتها لوصف واجهات برمجة تطبيقات REST واستخدامها. ويتم استخدامه لإنشاء مكتبات للعملاء ومكوّنات IDE وأدوات أخرى تتفاعل مع Google APIs. قد توفّر خدمة واحدة مستندات اكتشاف متعددة. توفّر هذه الخدمة مستند الاستكشاف التالي:
نقطة نهاية الخدمة
نقطة نهاية الخدمة هي عنوان URL أساسي يحدد عنوان الشبكة لخدمة واجهة برمجة التطبيقات. قد تتضمن خدمة واحدة نقاط نهاية متعددة للخدمة. تحتوي هذه الخدمة على نقطة نهاية الخدمة التالية وجميع معرّفات الموارد المنتظمة (URI) التالية مرتبطة بنقطة نهاية الخدمة هذه:
https://mybusinessqanda.googleapis.com
الطُرق |
create |
POST /v1/{parent=locations/*/questions}
لإضافة سؤال للموقع الجغرافي المحدّد |
delete |
DELETE /v1/{name=locations/*/questions/*}
يؤدي هذا الخيار إلى حذف سؤال محدّد كتبه المستخدم الحالي. |
list |
GET /v1/{parent=locations/*/questions}
تعرض قائمة الأسئلة المقسّمة على صفحات وبعض إجاباتها لموقع جغرافي محدّد. |
patch |
PATCH /v1/{question.name=locations/*/questions/*}
تعدِّل سؤالاً معيّنًا كتبه المستخدم الحالي. |
الطُرق |
delete |
DELETE /v1/{name=locations/*/questions/*}/answers:delete
لحذف الإجابة التي كتبها المستخدم الحالي على سؤال. |
list |
GET /v1/{parent=locations/*/questions/*}/answers
لعرض قائمة مقسّمة على صفحات للإجابات لسؤال محدّد. |
upsert |
POST /v1/{parent=locations/*/questions/*}/answers:upsert
لإنشاء إجابة أو تعديل الإجابة الحالية التي كتبها المستخدم عن السؤال المحدّد. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThe My Business Q&A API enables posting questions and answers for specific business listings.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage questions and answers programmatically using the API's REST resources.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides methods to create, delete, list, and update questions and answers.\u003c/p\u003e\n"],["\u003cp\u003eTo use this API, you will need to enable it and may require requesting access through Google.\u003c/p\u003e\n"]]],[],null,["# My Business Q&A API\n\nThe My Business Q\\&A API allows questions and answers to be posted for specific listings. \n\nNote - If you have a quota of 0 after enabling the API, please [request](https://developers.google.com/my-business/content/prereqs#request-access) for GBP API access.\n\n- [REST Resource: v1.locations.questions](#v1.locations.questions)\n- [REST Resource: v1.locations.questions.answers](#v1.locations.questions.answers)\n\nService: mybusinessqanda.googleapis.com\n---------------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://mybusinessqanda.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://mybusinessqanda.googleapis.com`\n\nREST Resource: [v1.locations.questions](/my-business/reference/qanda/rest/v1/locations.questions)\n-------------------------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/qanda/rest/v1/locations.questions/create) | `POST /v1/{parent=locations/*/questions}` Adds a question for the specified location. |\n| [delete](/my-business/reference/qanda/rest/v1/locations.questions/delete) | `DELETE /v1/{name=locations/*/questions/*}` Deletes a specific question written by the current user. |\n| [list](/my-business/reference/qanda/rest/v1/locations.questions/list) | `GET /v1/{parent=locations/*/questions}` Returns the paginated list of questions and some of its answers for a specified location. |\n| [patch](/my-business/reference/qanda/rest/v1/locations.questions/patch) | `PATCH /v1/{question.name=locations/*/questions/*}` Updates a specific question written by the current user. |\n\nREST Resource: [v1.locations.questions.answers](/my-business/reference/qanda/rest/v1/locations.questions.answers)\n-----------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [delete](/my-business/reference/qanda/rest/v1/locations.questions.answers/delete) | `DELETE /v1/{name=locations/*/questions/*}/answers:delete` Deletes the answer written by the current user to a question. |\n| [list](/my-business/reference/qanda/rest/v1/locations.questions.answers/list) | `GET /v1/{parent=locations/*/questions/*}/answers` Returns the paginated list of answers for a specified question. |\n| [upsert](/my-business/reference/qanda/rest/v1/locations.questions.answers/upsert) | `POST /v1/{parent=locations/*/questions/*}/answers:upsert` Creates an answer or updates the existing answer written by the user for the specified question. |"]]