Topics API: experiment and participate

Quick guide to implement and test the API. Access topics with JavaScript and share your feedback.

Published on Updated on

Learn the essentials

  • Topics API overview introduces the API and explains the issues it addresses.
  • Topic classification explains the classifier model, how topics are inferred and assigned to users' browsers, and how users can control their topics list.
  • The Topics API developer guide covers setup, getting and setting topics using JavaScript and headers, and debugging.

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:

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

Updated on Improve article

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