Skip to content
AnswerWell geo Documentation

Research · 8 min read · Answerwell

Extension Publish API: REST Endpoints, OAuth, Upload, and Rollout

How to publish and manage browser extensions with the Chrome Web Store REST API: OAuth scopes, upload, publish, status, metrics, and rollout.

This page summarises Chrome for Developers documentation on the Chrome Web Store API—the REST interface used to create, update, publish, and monitor extensions and themes in the Chrome Web Store without using only the Developer Dashboard.

The Chrome Web Store API lets you programmatically publish and manage your Chrome Web Store items.

— Chrome for Developers, API Reference

The current surface is the v2 API on https://chromewebstore.googleapis.com, with resources such as v2.media and v2.publishers.items. The older Chrome Web Store API (V1) Reference is deprecated and, per that document, supported only until 15 October 2026.

Chrome Web Store API: what you can do programmatically

Section titled “Chrome Web Store API: what you can do programmatically”

The Chrome Web Store API provides access to data about apps and extensions, plus developer tools for managing them.

The Chrome Web Store API provides access to data about apps and extensions, as well as developer tools for managing them.

— Chrome for Developers, Chrome Web Store API

Typical reasons to call the API include shipping a new .crx from CI, checking review or upload state, cancelling a stuck submission, reading ratings and metrics, rolling back to a previous package, or increasing a percentage rollout for large extensions.

Goal v2 method (custom method) Write scope usually required
Upload a new package media.upload chromewebstore
Submit for store publication publishers.items.publish chromewebstore
Poll item / upload status publishers.items.fetchStatus chromewebstore or chromewebstore.readonly
Cancel active review publishers.items.cancelSubmission chromewebstore
Reviews and ratings fetchReviews, getRatingSummary full or readonly
Analytics queryMetrics full or readonly
Emergency revert rollback chromewebstore
Widen rollout (eligible items) setPublishedDeployPercentage chromewebstore

For a practical walkthrough with curl examples, see Use the Chrome Web Store API. Method signatures and request bodies are in the REST API reference.

v2 uses a single service endpoint; all paths are relative to it:

This service has the following service endpoint and all URIs below are relative to this service endpoint: https://chromewebstore.googleapis.com

— Chrome for Developers, Chrome Web Store API

Clients can discover the machine-readable schema at https://chromewebstore.googleapis.com/$discovery/rest?version=v2 (documented under Discovery document on the same page).

v1 calls use https://www.googleapis.com with paths such as /chromewebstore/v1.1/items/{itemId}—see API endpoints. New automation should target v2; migrate before v1 support ends.

OAuth 2.0 and chromewebstore scopes for API requests

Section titled “OAuth 2.0 and chromewebstore scopes for API requests”

All Chrome Web Store API endpoints are authenticated with OAuth 2.0.

All endpoints are authenticated using OAuth 2.0.

— Chrome for Developers, Chrome Web Store API (V1) Reference

Valid scopes (same family for v2 method pages):

  • https://www.googleapis.com/auth/chromewebstore — publish, upload, cancel, rollback, and similar mutations
  • https://www.googleapis.com/auth/chromewebstore.readonly — read-only calls such as fetchStatus, fetchReviews, getRatingSummary, and queryMetrics

Use the Chrome Web Store API notes that the Google account that owns the store items may differ from the Google Cloud project used to register the OAuth client. Tokens expire; refresh them with your refresh token (the guide shows a curl request to https://oauth2.googleapis.com/token).

publishers.items resource name: how to address an extension in v2

Section titled “publishers.items resource name: how to address an extension in v2”

v2 methods take a name path parameter, not a bare extension ID:

publishers/{publisherId}/items/{itemId}

Example status request from the getting-started guide:

curl -H "Authorization: Bearer $TOKEN" -X GET -v \
"https://chromewebstore.googleapis.com/v2/publishers/PUBLISHER_ID/items/EXTENSION_ID:fetchStatus"

Replace PUBLISHER_ID and EXTENSION_ID with your values. The pattern :fetchStatus, :upload, :publish, and other suffixes follow gRPC transcoding conventions in the reference.

Upload a CRX package: media.upload and UploadState

Section titled “Upload a CRX package: media.upload and UploadState”

Upload pushes a new package to an existing store item:

Upload a new package to an existing item.

— Chrome for Developers, REST Resource: v2.media

HTTP targets (from Method: media.upload):

  • Media: POST https://chromewebstore.googleapis.com/upload/v2/{name=publishers/*/items/*}:upload
  • Metadata: POST https://chromewebstore.googleapis.com/v2/{name=publishers/*/items/*}:upload

A successful response can include uploadState, crxVersion, and itemId. If uploadState is UPLOAD_IN_PROGRESS, poll with fetchStatus—as described in Use the Chrome Web Store API.

Upload lifecycle enums (UploadState) include SUCCEEDED, IN_PROGRESS, FAILED, and NOT_FOUND (no upload attempt in the last 24 hours when reported as lastAsyncUploadState).

Example upload from the same guide:

curl -H "Authorization: Bearer $TOKEN" -X POST -T $FILE_NAME -v \
"https://chromewebstore.googleapis.com/upload/v2/publishers/PUBLISHER_ID/items/EXTENSION_ID:upload"

On v1, update can upload media to a draft without sending review until publish is called (Update—useful to know when maintaining legacy scripts).

Publish to the store: review, staging, and deploy percentage

Section titled “Publish to the store: review, staging, and deploy percentage”

Publish submits the item for store publication:

Submit the item to be published in the store.

— Chrome for Developers, Method: publishers.items.publish

The item will be submitted for review unless skipReview is set to true, or the item is staged from a previous submission with publishType set to STAGED_PUBLISH.

— Chrome for Developers, Method: publishers.items.publish

The request body may include publishType (DEFAULT_PUBLISH vs STAGED_PUBLISH), deployInfos with deployPercentage (0–100), skipReview, and blockOnWarnings. Warnings can be non-blocking unless blockOnWarnings is true.

Use publish to publish an item to all users. The item will be submitted for review and published when the item passes.

— Chrome for Developers, Use the Chrome Web Store API

Visibility is not overridden by the API:

Items are always published with the existing visibility settings. If you have manually changed the settings in the Developer Dashboard, you won’t be able to publish using the API until you have manually published with the new visibility at least once.

— Chrome for Developers, Use the Chrome Web Store API

On v1 publish, publishTarget may be trustedTesters or default; changing only deployPercentage still triggers review (Publish).

cancelSubmission: stop a pending Chrome Web Store review

Section titled “cancelSubmission: stop a pending Chrome Web Store review”

Cancel the current active submission of an item if present. This can be used to cancel the review of a pending submission.

— Chrome for Developers, Method: publishers.items.cancelSubmission

The Chrome Web Store hub also describes cancelling a pending review from the dashboard or API.

ItemState and fetchStatus: track review, published, and policy flags

Section titled “ItemState and fetchStatus: track review, published, and policy flags”

ItemState (ItemState) describes where an item sits in the lifecycle, including:

State Meaning
PENDING_REVIEW Awaiting review
STAGED Approved; ready to publish
PUBLISHED Public in the store
PUBLISHED_TO_TESTERS Trusted testers channel
REJECTED Rejected for publishing
CANCELLED Submission cancelled

fetchStatus returns publishedItemRevisionStatus and submittedItemRevisionStatus (each with state and distributionChannels including deployPercentage and crxVersion), plus lastAsyncUploadState, takenDown, and warned. If takenDown or warned is true, the reference directs you to the Developer Dashboard for policy details.

v1 publish responses use string status codes such as OK, ITEM_PENDING_REVIEW, and NOT_AUTHORIZED (Publish response).

queryMetrics, fetchReviews, and getRatingSummary

Section titled “queryMetrics, fetchReviews, and getRatingSummary”

Metrics (queryMetrics) require a timeSpec and one or more metrics, for example installs, installs-7d, uninstalls, users, users-7d, impressions, and page-views. Optional dimensions[] slice by os, country, app-version, UTM fields, and others (at most one dimension). Results paginate with pageToken (max pageSize 1000).

Reviews (fetchReviews): default up to 50 reviews per page, max 200; filter with rating = 5; sort with orderBy on rating or createTime.

Rating summary (getRatingSummary) returns aggregate rating, counts per star, ratingCount, and nonEmptyReviewCount.

All three accept readonly scope where noted on each method page.

rollback and setPublishedDeployPercentage: release safety and gradual rollout

Section titled “rollback and setPublishedDeployPercentage: release safety and gradual rollout”

Rollback replaces the live CRX with a previously published version and publishes it to all users (rollback). The body requires targetCrxVersion, newVersion (must be higher than the current published version), and rollbackReason; validateOnly performs a dry run.

Gradual rollout for eligible extensions:

Set a higher target deploy percentage for the item’s published revision. This will be updated without the item being submitted for review. This is only available to items with over 10,000 seven-day active users.

— Chrome for Developers, Method: publishers.items.setPublishedDeployPercentage

deployPercentage must be greater than the existing target (0–100). The using API guide shows a JSON POST to :setPublishedDeployPercentage.

On v1, deployPercentage on publish can only increase per release, and new installs always receive the latest version regardless of percentage (Publish parameters).

Common mistakes when calling the Chrome Web Store Publish API

Section titled “Common mistakes when calling the Chrome Web Store Publish API”
  • Calling publish while a submission is already in review (v1: publish fails if the item is already under review—Publish).
  • Upload without bumping version in manifest.json.
  • Using the wrong OAuth account—not the publisher account that owns the item (Try a request).
  • Expecting the API to change visibility after dashboard edits without a manual publish first.
  • Setting reviewExemption on v1 publish when the draft does not qualify (call fails—Publish).
  • Confusing v1 uploadState draft values (SUCCESS, IN_PROGRESS, …) with v2 UploadState enum names when parsing responses.
  • Using setPublishedDeployPercentage on extensions below the 10k seven-day active user threshold.
  1. In the Chrome Web Store Developer Dashboard, confirm Store listing, Privacy, and 2-step verification meet prerequisites.
  2. Obtain an OAuth access token with scope https://www.googleapis.com/auth/chromewebstore.readonly and call :fetchStatus as in Use the Chrome Web Store API; confirm itemId and revision states match what you expect.
  3. After a test upload, poll :fetchStatus until lastAsyncUploadState is not UPLOAD_IN_PROGRESS (UploadState).
  4. After :publish, watch submittedItemRevisionStatus.state for PENDING_REVIEW → PUBLISHED or STAGED (ItemState).
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about, and we will correct or clarify it.