Push the boundaries of what DataForSEO can do
Learn about the latest updates

Subscribe To Our Newsletter

Back

Capture Code Snippets with the Google AI Mode SERP API

October,22 2026 19:05:13

Announcement

You can now capture code snippets directly from Google AI Mode responses with the DataForSEO SERP API! This update provides more complete and structured data from AI-generated search results, helping you analyze technical content, monitor AI responses, and build more comprehensive AI search tracking solutions.

What’s new

We’ve added a new ai_overview_code_block_element to Google AI Mode SERP API. This new object represents code blocks displayed within Google AI Mode responses, including programming code and structured data formats such as JSON and Python.

Google AI Mode SERP API Now Supports Code Blocks

Why it matters

Google AI Mode responses can include more than plain text, links, and references. With support for code blocks, you can now capture additional types of AI-generated answers without losing their structure.

This update helps you build more comprehensive AI search monitoring tools and workflows and accurately process code snippets returned by Google AI Mode.

To explore the new element and its response structure, check out the Google AI Mode SERP API documentation.

Embed DataForSeo widget on your website


Embed code:
Preview: