Skip to main content

Supported products

The AEO (AI Engine Optimization) API lets you programmatically retrieve AI visibility data tracked in your HubSpot account. Use this API to access prompt performance data, historical prompt run results, and content improvement recommendations. For example, use it to power custom dashboards, feed automated reporting workflows, or sync AI visibility metrics with external tools. Learn more about using HubSpot’s AEO tools on the Knowledge Base:

Retrieve prompts

Prompts are AI queries tracked across AI assistants such as ChatGPT, Gemini, and Claude. Each prompt captures metadata including the language, buying journey phase, and which AI assistants are monitored for that query. Endpoints are provided for retrieving all prompts and individual prompts.

Retrieve all prompts

To retrieve all prompts in your account, make a GET request to /marketing/aeo/2026-09-beta/prompts.

Get a prompt

To retrieve a specific prompt with its aggregated visibility data, make a GET request to /marketing/aeo/2026-09-beta/prompts/{promptId}. The response includes all prompt fields plus a visibility field with aggregated visibility metrics:

Retrieve prompt runs

A prompt run represents a single execution of a tracked prompt against an AI model. Each run captures snapshot data including the total number of citations, owned mentions, and competitor mentions in the AI response.

Retrieve all runs for a prompt

To retrieve all runs for a specific prompt, make a GET request to /marketing/aeo/2026-09-beta/prompts/{promptId}/runs. The response includes a results array of prompt run objects with pagination:

Get a prompt run

To retrieve the full details of a specific prompt run, including the AI response text, individual citations, and search queries used, make a GET request to /marketing/aeo/2026-09-beta/prompt-runs/{runUuid}. The response includes all fields returned by the retrieve all endpoint, along with responseText, citations, and searchQueries fields for additional details:

Retrieve recommendations

Recommendations are content improvement actions generated from prompt run analysis. Each recommendation suggests a specific action, such as creating new content, updating an existing page, or pursuing outreach opportunities, to improve your brand’s visibility in AI responses.

Retrieve all recommendations

To retrieve all recommendations in your account, make a GET request to /marketing/aeo/2026-09-beta/recommendations. The response includes a results array of recommendation objects:

Get a recommendation

To retrieve the details of a specific recommendation, make a GET request to /marketing/aeo/2026-09-beta/recommendations/{recommendationId}. The response uses the same schema as the retrieve all endpoint. See the field definitions above.
Last modified on July 15, 2026