Google Business Performance API, tek bir API isteğinde birden fazla "GünlükMetrik" getirmeye olanak tanıyan
YENİ bir API yöntemine sahiptir.
Kullanımdan kaldırma planını ve v4 reportInsights API yönteminden Google Business Profile Performance API'ye geçiş talimatlarını inceleyin.
Method: locations.questions.list
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Belirli bir konumla ilgili olarak soru ve yanıtlarının sayfalara ayrılmış bir listesini ve bazı yanıtlarını döndürür. Bu işlem yalnızca belirtilen konum doğrulanmışsa geçerlidir.
HTTP isteği
GET https://mybusinessqanda.googleapis.com/v1/{parent=locations/*/questions}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Zorunlu. Soruların alınacağı konumun adı.
|
Sorgu parametreleri
Parametreler |
pageSize |
integer
İsteğe bağlı. Sayfa başına getirilecek soru sayısı. Varsayılan ve maksimum pageSize değerleri 10'dur.
|
pageToken |
string
İsteğe bağlı. Belirtilirse soruların sonraki sayfası alınır.
|
answersPerQuestion |
integer
İsteğe bağlı. Soru başına getirilecek yanıt sayısı. Varsayılan ve maksimum answersPerQuestion değerleri 10'dur.
|
filter |
string
İsteğe bağlı. Döndürülecek soruları kısıtlayan bir filtre. Şu anda desteklenen tek filtre şudur: "ignore_answered=true"
|
orderBy |
string
İsteğe bağlı. Soruların döndürüleceği sıra. Geçerli seçenekler arasında "updateTime desc" bulunur soruları istenilen alana göre azalan düzende sıralanmış şekilde döndürecek "upRateCount desc" ifadesi. Varsayılan sıralama ölçütü "updateTime desc" şeklindedir.
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
questionsAndAnswers.ListQuestions için yanıt mesajı
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
JSON gösterimi |
{
"questions": [
{
object (Question )
}
],
"totalSize": integer,
"nextPageToken": string
} |
Alanlar |
questions[] |
object (Question )
İstenen sorular,
|
totalSize |
integer
Tüm sayfalarda bu konum için yayınlanan toplam soru sayısı.
|
nextPageToken |
string
Soru sayısı, istenen maksimum sayfa boyutunu aşıyorsa bu alan, sonraki bir aramada soruların bir sonraki sayfasını getirmek için bir jetonla doldurulur. Başka soru yoksa bu alan yanıtta bulunmaz.
|
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/business.manage
Daha fazla bilgi için OAuth 2.0 Overview (OAuth 2.0'a Genel Bakış) sayfasına göz atın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[[["\u003cp\u003eRetrieves a paginated list of questions and answers for a verified Google Business location.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering by unanswered questions and sorting by update time or upvote count.\u003c/p\u003e\n"],["\u003cp\u003eResponse includes the questions, total question count, and a token for retrieving subsequent pages.\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"]]],[],null,["# Method: locations.questions.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListQuestionsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n\nReturns the paginated list of questions and some of its answers for a specified location. This operation is only valid if the specified location is verified.\n\n### HTTP request\n\n`GET https://mybusinessqanda.googleapis.com/v1/{parent=locations/*/questions}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|---------------------------------------------------------------------|\n| `parent` | `string` Required. The name of the location to fetch questions for. |\n\n### Query parameters\n\n| Parameters ||\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Optional. How many questions to fetch per page. The default and maximum `pageSize` values are 10. |\n| `pageToken` | `string` Optional. If specified, the next page of questions is retrieved. |\n| `answersPerQuestion` | `integer` Optional. How many answers to fetch per question. The default and maximum `answersPerQuestion` values are 10. |\n| `filter` | `string` Optional. A filter constraining the questions to return. The only filter currently supported is \"ignore_answered=true\" |\n| `orderBy` | `string` Optional. The order to return the questions. Valid options include 'updateTime desc' and 'upvoteCount desc', which will return the questions sorted descendingly by the requested field. The default sort order is 'updateTime desc'. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for QuestionsAndAnswers.ListQuestions\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"questions\": [ { object (/my-business/reference/qanda/rest/v1/locations.questions#Question) } ], \"totalSize\": integer, \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `questions[]` | `object (`[Question](/my-business/reference/qanda/rest/v1/locations.questions#Question)`)` The requested questions, |\n| `totalSize` | `integer` The total number of questions posted for this location across all pages. |\n| `nextPageToken` | `string` If the number of questions exceeds the requested max page size, this field is populated with a token to fetch the next page of questions on a subsequent call. If there are no more questions, this field is not present in the response. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]