# AI Visibility Tools with API, MCP, and Webhook Access

Canonical: https://devtune.ai/blog/ai-visibility-tools-with-api-mcp-and-webhook-access

Published: 2026-11-25T00:00:00.000Z

Author: Ben Williams


AI visibility platforms can expose AI search visibility and citation data programmatically for your own dashboards, data pipelines, and coding agents. For growth, DevRel, and docs engineers at developer-tool companies, the decision comes down to four access surfaces: **REST API**, **MCP server**, **webhooks**, and **dashboard and export**. Use this guide to choose the surface your stack needs and verify a vendor's programmatic claims before starting a trial.

## What programmatic access means for AI search data

Programmatic access moves AI search measurements out of a browser dashboard and into the systems where engineering and growth teams already track product metrics. Before comparing access surfaces, pin down the five metrics those surfaces carry, along with their unit and measurement window:

- **Presence rate:** Percentage (`%`, 0–100) of completed answers with citation data in a fixed measurement window (typically 30 or 90 days) that cite at least one of your tracked URLs.
- **Share of voice:** Your citations as a percentage (`%`, 0–100) of your citations plus your tracked competitors' citations, over a fixed measurement window (typically 30 or 90 days). Other sources are left out of the denominator.
- **Citation counts:** Integer count of source URLs cited in AI answers—tracked across your own domains, competitor domains, and third-party domains—over a fixed measurement window (such as 30 or 90 days) or per daily run.
- **Answer fetches:** Integer count of live server-side HTTP requests made by AI answer fetchers and coding agents retrieving pages from your hostname over a rolling measurement window (such as 7, 30, or 90 days).
- **Referral sessions:** Integer count of human visits arriving on your site from an AI platform—identified via HTTP referrer or `utm_source`—during a measurement window (such as 7, 30, or 90 days).

### The four access surfaces

Each access surface uses a different delivery model and carries a specific slice of those metrics:

| Access surface           | Delivery model                                                  | Data carried                                                                                                                                                                       | Primary use case                                                                         |
| ------------------------ | --------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| **REST API**             | Pull (scheduled HTTP requests)                                  | Visibility aggregates, citation counts and cited URLs, per-prompt answer records, answer fetches, referral sessions, and workflow items                                            | BI dashboards, warehouse syncs, CI checks, and custom scripts                            |
| **MCP server**           | Pull (on-demand tool calls, plus scoped writes where supported) | Project visibility metrics, citation evidence, AI traffic, and recommended actions exposed as structured tools over the [Model Context Protocol](https://modelcontextprotocol.io/) | Coding agents and AI assistants querying project data inside an IDE or agent loop        |
| **Webhooks**             | Push (signed HTTP POST events)                                  | Event payloads notifying your receiver when a tracking run completes, visibility metrics change, or an action is created                                                           | Event-driven ingestion, Slack or PagerDuty alerts, and workflow triggers without polling |
| **Dashboard and export** | Manual pull (browser UI and file downloads)                     | Charts, prompt tables, and ad-hoc CSV or JSON exports of the same underlying metrics                                                                                               | Prompt-set validation, executive snapshots, and one-off reviews                          |

### Which surface your stack needs

Pick **REST API plus webhooks** as your default integration pattern when AI search metrics belong in a data warehouse, BI dashboard, or automated alerting pipeline: webhooks tell your worker when a daily tracking run finishes, and the REST API pulls the updated aggregates and citation records without polling. Choose an **MCP server** when the primary consumer is a coding agent or an engineer working inside an IDE who needs live citation evidence before editing documentation. Rely on **dashboard and export** only while validating your initial prompt set and before committing engineering time to an integration.

## DevTune's access surfaces

DevTune exposes programmatic access across REST, MCP, and webhooks alongside its browser dashboard. API, MCP and webhook access come with **every plan on the [pricing page](https://devtune.ai/pricing)** (checked 25 November 2026):

- **REST API v2 (pull):** Uses project-scoped API keys and granular read/write endpoint scopes covering Visibility, AI Traffic, Actions, and Results. See the [REST API reference](https://docs.devtune.ai/api-reference/overview) for endpoints and fixed rolling-window rules, [API authentication](https://docs.devtune.ai/api-reference/authentication) for key creation and scopes, and [API Rate Limits](https://docs.devtune.ai/api-reference/rate-limits) for per-plan request quotas.
- **MCP server (pull and scoped writes):** Runs over Streamable HTTP so coding agents can read project visibility, citations, traffic, and actions directly. Connects Codex via OAuth, and connects Claude Desktop, Cursor, and Claude Code via API key (with OAuth supported for compatible clients). See the [MCP server documentation](https://docs.devtune.ai/api-reference/mcp-server) and [API authentication](https://docs.devtune.ai/api-reference/authentication) for setup, transport URL, and tool scopes.
- **Webhooks (push):** Sends signed HTTP POST notifications for project events including search-tracking completion (`search-tracking.completed`), visibility changes (`visibility.changed`), and action creation (`action.created`). See the [Webhooks documentation](https://docs.devtune.ai/api-reference/webhooks) for the full event table, payload schemas, and signature verification.
- **Dashboard and export (manual pull):** Displays Visibility, AI Traffic, Actions, and Results in the web application alongside the API and MCP surfaces. See the [AI Traffic overview](https://docs.devtune.ai/ai-traffic/overview) for how dashboard views map to API endpoints.

## How to evaluate a vendor's API claim

Many AI visibility vendors advertise API or MCP support on a marketing page while exposing only rolled-up dashboard scores. Run these six yes-or-no checks against a vendor's technical documentation before starting a trial, and verify each answer against its concrete artifact:

1. **Does the API return raw answer text per prompt, or aggregates only?**
   _Artifact to inspect:_ A response-level endpoint schema and sample payload containing the recorded AI answer text tied to a prompt identifier, AI platform, and execution timestamp—not only project-wide percentage rollups.
2. **Does the API expose citation rows per prompt and per platform?**
   _Artifact to inspect:_ A citation endpoint or per-response citation array listing individual cited URLs, domains, citation positions, and the originating AI platform for each prompt run.
3. **Are failed or partial probe runs returned explicitly as missing coverage?**
   _Artifact to inspect:_ A coverage status field on windowed responses or a dedicated probe-health endpoint (such as DevTune's [Probe health documentation](https://docs.devtune.ai/api-reference/probe-health)) that distinguishes failed or unmeasured runs from a measured zero.
4. **Can credentials separate read scopes from write scopes?**
   _Artifact to inspect:_ The authentication and scopes reference showing read-only scopes for dashboards and pipelines separated from write scopes for prompt management, webhooks, or agent execution, plus project-level isolation.
5. **Are rate limits and data retention windows documented per plan?**
   _Artifact to inspect:_ A published rate-limits page detailing per-window request allowances, `429` retry headers (`X-RateLimit-*` and `Retry-After`), and raw event or answer history retention for each plan tier.
6. **Are the MCP server's transport protocol and authentication model documented?**
   _Artifact to inspect:_ The MCP server specification naming the transport (such as hosted Streamable HTTP versus local stdio), supported authentication methods (OAuth for interactive clients versus bearer API keys for non-interactive agents and CI), and whether MCP tools enforce the same scopes as the REST API.

## Worked example: pulling citation data over the REST API

This end-to-end example pulls 30-day aggregate citation statistics from DevTune's REST API v2 using the schema from [Get aggregate citation statistics](https://docs.devtune.ai/api-reference/get-aggregate-citation-statistics). The request and response below are derived directly from the API reference and are **untested against a live project** in this guide.

### Prerequisites

- A DevTune account on a plan that includes API access; every plan on [DevTune Pricing](https://devtune.ai/pricing) does (checked 25 November 2026 there and in the [REST API reference](https://docs.devtune.ai/api-reference/overview)).
- A project-scoped API key (`dtk_live_...`) with the `citations.read` scope, created from **API Keys** in your account sidebar ([API authentication](https://docs.devtune.ai/api-reference/authentication)).
- One project ID (`{projectId}`) with tracked prompts that have completed search-tracking runs.

### Request

DevTune's windowed endpoints accept fixed rolling windows (`windowDays=30` or `90`) rather than arbitrary `dateFrom` and `dateTo` query parameters, which return `400` ([REST API reference](https://docs.devtune.ai/api-reference/overview)). Request a 30-day citation rollup across all tracked topics:

```bash
curl --request GET \
  --url "https://devtune.ai/api/v2/projects/{projectId}/citations/stats?windowDays=30&promptScope=all" \
  --header "Authorization: Bearer dtk_live_your_key_here"
```

To break citation and visibility totals down for a single AI platform over the same 30- or 90-day rolling window, pass the `platform` query parameter to `GET /api/v2/projects/{projectId}/visibility/summary` with the `visibility.read` scope ([Get visibility summary metrics](https://docs.devtune.ai/api-reference/get-visibility-summary-metrics)). To list individual cited URLs and positions, call `GET /api/v2/projects/{projectId}/citations/top-pages` ([Get top citation pages](https://docs.devtune.ai/api-reference/get-top-citation-pages)).

### Expected response shape (untested against a live project)

The `200 OK` response returns the exact JSON structure documented in [Get aggregate citation statistics](https://docs.devtune.ai/api-reference/get-aggregate-citation-statistics) (placeholder values shown; untested against a live project):

```json
{
  "data": {
    "stats": {
      "totalCitations": 123,
      "uniquePages": 123,
      "uniqueDomains": 123,
      "avgPosition": 123,
      "top3Count": 123,
      "primaryCitations": 123,
      "competitorCitations": 123,
      "otherCitations": 123
    },
    "coverage": {
      "status": "available",
      "windowDays": 30
    },
    "window": {
      "days": 30,
      "dateFrom": "2026-10-26",
      "dateTo": "2026-11-25"
    }
  },
  "meta": {
    "timestamp": "2026-11-25T12:00:00Z",
    "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}
```

### Expected result (untested against a live project)

In a warehouse sync or dashboard job, check three sections of the payload before writing rows:

- **`data.coverage.status`:** Confirm the status is `"available"` so unready windows are not recorded as zero citations.
- **`data.window.dateFrom` and `data.window.dateTo`:** Store the resolved rolling date boundaries returned by the API rather than computing dates locally.
- **`data.stats`:** Persist `primaryCitations`, `competitorCitations`, `otherCitations`, `totalCitations`, `uniquePages`, `uniqueDomains`, `avgPosition`, and `top3Count` as your 30-day citation snapshot.

If the API key lacks `citations.read`, the endpoint returns `403` rather than partial data; if your credential exceeds its per-minute allowance, it returns `429` with `details.retryAfterSeconds` ([API Rate Limits](https://docs.devtune.ai/api-reference/rate-limits)).

## What programmatic access cannot measure

An API, MCP server, or webhook stream can only return what the underlying measurement stack collects. Two structural limits apply regardless of which access surface you use:

- **AI referral sessions are systematically undercounted:** as documented in DevTune's [AI Traffic overview](https://docs.devtune.ai/ai-traffic/overview), most AI-driven visitors arrive on your site as direct traffic without a platform referrer. Treat referral session counts pulled via API or MCP as the visible tail of AI-driven visits, not the total human demand generated by AI answers.
- **Answer fetches and 404 demand require a server-side crawler sensor:** as documented in DevTune's [AI Traffic overview](https://docs.devtune.ai/ai-traffic/overview) and [sensor selection guide](https://docs.devtune.ai/ai-traffic/choosing-sensors), seeing live answer fetches and missing pages that AI systems request (404 demand) requires connecting a server-side crawler sensor on your hostname—such as a Cloudflare log pull, edge middleware, or a Vercel log drain. A browser analytics snippet or a visibility-only API cannot capture server-side fetcher requests.

## Related guides

- Compare what free checks and paid platforms measure before wiring up an API in [Free vs. paid AI visibility tracking tools](https://devtune.ai/blog/free-ai-visibility-tracking-tools).
- Review how free AI visibility checkers differ from recurring tracking in [AI Visibility Checkers: 5 Free Tools Compared](https://devtune.ai/blog/ai-search-visibility-checker).
- Start directly with the [REST API reference](https://docs.devtune.ai/api-reference/overview) or [MCP server documentation](https://docs.devtune.ai/api-reference/mcp-server).
