跳转到主要内容
POST
Batch get reviews

请求规范

  • 方法与路径: POST /apis/v1/social/accounts/{accountId}/gmb-reviews/batch
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/social/accounts/{accountId}/gmb-reviews/batch
  • accountId: path; 必填
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

此操作不另收费。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

accountId
string
必填

One of your social accounts (acc_...).

Pattern: ^acc_[0-9A-Za-z]{22}$

请求体

application/json
locationNames
string[]
必填

Array of full location resource names (e.g. ['accounts/123/locations/456']). Max 50 per request (Google's batchGetReviews cap); chunk larger sets into multiple requests.

Required array length: 1 - 50 elements
Pattern: ^accounts/[^/]+/locations/[^/]+$
orderBy
enum<string>
默认值:updateTime desc

Sort order requested from Google. Defaults to 'updateTime desc' (newest first), which allows early-stopping pagination once results cross your date window.

可用选项:
updateTime desc,
rating,
rating desc
pageSize
integer
默认值:50

Number of reviews per page (max 50)

必填范围: 1 <= x <= 50
pageToken
string

Pagination token from previous response

Minimum string length: 1

响应

Batch reviews fetched successfully

accountId
string

One of your social accounts (acc_...).

Pattern: ^acc_[0-9A-Za-z]{22}$
locationReviews
object[]
nextPageToken
string
success
boolean