Skip to content

    Brand visibility reporting

    Read monthly brand reports and analytics in your product, or create a link that gives a client a monthly summary.

    Reports, analytics and share links use saved results.

    Before you start

    • You need a brand ID (brand_id, a UUID) with saved collection samples. See the prompt collection guide.
    • Use an API key with the scope each operation needs (listed below). Send the key from your server, not from a browser.
    • Set AEO_API_BASE_URL to your API origin without a version suffix.

    Read a monthly report

    GET /v2/reports has four views, chosen with the view query parameter. The default is report.

    view What it returns Required parameters
    report (default) One brand’s report for a month brand_id
    compare Totals for two months and the change between them brand_id, from_month, to_month, view
    rollup One row per brand the key can read view
    action_outcome The baseline and measured follow-up for a client action brand_id, action_id, view. Use the analyst_action:<uuid> value returned in data.v2_action_id.

    Each view needs the analytics:read scope, is available on the Analyzer (starter) and Optimizer (growth) plans, and is marked billable: false in the v2 OpenAPI contract. The action_outcome view lists extra scope conditions in the contract for some action types, so check it before you use that view.

    The report view

    curl --fail-with-body --get "$AEO_API_BASE_URL/v2/reports" \
      -H "Authorization: Bearer $AEO_API_KEY" \
      --data-urlencode "brand_id=$BRAND_ID" \
      --data-urlencode "month=2026-10"

    Optional filters are month (YYYY-MM), report_id, engine, ai_search, topic_id and prompt_id. If you omit month, the response uses the latest month with saved collection samples. That month can have zero valid answers. A month outside your plan history returns HTTP 422. Use report_id to read a specific saved analysis revision.

    Example response, not live data. The scheduled_samples, valid_answers, answers_with_citations and visibility_score values in overall come from a test fixture. Other values are placeholders.

    {
      "data": {
        "brand_id": "<uuid>",
        "report_id": "<uuid>",
        "generated_at": "<timestamp>",
        "analysis_version": "<string>",
        "month": "<YYYY-MM>",
        "available_months": ["<YYYY-MM>"],
        "history_starts_at": "<timestamp>",
        "overall": {
          "scheduled_samples": 2,
          "valid_answers": 1,
          "mentions": "<integer>",
          "answers_with_citations": 1,
          "visibility_score": 100,
          "mean_recorded_rank": "<number or null>",
          "sentiment_counts": {},
          "gaps": {}
        },
        "engines": {},
        "ai_searches": {},
        "competitors": [],
        "prompts": [],
        "topics": [],
        "trends": []
      },
      "meta": {
        "request_id": "<string>",
        "as_of": "<timestamp>",
        "rights_filtered": "<boolean>"
      }
    }

    How to read the counts:

    • scheduled_samples includes every recorded collection slot, including slots that failed or produced no usable answer. valid_answers counts the answers that qualify for the metrics. gaps counts the slots that did not qualify.
    • visibility_score is on a 0 to 100 scale. It is null when the brand has no valid answers in the selection.
    • available_months lists the months with saved collection samples, including months with zero valid answers. Use it to fill a month picker.
    • trends has one entry per available month, so you can draw a monthly chart from one request.
    • history_starts_at is where your plan history begins. A month at that edge can be partial.
    • If your key also has prompts:read, prompts includes the question text. If it has recommendations:read, the response includes up to 20 current saved recommendations.

    Compare two months

    curl --fail-with-body --get "$AEO_API_BASE_URL/v2/reports" \
      -H "Authorization: Bearer $AEO_API_KEY" \
      --data-urlencode "view=compare" \
      --data-urlencode "brand_id=$BRAND_ID" \
      --data-urlencode "from_month=2026-09" \
      --data-urlencode "to_month=2026-10"

    from_month must be earlier than to_month. Otherwise, the request returns HTTP 422. The response includes from and to (each with month and period totals), comparison, and ai_search_comparisons. Read comparison.mention_change_percentage_points for the reported change. A null value means there is no comparable result. comparison.matched_cohorts counts groups present in both months. comparison.previous_only counts groups found only in from_month, and comparison.current_only counts groups found only in to_month.

    Read several brands at once

    view=rollup returns brands and brand_count. Each entry has brand_id, name, month, and the coverage counts and visibility_score for that brand. Pass month to compare brands on the same month. Without it, each brand uses its own latest month. Entries are sorted by visibility_score, lowest first, with brands that have no score last.

    Read analytics datasets

    GET /v2/analytics/{dataset} reads one dataset per call. Set {dataset} in the path. brand_id is required for every dataset.

    dataset Reads Scope Plans
    visibility Comparable visibility metrics by date, source, country, language, location, city, or region analytics:read Analyzer (starter), Optimizer (growth)
    prompts Metrics per saved question, with answer evidence; view is summary, history or compare analytics:read Analyzer (starter), Optimizer (growth)
    brand_perception Sentiment, themes and saved brand excerpts for a month analytics:read Analyzer (starter), Optimizer (growth)
    citations Cited page URLs and the number of answers that cite each page analytics:read Analyzer (starter), Optimizer (growth)
    dashboard Timeline, channel and prompt breakdowns with a summary analytics:read Analyzer (starter), Optimizer (growth)
    attribution Observed or modeled revenue attribution attribution:read Optimizer (growth)
    url_impact Impact of a URL attribution:read Optimizer (growth)
    page_experience Page experience results for a URL audits:read Analyzer (starter), Optimizer (growth)
    search_performance Search performance by date, query or page analytics:read Analyzer (starter), Optimizer (growth)

    Every dataset is marked billable: false in the contract. See the v2 API reference for the complete dataset list and parameters.

    Compare locations

    Use GET /v2/analytics/visibility with location_id for one location and the required date range. Use group_by=location, group_by=city, or group_by=region to break down results for the brand. Omit the location filter and grouping to read the brand total. Choose one location grouping per request. Keep country-level answers separate when you compare locations. Show the number of valid answers with each mention rate.

    For GET /v2/analytics/locations, omit both start_at and end_at to read the current UTC month. Both boundaries are at midnight UTC, on the first day of this month and the first day of the next month. Later pages keep the first page’s date range. To read another period, supply both dates. start_at is inclusive and end_at is exclusive.

    Visibility over a date range

    visibility requires start_at and end_at (date-times). It also accepts platform, mode, country, group_by (up to three of date, source, country, language, location, city, or region, with at most one location grouping), limit (1 to 100, default 50) and cursor.

    curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/visibility" \
      -H "Authorization: Bearer $AEO_API_KEY" \
      --data-urlencode "brand_id=$BRAND_ID" \
      --data-urlencode "start_at=2026-10-01T00:00:00Z" \
      --data-urlencode "end_at=2026-11-01T00:00:00Z" \
      --data-urlencode "group_by=date" \
      --data-urlencode "limit=50"

    Example response, not live data. Values in angle brackets are placeholders. Only some row fields are shown.

    {
      "data": [
        {
          "brand_id": "<uuid>",
          "date": "<date or null>",
          "platform": "<string>",
          "mode": "<string>",
          "mention_rate": "<number or null>",
          "visibility_score": "<number or null>",
          "share_of_voice": "<number or null>",
          "coverage": {
            "status": "<ok | partial | insufficient_data>",
            "valid_answers": "<integer>",
            "expected_prompts": "<integer>",
            "low_sample": "<boolean>"
          }
        }
      ],
      "meta": {
        "request_id": "<string>",
        "as_of": "<timestamp>",
        "next_cursor": "<string or null>",
        "rights_filtered": "<boolean>",
        "stale": "<boolean>",
        "warnings": []
      }
    }

    Read coverage.valid_answers beside each rate. A row with coverage.status of insufficient_data or low_sample set to true rests on few answers. To read the next page, send meta.next_cursor as cursor. When it is null, you have the last page.

    Brand perception

    curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/brand_perception" \
      -H "Authorization: Bearer $AEO_API_KEY" \
      --data-urlencode "brand_id=$BRAND_ID" \
      --data-urlencode "month=2026-10"

    The response includes recorded_mention_answers, recorded_mentions, classified_answers, unclassified_mentions, sentiment (positive, neutral and negative counts), theme_answer_counts and supporting_excerpts. Excerpts are returned only while the saved evidence is displayable. meta.rights_filtered is true when some were left out. The filters are month, engine, ai_search, topic_id and prompt_id.

    Put a monthly client report in your product

    There are two ways to deliver a monthly report. You can use both.

    Build the report in your own interface

    1. Call GET /v2/reports with brand_id and no month. Read available_months to fill a month picker, and trends to draw the monthly chart.
    2. When a user picks a month, call it again with month. Show overall.visibility_score with overall.valid_answers beside it, so the reader sees how many answers the score rests on.
    3. Call view=compare with the previous month as from_month to show the change.
    4. Call GET /v2/analytics/brand_perception for sentiment and themes, and GET /v2/analytics/citations for the pages cited in answers (see the citation analysis guide).

    A share link shows the brand, month, number of eligible answers and how many of those answers mention the brand. The redemption response also includes mention_rate. Anyone with the link can read the report while the link is active and the brand and report still qualify for sharing.

    Create a link. Send PATCH /v2/reports with section set to share_link_create. This request requires the brands:write and analytics:read scopes and an Idempotency-Key header of 8 to 128 characters. The body takes brand_id, month and expires_in_days (1 to 30, default 7).

    Before creating a share link, run SHARE_LINK_KEY=$(uuidgen) once and save the key for this operation. Retry with the saved key and the same request body. Generate a new key for each new operation.

    curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/reports" \
      -H "Authorization: Bearer $AEO_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: ${SHARE_LINK_KEY:?Set SHARE_LINK_KEY before sending}" \
      -d '{"section":"share_link_create","brand_id":"'"$BRAND_ID"'","month":"2026-10","expires_in_days":7}'

    Example response, HTTP 201, not live data. Values in angle brackets are placeholders.

    {
      "data": {
        "share_id": "<uuid>",
        "share_path": "/shared/reports#<token>",
        "expires_at": "<timestamp>"
      },
      "meta": {
        "request_id": "<string>",
        "as_of": "<timestamp>"
      }
    }

    Resolve share_path against your AEO API origin and give the full URL to your client. Keep share_id, because you need it to revoke the link. Sending the same key with the same body returns the same link while it is valid. Sending the same key with a different body returns HTTP 409.

    Revoke a link. Send PATCH /v2/reports with section set to share_link_revoke and pass brand_id and share_id in the request body. Use an editor, owner or service key with the brands:write scope. Revocation returns HTTP 204 with an empty body, including when you revoke the same link again. You can omit the Idempotency-Key header. After revocation, the shared-report page says the link cannot be opened.

    What the client view counts. The shared report counts only valid answers eligible for sharing. That count can differ from GET /v2/reports for the same brand and month. If creating a link returns HTTP 404 with code: not_found and says no answers can be shared for that month, choose a month with shareable answers and request a new link.

    Use the share link when the client needs a summary of monthly mentions. Use GET /v2/reports and the analytics datasets when you want to show more, or want the report to look like your product.

    Plans, scopes and credits

    Use the scopes below for reads and share links.

    Operation Plans Scope Billable
    GET /v2/reports (all four views) Analyzer (starter), Optimizer (growth) analytics:read No
    GET /v2/analytics/{dataset} See the dataset table See the dataset table No
    PATCH /v2/reports (share_link_create) Analyzer (starter), Optimizer (growth) brands:write, analytics:read No
    PATCH /v2/reports (share_link_revoke) Analyzer (starter), Optimizer (growth) brands:write No

    See pricing for plan details.

    Request fields and response formats for each operation are in the v2 OpenAPI contract and the v2 API reference.

    Next step

    Request API access