Core Concepts

The rules every endpoint shares: filters, metric definitions, JSON and CSV output, error codes and versioning.

Filters & common parameters

  • project_id required for all project-scoped endpoints.
  • metrics or metric: CSV of mentions, citations, responses, mention_rate (or visibility), citation_rate, ai_visibility_score, avg_position, avg_mention_position, sentiment_very_positive, sentiment_positive, sentiment_neutral, sentiment_negative, sentiment_very_negative, net_sentiment
  • granularity: day|week|month (weeks start Monday)
  • Time window: either range (days) or from & to (ISO8601). If you send to, from is required. Defaults with from/to: missing from = 30 days ago (start of day); missing to = now (end of day).
  • Filters: model, collection_id (tag id), prompt (prompt ID), country_code, language_code, competitors (CSV IDs)
  • include_project (default true): set false to exclude your project (return only competitors).

Metric definitions

These semantics are aligned 1:1 with the Overview UI.

  • mentions: daily sums of mentions_count. For week/month we compute the PERIOD TOTAL (Mon-Sun for weeks) and repeat that same total for every day in the period. If a period’s total is 0, we “carry” the last non-zero period total (sticky).
  • citations: response-level count that includes visible citations and background source references. Each actor counts at most once per response. Uses the same period-total and sticky-carry behavior as mentions.
  • responses: total number of prompt executions (API calls to LLMs). Uses project-level execution count regardless of actor. • day: daily sum. • week/month: period total (no sticky carry, days with 0 executions show 0).
  • Mention Rate mention_rate (also accepted as visibility): percentage per actor, using the project-level executions as denominator under the same filters (mentions_count / prompt_executions_count × 100). • day: compute the daily ratio. • week/month: compute the ratio-of-sums for the period (Σ mentions / Σ executions) and repeat that value for every day in the period. If the period's denominator is 0, carry forward the last non-null value.
  • citation_rate: percentage of responses that include a visible or background citation for the actor (citations_count / prompt_executions_count × 100). • day: daily ratio. • week/month: ratio-of-period-sums with sticky carry, same as visibility.
  • AI Visibility Score ai_visibility_score: position-weighted score that accounts for mention prominence. Every response that mentions the actor adds 100 ÷ position points (position 1 = 100, position 2 = 50, position 3 = 33.33, etc.), and the points are divided by the tracking runs, one per day, week or month at the account’s tracking frequency, that hold responses under the same filters, so the score reads as an average run: it is not a percentage, it is not capped at 100 and it does not grow with the length of the window. A prompt added mid-week answers on its own day but belongs to that week’s run. Competitors divide by the project’s runs, so their scores compare with yours. • day: the day’s points. • week/month: the period’s points divided by the runs it holds, repeated for every day in the period; if a period has no responses at all, we “carry” the last period value (sticky). • /metrics/summary: the window’s points divided by its runs, the same number the Overview shows.
  • avg_position: average visible citation position. Background citations have no visible position and are excluded. • day: daily average excluding nulls. • week/month: average within the period (ignoring nulls) and then propagate (carry) the last known value to days without data, matching the Overview chart smoothing.
  • avg_mention_position: average position of the brand when mentioned in AI responses (position 1 = first mentioned, position 2 = second, etc.). Lower is better. • day: daily average excluding nulls. • week/month: average within the period with sticky carry.
  • Sentiment metrics sentiment_very_positive,sentiment_positive,sentiment_neutral,sentiment_negative,sentiment_very_negative: for each actor and day, percentage of sentiments in that bucket over all sentiments for that actor. • day: daily ratio (bucket_count / total_sentiments * 100). Days with no sentiments return null. • week/month: we compute a ratio-of-period-sums (Σ bucket / Σ total * 100) and repeat that percentage for every day in the period. If the period’s denominator is 0, we carry forward the last non-null value (sticky), matching the Overview smoothing.
  • Net Sentiment Score net_sentiment: for each actor and day, the score ranges from -100 to 100 and is calculated as ((very_positive + positive) − (negative + very_negative)) / total_sentiments × 100, where total_sentiments is the sum of counts across all five sentiment categories. The calculation uses counts directly, without first rounding the individual category percentages, and rounds the resulting score to two decimal places. • day: calculates the score from that day’s counts and returns null when no sentiments are classified. • week/month: calculates one score per period from the counts summed across that period; the API returns one point per period. If a period has no classified sentiments, the API carries forward the last non-null score. Leading empty periods start at 0 in the REST API. • /metrics/summary: calculates one score from the counts summed across the whole window, the score the app shows for the same filters, and returns null when the window has no classified sentiments.

In /metrics/summary, total is a sum for count metrics and the window’s points divided by its tracking runs for ai_visibility_score. Rates, positions and sentiment (visibility, citation_rate, avg_position, avg_mention_position, net_sentiment and the sentiment shares) are pooled over the whole window, the number the app shows for the same filters, never a mean of the period values.

Output Formats for BI Tools

Read endpoints return nested JSON by default, which is convenient for code but unreadable for business intelligence tools. Pass the optional output parameter to get the same data as a rectangular table that Tableau, Excel, Google Sheets or a warehouse loader can consume directly.

  • output omitted (default): the nested JSON documented for each endpoint. Unchanged, so existing integrations are unaffected.
  • output=flat: the same metadata plus columns (ordered column names), rows (one flat object per row) and row_count.
  • output=csv: the same rows as text/csv, with columns as the header row.

Supported on /metrics/timeseries, /metrics/summary, /metrics/sov, /metrics/prompt_summary, /metrics/top_sources, the /search_console/* series and the list-returning /dimensions/* endpoints. Endpoints whose payload is not a single table (/metrics/agent_traffic, /metrics/ai_traffic, /search_console/summary, /dimensions/models, /dimensions/locales) reject output instead of ignoring it.

/metrics/sov also accepts view=over_time (default), view=current or view=breakdown: its payload holds several different shapes and a table can only hold one at a time.

Columns by endpoint

Endpoint Columns
/metrics/timeseries date, actor_type, actor_id, actor_name, actor_domain, metric, value
/metrics/summary actor_type, actor_id, actor_name, actor_domain, metric, aggregation, total, min, max, last
/metrics/sov date, actor_type, actor_id, actor_name, actor_domain, share
/metrics/sov?view=current actor_type, actor_id, actor_name, actor_domain, share
/metrics/sov?view=breakdown rank, actor_type, actor_id, actor_name, actor_domain, share, others
/metrics/prompt_summary, /metrics/top_sources, /search_console/timeseries|queries|pages, /dimensions/* The keys of the endpoint's own data rows

Example

GET /api/v1/metrics/timeseries?project_id=1&range=30&metrics=mentions&output=csv

date,actor_type,actor_id,actor_name,actor_domain,metric,value
2025-01-01,project,1,My Brand,mybrand.com,mentions,10
2025-01-01,competitor,2,Competitor A,competitor.com,mentions,5

Notes:

  • Errors are always returned as JSON, never as CSV, so a failure is never mistaken for data.
  • Percentages stay on the raw 0-100 scale, exactly as in the JSON response.
  • Text cells that begin with an equals, plus, minus or at sign are escaped so spreadsheets do not execute them as formulas.
  • Paginated endpoints also return their paging metadata in the X-Total-Count, X-Page and X-Per-Page response headers, which a CSV body cannot carry.
  • Flat output is capped at 200,000 rows. Above that, narrow the date range, request fewer metrics, or use granularity=week.
  • Endpoints without a flat projection reject output with ERR_INVALID_PARAM instead of ignoring it.

Errors

Errors use a consistent JSON structure. Branch on the code field. The message field contains error details when available; otherwise, it contains a default token such as missing_authorization:

Code HTTP Meaning
ERR_MISSING_AUTH 401 Missing or malformed Authorization header
ERR_INVALID_API_KEY 401 Token not recognized
ERR_REVOKED_API_KEY 403 Key revoked
ERR_INSUFFICIENT_SCOPE 403 A read-only key or OAuth token was used for a write
ERR_INSUFFICIENT_PERMISSION 403 The key's user is not allowed to do this (for example, a team member without the needed permission)
ERR_KEY_PROJECT_SCOPED 403 A key limited to some projects was used on an operation that acts on the whole account
ERR_PLAN_REQUIRED 403 The account's plan does not include this endpoint
ERR_INTEGRATION_UNAVAILABLE 403 This feature is not available for this account or on this domain
ERR_ACCOUNT_INACTIVE 403 The account's subscription has ended, or the account is paused for an unpaid renewal
ERR_SEARCH_CONSOLE_ACCESS_REVOKED 403 Google revoked the project's Search Console access; reconnect the property
ERR_CMS_ACCESS_REVOKED 403 WordPress no longer accepts the stored application password, or its user cannot write posts; reconnect the site
ERR_WEB_ANALYTICS_ACCESS_REVOKED 403 The web analytics provider refused the stored credentials; reconnect it
ERR_DRAFT_NOT_FOUND 404 Project draft not found, or created by another user
ERR_PROJECT_NOT_FOUND 404 project_id not accessible by this user
ERR_NOT_FOUND 404 Resource not found
ERR_SEARCH_CONSOLE_NOT_CONNECTED 404 The project has no Google Search Console property connected
ERR_CMS_NOT_CONNECTED 404 The project has no WordPress site connected
ERR_AI_TRAFFIC_NOT_CONNECTED 404 The project has no web analytics provider connected for AI traffic
ERR_WEB_ANALYTICS_NOT_CONNECTED 404 The project has no web analytics provider connected
ERR_AGENT_TRAFFIC_NOT_CONNECTED 404 The project has no agent traffic source connected
ERR_BING_WEBMASTER_NOT_CONNECTED 404 The project has no Bing Webmaster Tools site connected
ERR_STALE_CONTENT 409 The GEO Writer task was regenerated after the result_version sent with the edit; nothing was written
ERR_DRAFT_STATE 422 Project draft expired, already finalized or missing an earlier step (the message says which)
ERR_CMS_REJECTED 422 WordPress refused the request, the site now redirects to another address, or it can no longer be reached safely; retrying does not help
ERR_WEB_ANALYTICS_INVALID_QUERY 422 The web analytics provider rejected the query (the message carries its validation error)
ERR_INVALID_RANGE 422 Search Console date range with from after to
ERR_INVALID_PARAM 422 Validation failed (see message)
ERR_LIMIT_REACHED 422 Project, prompt, technical GEO report or recommendation limit reached (the message says which)
ERR_QUOTA_EXCEEDED 422 Competitor, GEO Writer task or webhook subscription cap reached (the message says which)
ERR_RATE_LIMITED 429 Rate limit exceeded; wait for the number of seconds in Retry-After
ERR_GENERATION_FAILED 502 An AI generation failed; retry the request
ERR_SEARCH_CONSOLE_UPSTREAM 503 Google Search Console is unavailable or over quota; wait for the number of seconds in Retry-After
ERR_CMS_UPSTREAM 503 The WordPress site could not be reached or took too long; retry later
ERR_WEB_ANALYTICS_UPSTREAM 503 The web analytics provider is unavailable, or the project's live query allowance is used up; wait for the number of seconds in Retry-After

Error body shape:

Typical 422 cases:

  • invalid metrics: only mentions, citations, responses, mention_rate (or visibility), citation_rate, ai_visibility_score, avg_position, avg_mention_position, sentiment_very_positive, sentiment_positive, sentiment_neutral, sentiment_negative, sentiment_very_negative, net_sentiment are allowed.
  • invalid granularity: must be day|week|month.
  • from/to must be ISO8601, or from is required with to.
  • range is required when neither from nor to are sent.
  • unknown competitor ids: ...: IDs not found under the project.

Versioning & Rate limits

Current version: v1. Future breaking changes will bump the path (e.g. /api/v2).

Rate limiting: 300 requests per minute per API key, counting REST and MCP calls together. An MCP client signed in with OAuth gets the same 300 requests per minute. There is no monthly or daily request quota; the per-minute budgets are the only request limits. Contact us if a key needs a higher per-minute limit.

Writes (POST, PATCH, PUT and DELETE) also count against a second budget of 60 requests per minute per API key. The MCP endpoint and POST /web_analytics/query, which only reads, are exempt.

Every response to a request made with an API key carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (the Unix time, in seconds, when the current one-minute window ends) for that per-key budget. The write budget has no headers of its own.

A request over either budget gets HTTP 429 with the error code ERR_RATE_LIMITED. Its Retry-After header gives the length of the budget's window in seconds (60), so waiting that long always clears it. Over the per-key budget, the 429 also carries the three X-RateLimit-* headers.

Requests that use the plan's quotas still count against them, for example new prompts (which also spend the tracking cycle's allowance of AI answers), projects, competitors per project, monthly GEO Writer tasks, manual GEO audit runs and monthly pitch projects. GET /account reports what is left of each.