Skip to main content

AI Visibility API

Use the AI Visibility API to access performance metrics and AI answers, compare competitors, manage prompts and topics, and run prompts on demand.

What it is

The AI Visibility API gives you programmatic access to your AI Visibility data and tracking configuration in Keyword.com.

You can:

  • Retrieve brand visibility, detection rate, ranking, sentiment, and citation metrics.

  • Compare your brand with competitors.

  • Analyze performance by prompt, topic, and AI engine.

  • Retrieve historical trends and individual AI-generated answers.

  • Add, edit, remove, and run prompts.

  • Add, rename, and delete topics.

For authentication instructions, available requests, parameters, and response examples, see the AI Visibility API documentation.
​

Why it matters

The API lets you automate AI Visibility reporting and manage tracking from your own tools.
​

Use it to:

  • Build custom dashboards and client reports.

  • Feed data into internal reporting systems or a data warehouse.

  • Combine AI Visibility with SEO, analytics, CRM, or revenue data.

  • Investigate the AI answers behind your performance metrics.

  • Manage prompts and topics at scale.

How it works

The API uses bearer token authentication with your existing Keyword.com API credentials.
​

Access requires an AI Visibility subscription and a role that can view AI Visibility. Actions that change data or run prompts also require permission to edit projects.
​

Most requests are organized around an AI Visibility domain associated with your project. You can find its domain ID using the List domains request or retrieve it from your project using Get project domain.
​

The API returns structured JSON data for use in dashboards, reporting tools, data pipelines, and custom integrations.
​

What data you can retrieve

Brand-level performance

Retrieve metrics such as:

  • Visibility score

  • Detection rate

  • Average rank

  • Mentions

  • Citations

  • Sentiment

  • Historical trends and period comparisons

Use these metrics together to understand how consistently and prominently your brand appears in AI answers.
​

Competitor comparisons

Compare your brand with other brands appearing in your tracked answers.

You can review overall competitor performance, follow trends over time, and investigate prompt-level ranking differences between your brand and a specific competitor.
​

Prompt, topic, and engine performance

Review individual prompts or segment reporting by topic and AI engine.

This helps you identify:

  • Topics where your brand is more or less visible.

  • Prompts where competitors appear ahead of you.

  • Differences in detection, ranking, sentiment, and citations across engines.

  • Changes in performance over time.

Individual AI answers

Retrieve the individual AI answers behind your reporting metrics.
​

Each execution represents one answer to one prompt on one AI engine. Execution details include the answer text, detected brands, citations, and sources. The model that answered is included where the engine provides it.
​

Use this data to validate results and investigate why your brand or competitors appeared in a particular answer.
​

Sentiment analytics

Review how AI answers describe your brand and other detected brands.

Sentiment data helps you monitor brand perception, compare competitors, and investigate changes in the language associated with your brand.
​

Citations and sources

Retrieve the domains and URLs cited within AI answers, along with the domains shown in supporting source panels.
​

These are separate signals: a domain displayed in a source panel is not necessarily cited within the answer text.
​

Use citation and source data to identify frequently referenced websites, compare competitor coverage, and investigate the sources supporting AI answers.
​

Manage prompts and topics

The API also lets you manage your tracking configuration.

You can:

  • Add prompts to a project or an existing AI Visibility domain.

  • Update prompt settings and tags.

  • Remove prompts from tracking.

  • Add topics.

  • Rename topics while keeping their assigned prompts.

  • Delete topics without deleting the prompts assigned to them.

Prompt text and engine cannot be changed through the edit requests.

Removing a prompt stops its tracking, while its past answers remain in reports.
​
Each engine you choose adds its own tracked prompt, so one prompt on three engines counts as three tracked prompts. Each engine run consumes credits at that engine’s rate.
​

Run prompts on demand

You can trigger prompt runs outside their normal schedule.
​

Before starting a run, you can request an estimate showing what would run, the credit cost, and whether your remaining credits cover it. Estimating does not start any runs.
​

On-demand runs consume AI Visibility credits. Paused prompts and prompts already running are skipped.
​

Completed results become available through the API.
​

Filtering and time controls

Reporting endpoints support filters such as prompts, topics, AI engines, tags, and regions, depending on the request.
​

You can choose a preset timeframe or a custom date range and use supported aggregation options to build trend reports.
​

Available preset timeframes are 24 hours, 7 days, 30 days, 3 months, and 1 year. The default is 30 days.
​

Custom date windows support up to 366 days. Hourly aggregation requires a window of 7 days or less.
​

See the API documentation for the filters and date controls supported by each request.
​

What the API does not provide

The API returns the answer text and its associated data, but it does not return the Stored page available in the platform.
​

Limits and availability

The API applies request and batch limits:

  • Data requests: 120 requests per endpoint per 60 seconds.

  • Run estimates: 30 requests per 60 seconds.

  • Starting prompt runs: 10 requests per 60 seconds, with up to 200 prompts per run.

  • Adding, editing, or removing prompts: Up to 500 prompts per request.

Requests above a rate limit return 429.
​

Engine availability can change. Prompts on a temporarily disabled engine retain their configuration but do not run until the engine becomes available again.
​

When to use the API

Use the API when you need automated reporting, custom integrations, access to individual answers, or prompt management at scale.
​

For occasional reporting, shared dashboards and CSV exports may be sufficient. For custom reporting without building an API integration, consider the Looker Studio connector.
​

Best practices

  • Review visibility and detection rate together.

  • Keep filters and date ranges consistent when comparing results.

  • Investigate individual answers before acting on a change in aggregated metrics.

  • Estimate credit usage before starting on-demand runs.

  • Handle pagination and rate limits in your integration.

  • Refer to the API documentation for current request and response formats.

Did this answer your question?