Skip to content

    Citation analysis

    Use GET /v2/analytics/{dataset} to see which pages saved answers cite, and which cited pages and domains appear when your brand is missing.

    These reads use saved answers.

    What each dataset returns

    dataset What it answers Paging
    citations Which pages do answers cite for this brand? limit, offset
    citation_gaps Which exact third-party pages and domains do answers cite when a tracked competitor appears and the brand is missing? limit, offset
    missing_brand Which pages do answers cite when the brand is missing? limit, cursor

    Before you start

    • You need a brand ID (brand_id, a UUID) with collected answers. See the prompt collection guide for how answers are collected.
    • Use an API key with the analytics:read scope. Send the key from your server.
    • The operation is available on the Analyzer (starter) and Optimizer (growth) plans. Each dataset is marked billable: false in the v2 OpenAPI contract, so a read does not use credits.
    • Set AEO_API_BASE_URL to your API origin without a version suffix.

    Filters

    These datasets require brand_id. These filters narrow the answers a dataset reads. Filters apply together.

    Parameter Type Datasets Meaning
    month YYYY-MM all The month to read. If you omit it, the latest month with saved answers is used. A month outside your plan history returns HTTP 422.
    engine string, 1 to 200 characters all Limit to one engine family, using the engine value that report responses return.
    ai_search string, 1 to 200 characters all Limit to one AI search product, using the ai_search value that report responses return.
    topic_id string, 1 to 200 characters all A topic. It can be a topic UUID returned by GET /v2/prompts?view=topics or a category ID stored with the answers.
    prompt_id UUID all Limit to one saved question.
    report_id UUID citation_gaps, missing_brand Read a specific saved analysis revision instead of the latest one. The inventory dataset does not accept it.
    page_id 64-character lowercase hex string missing_brand Select one cited page. Use the page_id from the inventory dataset.

    Find the pages AI answers cite

    citations lists cited page URLs, most-cited first. It counts only answers that are valid and whose saved evidence is still displayable, and it lists only http and https URLs.

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

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

    {
      "data": {
        "brand_id": "<uuid>",
        "month": "<YYYY-MM>",
        "urls": [
          {
            "page_id": "<64-character hex string>",
            "url": "<string>",
            "domain": "<string>",
            "citing_answers": "<integer>"
          }
        ],
        "total_urls": "<integer>",
        "next_offset": "<integer or null>"
      },
      "meta": {
        "request_id": "<string>",
        "as_of": "<timestamp>",
        "rights_filtered": "<boolean>"
      }
    }

    citing_answers is the number of answers that cite the URL. rights_filtered is true when some answers were left out because their evidence is not displayable.

    To read the next page, send offset set to the next_offset you received. When next_offset is null, you have read the last page. limit is 1 to 100 and defaults to 50.

    See where a competitor appears and your brand does not

    citation_gaps reads answers that name a tracked competitor and omit the brand. It returns ranked third-party pages in data.third_party_sources and a domain summary. Open the exact URLs to review listings, comparison articles, reviews, forums, and news. Domains are counted once per answer.

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

    Example response, not live data. The counts and domains come from test fixtures. Other fields are placeholders.

    {
      "data": {
        "brand_id": "<uuid>",
        "report_id": "<uuid>",
        "month": "<YYYY-MM>",
        "valid_answers": 8,
        "answers_with_tracked_competitors_in_scope": 8,
        "competitor_without_brand_answers": 6,
        "gap_answers_with_displayable_citations": 2,
        "domains": [
          {
            "domain": "directory.example",
            "domain_relationship": "other_external",
            "gap_answers_citing_domain": 2
          },
          {
            "domain": "journal.brightsmiles.example",
            "domain_relationship": "registered_competitor",
            "gap_answers_citing_domain": 1
          }
        ],
        "total_domains": 2,
        "next_offset": null
      },
      "meta": {
        "request_id": "<string>",
        "as_of": "<timestamp>",
        "rights_filtered": true
      }
    }

    domain_relationship is registered_competitor when the domain matches a competitor you registered for the brand, and other_external otherwise. Domains that belong to the brand are not listed. Page with limit and offset, the same way as the inventory dataset. Pass data.report_id as the report_id query parameter on subsequent requests that use offset to keep them on the same saved analysis.

    List the pages cited when your brand is missing

    missing_brand reads answers that do not mention the brand and returns the pages they cite.

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

    The response in data includes:

    • Counts: valid_answers, brand_missing_answers, brand_missing_answers_with_displayable_citations, brand_missing_answers_with_withheld_citations, brand_missing_answers_with_unusable_citation_urls, total_pages.
    • ownership_counts and page_type_counts.
    • pages, ranked by brand_missing_answers_citing_page. Each page has page_id, url, domain, rank, ownership, ownership_basis and page_type.

    ownership is brand_owned, registered_competitor or other_external. page_type is one of comparison_guide, directory, forum, news_article, product_page, review, social, video or unknown.

    Example pages item, not live data. The URL and rank come from test fixtures. Other fields are placeholders.

    {
      "page_id": "<64-character hex string>",
      "url": "https://directory.example/a",
      "domain": "<string>",
      "rank": 1,
      "brand_missing_answers_citing_page": "<integer>",
      "ownership": "<brand_owned | registered_competitor | other_external>",
      "ownership_basis": "<string>",
      "page_type": "<string>",
      "page_type_basis": "<string>",
      "matched_domain": "<string or null>"
    }

    Read the answers behind one page

    Add page_id to read one page and the answers that cite it. data.page holds the page, data.pages is empty, and data.evidence lists the answers. Each item has observation_id, prompt_id, prompt_text, prompt_version, engine, ai_search, scheduled_at, collected_at and answer_excerpt. answer_excerpt_truncated is true when the excerpt was cut. prompt_text is null unless your key also has prompts:read. An unknown page_id returns HTTP 404.

    Page with a cursor

    Use cursor to page through this dataset. When more results exist, meta.next_cursor holds a cursor. Send it as cursor with the same brand_id and filters. When meta.next_cursor is null, you have read the last page.

    A cursor stays on the analysis revision it was issued for. It is rejected with HTTP 400 if you change the filters or use it with a different key. It is also rejected with the message “The available evidence changed; restart from the first page.” if saved evidence expired or was withheld after the cursor was issued. In that case, start again without a cursor.

    Rank third-party pages

    Set opportunities=true on missing_brand to read ranked third-party pages in data.opportunities.items. In this mode, data.pages is empty.

    curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/missing_brand" \
      -H "Authorization: Bearer $AEO_API_KEY" \
      --data-urlencode "brand_id=$BRAND_ID" \
      --data-urlencode "opportunities=true"

    Pass meta.next_cursor as cursor with the same filters and opportunities=true to read the next page. To return to the cited pages list, start without a cursor and omit opportunities or set it to false.

    Read the fix list

    Use GET /v2/recommendations with view=board and the brand ID. Items can suggest getting listed, claiming or correcting a listing, contacting a publisher, creating or updating content, fixing structured data or business details, or removing a crawler block. Items close automatically when a follow-up check finds your brand on the cited page or in a later answer, depending on the fix.

    Use the results in your product

    1. Call citations to show a client which pages AI answers cite.
    2. Call citation_gaps to show the ranked pages cited when a competitor is named and the brand is missing.
    3. Call missing_brand, then add page_id to show the answers behind a page.

    Each response sets meta.rights_filtered to true when some evidence was left out. Show counts such as brand_missing_answers_with_withheld_citations next to your totals so a reader can see what the list does not include.

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

    Plans

    These datasets are available on Analyzer (starter) and Optimizer (growth). Reads require the analytics:read scope and use zero credits. See pricing for plan details.

    Next step

    Request API access