📊 Reporting API

What is the Reporting API?

The Reporting API allows browsers to report various types of issues back to developers, including:

The ReportingObserver API lets you catch these reports in JavaScript!

ReportingObserver Status

Generate Reports

Click the buttons below to trigger various browser reports. Watch them appear in the log below and in the DevTools Application panel.

Captured Reports

No reports captured yet. Click the buttons above!

Report Types Reference

📋 Deprecation Report

Generated when using a deprecated Web Platform feature. Contains: id, message, sourceFile, lineNumber, anticipatedRemoval date.

🛑 Intervention Report

Generated when the browser intervenes to block something (e.g., blocking an autoplaying video, preventing heavy ads). Contains: id, message.

🔒 CSP Violation Report

Generated when Content Security Policy is violated. Requires server-side Report-To header.

Event Log

🔧 DevTools: Inspecting the Reporting API

  1. Open DevTools → Application panel
  2. Expand Background services → click Reporting API
  3. This panel shows all reports generated by the page
  4. You can filter by report type (deprecation, intervention, etc.)
  5. Click on a report to see its full details
  6. The Console will also show deprecation warnings

📝 Practice Exercise

  1. Open the Reporting API section in the Application panel
  2. Click "Trigger Deprecation Warning" — do reports appear?
  3. Check the Console for deprecation warnings
  4. Click "Check Buffered Reports" to see what ReportingObserver captured
  5. Try the "Trigger Browser Intervention" button — different browser behavior applies
  6. Compare what you see in the Application panel vs. the Console