查询 Google 通过云存储播放评论 API

Query Google Play reviews via Cloud Storage API

因此 Google 每月提供 Google Play 用户评论的 CSV 导出,并提供如下所示的 URL:https://console.developers.google.com/storage/browser/pubsite_prod_rev_XXXXXXXXXX/reviews/(实际 URL包含数字而不是 X)

我可以看到 Cloud Storage 有一个 Web API,想通过 Google APIs Explorer 试用一下,所以我去了 https://developers.google.com/apis-explorer/#p/storage/v1/storage.buckets.list,启用 OAuth 并将 pubsite_prod_rev_XXXXXXXXXX 部分作为项目输入,但不幸的是我得到的只是一个 400 错误:

{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "Invalid argument."
}
],
"code": 400,
"message": "Invalid argument."
}
}

有没有办法通过 Web API 访问这些 CSV 文件?

尝试https://developers.google.com/apis-explorer/#p/storage/v1/storage.objects.list?bucket=pubsite_prod_rev_XXXXXXXXXX&prefix=reviews%252F to list the CSV files. That said, the API explorer does not understand media requests, so to actually download them, you would have to do it separately via the mediaLink URL, which you can calculate if you know the bucket & object, e.g., https://www.googleapis.com/download/storage/v1/b/bucket/o/urlencodedobject?alt=media

有关详细信息,请参阅 storage.objects.get 文档。

如果您想转到 UI 而不是 API 资源管理器,您可以尝试 https://console.developers.google.com/storage/browser/pubsite_prod_rev_XXXXXXXXXX/. If you owned the project (which isn't the case here; Google Play owns it), then you could select the project via https://console.developers.google.com/project/_/storage/browser 并查看所有关联的存储桶并导航到对象。