Developers
Google Play Reply to Reviews API: a developer guide
The Google Play Reply to Reviews API is part of the Google Play Developer API (androidpublisher v3). It has three calls: reviews.list to fetch recent reviews, reviews.get to read one, and reviews.reply to post or replace your public reply. It only sees text reviews from the last 7 days, so you need to poll it on a schedule.
What the API can and can't do
Before you write code, check these limits. They decide how you build everything else.
| Which reviews | Reviews that include text, for production versions of your app. Star-only ratings and testing-track feedback are not returned. |
|---|---|
| Time window | Only reviews created or modified in the last week. For older reviews, use the review reports Play Console exports to Google Cloud Storage (generated daily, collected into monthly CSV files). |
| Order | The list starts with the most recently created or modified review. |
| Page size | 10 by default; set maxResults up to 100. |
| Reply | Plain text, about 350 characters max. A new reply replaces the existing one. |
| Default quotas (per app) | 200 GET requests (list and get) per hour; 2,000 POST requests (replies) per day. |
| Scope | https://www.googleapis.com/auth/androidpublisher |
Each user can leave only one review per app, so a reviewId stays the same when the reviewer edits their text or rating. A review title, if there is one, is joined to the body with a tab character.
Set up access: service account or OAuth
1. Enable the API
In the Google Cloud Console, pick or create a project, open the Google Play Developer API page and click Enable. Enable it in the same project that owns your credentials.
2. Choose how to authenticate
- Service account: the usual choice for a server or a scheduled job. Google says service accounts must only be used in a secure environment, such as your server, so never put the key in an app or a browser.
- OAuth client: use this when a person signs in with their own Google account, for example in an internal tool. Calls can only do what that person is allowed to do in Play Console.
3. Invite the service account in Play Console
- In Cloud Console, go to IAM & Admin → Service accounts, create one and copy its email address (it ends in
.iam.gserviceaccount.com). - In Play Console, go to Users and permissions → Invite new users and paste that email.
- Grant access to the apps you need, with Reply to reviews. Leave everything else off unless another integration needs it.
- Click Invite user. A service account has no inbox, so there is nothing to accept.
If your first call fails right after inviting, wait a while and try again before changing settings. Google doesn't promise that new permissions take effect instantly.
List and get reviews with curl
Get an access token for the service account with the androidpublisher scope (any Google auth library can do this), and send it as a bearer token:
TOKEN="ya29...." # access token with the androidpublisher scope
PKG="com.example.app"
curl -s -H "Authorization: Bearer $TOKEN" \
"https://androidpublisher.googleapis.com/androidpublisher/v3/applications/$PKG/reviews?maxResults=100"
A trimmed response looks like this:
{
"reviews": [{
"reviewId": "REVIEW_ID",
"authorName": "Jane",
"comments": [{
"userComment": {
"text": "Crashes when I open the camera.",
"lastModified": { "seconds": "1764662400", "nanos": 0 },
"starRating": 2,
"reviewerLanguage": "en",
"device": "a52q",
"androidOsVersion": 34,
"appVersionCode": 412,
"appVersionName": "4.1.2"
}
}]
}],
"tokenPagination": { "nextPageToken": "..." }
}
If the review already has an answer, comments also contains a developerComment with text and lastModified. authorName can be missing, so don't rely on it in templates.
Pagination with tokens
When there are more results, the response includes tokenPagination.nextPageToken. Pass it back as token to get the next page, and stop when no token comes back:
curl -s -H "Authorization: Bearer $TOKEN" \
"https://androidpublisher.googleapis.com/androidpublisher/v3/applications/$PKG/reviews?maxResults=100&token=NEXT_PAGE_TOKEN"
Translations with translationLanguage
Add translationLanguage (for example en or en_GB) to list or get. If it differs from the review's language, text holds the translation and originalText holds what the user actually wrote. Show your team the translation, but write the reply from originalText and reviewerLanguage so you answer in the reviewer's language. Our guide on replying to app reviews in other languages covers that part.
Get a single review
curl -s -H "Authorization: Bearer $TOKEN" \
"https://androidpublisher.googleapis.com/androidpublisher/v3/applications/$PKG/reviews/REVIEW_ID"
Reply to a review
curl -s -X POST \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"replyText": "Sorry about the crash! 4.1.3 fixes the camera issue on Android 14. If it still happens, email support@yourapp.com with your device model."}' \
"https://androidpublisher.googleapis.com/androidpublisher/v3/applications/$PKG/reviews/REVIEW_ID:reply"
On success you get back result.replyText and result.lastEdited. A few things to know:
- Replies are public on your store listing. Never include personal data about the user.
- Plain text only. HTML tags are stripped (the text inside them is kept).
- Length: replies over about 350 characters are rejected. Count Unicode code points, not UTF-16 units, so emoji and non-Latin scripts don't push you over by surprise.
- Notifications: the reviewer is notified the first time you reply to a created or modified review. Editing your reply later doesn't notify them again, unless they changed their review in between. So the first reply is the one that counts.
Node.js example (googleapis)
The official googleapis package wraps all three calls. This script fetches every review from the last week, then replies to one only after reading it again.
import { google } from 'googleapis';
const auth = new google.auth.GoogleAuth({
keyFile: process.env.GOOGLE_APPLICATION_CREDENTIALS,
scopes: ['https://www.googleapis.com/auth/androidpublisher'],
});
const play = google.androidpublisher({ version: 'v3', auth });
const packageName = 'com.example.app';
export async function listRecentReviews() {
const all = [];
let token;
do {
const { data } = await play.reviews.list({
packageName, maxResults: 100, token, translationLanguage: 'en',
});
all.push(...(data.reviews ?? []));
token = data.tokenPagination?.nextPageToken;
} while (token);
return all;
}
export async function safeReply(reviewId, replyText, seenLastModified) {
const { data } = await play.reviews.get({ packageName, reviewId });
const user = data.comments.find(c => c.userComment)?.userComment;
const dev = data.comments.find(c => c.developerComment)?.developerComment;
if (dev) return 'skipped: already answered';
if (user.lastModified.seconds !== seenLastModified) return 'skipped: review changed';
if ([...replyText].length > 350) throw new Error('reply too long');
const res = await play.reviews.reply({
packageName, reviewId, requestBody: { replyText },
});
return res.data.result;
}
Keep the service account key out of your repository: load it from a secret manager or an environment variable on the server.
Don't want to maintain this? ReplyEnvoy connects through a per-workspace service-account email you invite with only "View app information" and "Reply to reviews", polls for new reviews, and drafts a reply in the reviewer's language for you to approve. See how it works →
Errors and quotas
Google's reviews documentation lists two specific errors; the others are standard Google API status codes.
| 400 | replyText is missing or too long. Fix the text; don't retry it unchanged. |
|---|---|
| 401 | No valid credentials, usually an expired or missing access token. Refresh the token (client libraries do this for you) and check the scope. |
| 403 | Permission denied. Common causes: the API isn't enabled in the credentials' Cloud project, the service account wasn't invited for this app, it lacks Reply to reviews, or the package name is wrong. Don't retry until access is fixed. |
| 404 | No review with that reviewId. |
| 429 | Quota exhausted. The review quotas are hourly (GET) and daily (POST), so retrying straight away won't help. Wait for the window to reset and lower your request rate. |
| 5xx | Temporary server error. Retry with exponential backoff and jitter. |
Quotas are enforced separately for each app. You can see usage in the Quotas section of the Google Cloud Console, and if you really need more than 200 reads an hour or 2,000 replies a day, Google lets you request a higher quota.
Polling cadence and safe replies
There are no review webhooks in this API, so you poll. Because reviews disappear from the API after about a week, a job that breaks for a few days loses reviews for good. Some rules of thumb:
- Poll every 15–60 minutes. Every 15 minutes is 4 list calls an hour for a quiet app, well inside 200 GETs per hour, and leaves room for
getcalls before replying. - Stop paging early. Results come newest first, so stop once you reach a
lastModifiedolder than your last successful poll (keep some overlap). - Store by
reviewIdand treat a newerlastModifiedas an edited review that may need a new answer. - Re-read before replying. A reply replaces the old one, and drafts get stale. Call
reviews.getright before posting and skip if someone already answered or the review changed. - Validate every reply: 350 code points, no placeholders like
[NAME], no personal data, nothing that asks for a better rating. - Alert on failure. If the poller hasn't succeeded in 24 hours, someone should know.
If you plan to post replies without a person reading each one, read how to auto-reply to Google Play reviews safely first. Google's API docs discourage posting automated replies that you plan to fix by hand later.
Frequently asked questions
Can I get all my Google Play reviews through the API?
No. The Reply to Reviews API returns only reviews with text that were created or modified in roughly the last 7 days, and only for production versions of your app. For older reviews, use the review reports that Play Console exports as monthly CSV files to Google Cloud Storage.
Is the Google Play Developer API free to use?
The Reply to Reviews endpoints are governed by quotas rather than a price: by default 200 GET requests (list and get) per hour and 2,000 replies per day, enforced per app. If you need more, Google lets you request a higher quota.
Do I need a service account or OAuth to read Google Play reviews?
Either works. A service account suits a server or scheduled job and must be invited in Play Console with the Reply to reviews permission. An OAuth client suits tools where a person signs in with their own Google account, and it can only do what that person is allowed to do in Play Console.
Why does the API return 403 when I call reviews.list?
Usually the caller has no access to that app. Check that the Google Play Developer API is enabled in the Cloud project that owns the credentials, that the service account email was invited in Play Console Users and permissions with Reply to reviews for this app, and that the package name is exact.
Does the user get notified when I reply through the API?
Yes, the first time. Google notifies the reviewer when you first reply to a created or modified review. Editing your reply later does not notify them again, unless they changed their review in the meantime.
How long can a Google Play review reply be?
About 350 characters of plain text. Longer replies are rejected with a 400 error. HTML tags are stripped and do not count toward the limit, so just send plain text.
Skip the plumbing: get every new Google Play review drafted and ready to approve. ReplyEnvoy is free during early access.