Google Business Performance API memiliki metode API
BARU yang memungkinkan pengambilan beberapa `DailyMetrics` dalam satu permintaan API.
Tinjau
jadwal penghentian dan petunjuk untuk bermigrasi dari metode API reportInsights v4 ke Google Business Profile Performance API.
My Business Q&A API
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
My Business Q&A API memungkinkan pertanyaan dan jawaban diposting untuk listingan tertentu.
Catatan - Jika Anda memiliki kuota 0 setelah mengaktifkan API, minta untuk akses GBP API.
Layanan: mybusinessqanda.googleapis.com
Untuk memanggil layanan ini, sebaiknya gunakan library klien yang disediakan Google. Jika aplikasi Anda perlu menggunakan library Anda sendiri untuk memanggil layanan ini, gunakan informasi berikut saat membuat permintaan API.
Dokumen discovery
Dokumen Discovery adalah spesifikasi yang dapat dibaca komputer untuk mendeskripsikan dan menggunakan REST API. Dokumen ini digunakan untuk membuat library klien, plugin IDE, dan alat lainnya yang berinteraksi dengan Google API. Satu layanan dapat menyediakan beberapa dokumen discovery. Layanan ini menyediakan dokumen discovery berikut:
Endpoint layanan
Endpoint layanan adalah URL dasar yang menentukan alamat jaringan layanan API. Satu layanan mungkin memiliki beberapa endpoint layanan. Layanan ini memiliki endpoint layanan berikut dan semua URI di bawah berhubungan dengan endpoint layanan ini:
https://mybusinessqanda.googleapis.com
Metode |
create |
POST /v1/{parent=locations/*/questions}
Menambahkan pertanyaan untuk lokasi yang ditentukan. |
delete |
DELETE /v1/{name=locations/*/questions/*}
Menghapus pertanyaan tertentu yang ditulis oleh pengguna saat ini. |
list |
GET /v1/{parent=locations/*/questions}
Menampilkan daftar pertanyaan yang diberi nomor halaman dan beberapa jawabannya untuk lokasi tertentu. |
patch |
PATCH /v1/{question.name=locations/*/questions/*}
Memperbarui pertanyaan spesifik yang ditulis oleh pengguna saat ini. |
Metode |
delete |
DELETE /v1/{name=locations/*/questions/*}/answers:delete
Menghapus jawaban yang ditulis oleh pengguna saat ini untuk pertanyaan. |
list |
GET /v1/{parent=locations/*/questions/*}/answers
Menampilkan daftar jawaban yang diberi nomor halaman untuk pertanyaan tertentu. |
upsert |
POST /v1/{parent=locations/*/questions/*}/answers:upsert
Membuat jawaban atau memperbarui jawaban yang ada yang ditulis oleh pengguna untuk pertanyaan yang ditentukan. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\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. |"]]