Topics API: experiment and participate

Enable interest-based advertising, without having to resort to tracking the sites a user visits.

Published on Updated on

Translated to: 日本語

Learn the essentials

The Topics API provides an overview of the proposal.

Try the API

Caution

Not all users may be eligible for the Privacy Sandbox Relevance and Measurement origin trial, even on pages that provide a valid trial token.

Testing the Privacy Sandbox ads relevance and measurement APIs explains why this is so, and shows how you can (and should) detect if an origin trial feature is available before attempting to use it.

  1. Check the Privacy Sandbox status page for updates on the implementation status of the Topics API.
  2. Experiment with the API:
    • The Topics API explains how to take part in the Privacy Sandbox Relevance and Measurement origin trial.
    • Try out Topics for a single user in Chrome 101 or above by enabling chrome://flags/#privacy-sandbox-ads-apis or by running Chrome from the command line with the --enable-features=PrivacySandboxAdsAPIsOverride feature flag.
    • Use the Topics JavaScript API to access topics provides a short code example to demonstrate how the API might be used to access topics observed for the current user.
    • How does the Topics API work? outlines the values returned by the API, and provides more information about feature support and constraints.

Get support

Is anything blocking you from experimenting with the API? Ask a question about your implementation or about the documentation:

For bugs and issues with the implementation of the Topics API in Chrome:

Join the discussion

Everyone is welcome to join in discussion of the Topics proposal. In particular, if you're experimenting with the API, your feedback is essential.

Discuss the API

Like other Privacy Sandbox proposals, this API is documented and discussed publicly.

Give feedback

  • Use the Privacy Sandbox feedback form to share feedback privately with the Chrome team outside of public forums.
  • Privacy Sandbox Feedback explains how to provide other types of feedback, and how to engage in discussion of Privacy Sandbox proposals.

Get updates

Last updated: Improve article

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.