Deprecation YouTube
YouTube comments.markAsSpam is no longer supported through the API
What changed
The 12 September 2023 revision history entry states that comments.markAsSpam is no longer supported through the API. The entry gives no separate cutoff date, so the effective date is Not stated.
What it means
Comment moderation tools can no longer flag a comment as spam through the YouTube Data API.
Who is affected
Developers of community management and inbox tools that moderate YouTube comments.
What to do
Stop calling comments.markAsSpam and send moderators to YouTube Studio for spam handling. Use the other moderation methods that remain documented.
Primary sources
Checked against the source 26 Oct 2026
Get an email when a new API change is added
Follow new entries with the RSS feed. Each platform also has its own feed, for example X or Meta.