Skip to content

    Analytics and attribution

    Measure visibility

    Read mention rate, rank, share of voice, sentiment and owned citation rate for the selected engines, markets and dates.

    GET /v2/analytics/{dataset}

    • Path dataset is visibility.

    Authentication and access

    Authentication
    Bearer API key
    Scopes
    analytics:read
    Roles
    approver, editor, owner, publisher, service, viewer
    Plans
    Optimizer, Analyzer
    Credits
    No credit charge.

    Parameters

    Request parameters
    NameWhereTypeRequiredDescription
    datasetpath"visibility"Yes
    brand_idquerystring (uuid)Yesbrand_id
    start_atquerystring (date-time)YesInclusive UTC timestamp.
    end_atquerystring (date-time)YesExclusive UTC timestamp; after start_at. Maximum window per plan/history and 366 days per synchronous query.
    category_idquerystring | nullNocategory_id
    platformquery"chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal"Noplatform
    modequery"ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search"Nomode
    countryquerystringNocountry
    languagequerystringNolanguage
    location_idquerystring (uuid)Nolocation_id
    cohort_versionquerystring | nullNocohort_version
    metric_versionquerystring | nullNometric_version
    group_byqueryarray of "date" | "source" | "country" | "language" | "location" | "currency" | "city" | "region"Nogroup_by
    cursorquerystringNocursor
    limitqueryintegerNolimit
    providerquerystring | nullNoFilter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h.
    cityquerystring | nullNocity
    devicequery"desktop" | "mobile" | "unknown"Nodevice
    search_activityquery"observed" | "not_observed" | "unknown"NoFilter actual evidenced web-search state independently of requested mode. Omit for all states; not_observed requires reliable no-search evidence.

    Request body

    Send this request without a body.

    Request examples

    Set AEO_API_BASE_URL to https://api.aeoapi.dev and AEO_API_KEY to your server-side API key. Set the other environment variables to the values for your request.

    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=$START_AT" \
      --data-urlencode "end_at=$END_AT"
    from os import environ
    from aeo_sdk import AeoClient
    
    with AeoClient(environ["AEO_API_KEY"], base_url=environ["AEO_API_BASE_URL"]) as client:
        response = client.v2_get_analytics_dataset(
            dataset="visibility",
            brand_id=environ["BRAND_ID"],
            start_at=environ["START_AT"],
            end_at=environ["END_AT"],
        )
        print(response.body)
    import { AeoClient } from "@aeoapi/aeo-sdk";
    
    const client = new AeoClient(process.env.AEO_API_KEY!, {
      baseUrl: process.env.AEO_API_BASE_URL!,
    });
    const response = await client.v2GetAnalyticsDataset(
      "visibility",
      {
        brand_id: process.env.BRAND_ID!,
        start_at: process.env.START_AT!,
        end_at: process.env.END_AT!,
      },
    );
    console.log(response.body);

    Responses

    HTTP 200

    Read comparable visibility metrics result.

    HTTP 200 headers
    NameTypeRequiredDescription
    X-RateLimit-LimitintegerNoRequests in rate window.
    X-RateLimit-RemainingintegerNoRemaining request tokens.
    X-RateLimit-ResetintegerNoUTC Unix seconds when window resets.
    X-Request-Idstring (uuid)NoTrace identifier.
    X-Usage-UnitsintegerNoCU charged by this response; GET and account/usage always zero.

    application/json

    {
      "data": [
        {
          "brand_id": "00000000-0000-4000-8000-000000000001",
          "city": null,
          "comparison_set_version": "competitors-r1",
          "confidence_interval": null,
          "country": "US",
          "coverage": {
            "expected_prompts": 30,
            "failed_attempts": 0,
            "low_sample": false,
            "missing_weight": 0,
            "observed_weight": 1,
            "status": "ok",
            "unique_prompts": 30,
            "valid_answers": 30
          },
          "device": "desktop",
          "language": "en",
          "mean_rank": 2,
          "mention_rate": 0.6,
          "mode": "api_normal",
          "owned_citation_rate": 0.3,
          "platform": "chatgpt",
          "provider": "collector_a",
          "recommendation_rate": 0.4,
          "sentiment_score": 0.5,
          "share_of_voice": 0.25,
          "visibility_score": 60
        }
      ],
      "meta": {
        "as_of": "2026-11-06T00:00:00Z",
        "collected_at": null,
        "next_cursor": null,
        "next_refresh_at": null,
        "request_id": "00000000-0000-4000-8000-000000000001",
        "rights_filtered": false,
        "schema_version": "1.0",
        "stale": false,
        "warnings": []
      }
    }
    HTTP 200 response fields 1
    NameTypeRequiredDescription
    dataarray of objectYesThe requested result. See the fields below for its contents.
    data[].brand_idstring (uuid)Yes
    data[].citystring | null | nullYes
    data[].comparison_set_versionstring | nullYes
    data[].confidence_intervalobject | nullYes
    data[].confidence_interval.clustersintegerConditional
    data[].confidence_interval.level0.95Conditional
    data[].confidence_interval.lowernumberConditional
    data[].confidence_interval.method"prompt_cluster_bootstrap"Conditional
    data[].confidence_interval.uppernumberConditional
    data[].countrystringYes
    data[].coverageobjectYes
    data[].coverage.effective_promptsnumberNo
    data[].coverage.expected_promptsintegerYes
    data[].coverage.failed_attemptsintegerYes
    data[].coverage.low_samplebooleanYes
    data[].coverage.missing_weightnumberYes
    data[].coverage.observed_weightnumberYes
    data[].coverage.ranked_answersintegerNo
    data[].coverage.repeat_countintegerNo
    data[].coverage.status"ok" | "partial" | "insufficient_data"Yes
    data[].coverage.unique_promptsintegerYes
    data[].coverage.valid_answersintegerYes
    data[].datestring (date) | nullNo
    data[].device"desktop" | "mobile" | "unknown"Yes
    data[].languagestringYes
    data[].location_idstring (uuid) | nullNo
    data[].marketobjectNo
    data[].market.citystring | null | nullNo
    data[].market.countrystringConditional
    data[].market.languagestringConditional
    data[].market.latitudenumber | nullNo
    data[].market.location_idstring (uuid)No
    data[].market.longitudenumber | nullNo
    data[].market.postal_codestring | nullNo
    data[].market.regionstring | null | nullNo
    data[].mean_ranknumber | nullYes
    data[].median_ranknumber | nullNo
    data[].mention_ratenumber | nullYes
    data[].mode"ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search"Yes
    data[].owned_citation_ratenumber | nullYes
    data[].platform"chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal"Yes
    data[].prompt_idstring (uuid) | nullNo
    data[].providerstring | nullYes
    data[].recommendation_ratenumber | nullYes
    data[].recommendation_share_of_voicenumber | nullNo
    data[].search_activity"observed" | "not_observed" | "unknown" | "all"NoGrouping across observed states is explicit as all; unknown never relabeled not_observed.
    data[].sentiment_distributionobjectNo
    data[].sentiment_distribution.negativenumber | nullConditional
    data[].sentiment_distribution.neutralnumber | nullConditional
    data[].sentiment_distribution.positivenumber | nullConditional
    data[].sentiment_distribution.uncertainnumber | nullConditional
    data[].sentiment_scorenumber | nullYes
    data[].share_of_voicenumber | nullYes
    data[].visibility_scorenumber | nullYes
    metaobjectYesInformation about this response, including any warnings or pagination details.
    meta.as_ofstring (date-time)YesThe point in time that the response represents.
    meta.cohort_versionstring | nullNoIdentifies the version of the group used to calculate the results.
    meta.collected_atstring (date-time) | nullYesWhen the data was collected, if available.
    meta.metric_versionstring | nullNoThe version of the metric definition used for these results.
    meta.next_cursorstring | nullYesWhen present, pass this value as cursor to request the next page with the same filters.
    meta.next_refresh_atstring (date-time) | nullYes
    meta.request_idstring (uuid)YesKeep this ID when reporting a problem with the request.
    meta.restricted_fieldsarray of stringNoFields that your current access does not allow the API to return.
    meta.rights_filteredbooleanYesIndicates whether access rights affected the returned data.
    meta.schema_version"1.0"YesThe version of the response format.
    meta.stalebooleanYes
    meta.warningsarray of stringYesRead these notes for limitations that affect the results.

    Errors

    Read code and message in the error response. Keep request_id when you contact support.

    Analytics and attribution reference