GET /sites/competitors

Returns competitor visibility analysis showing how often competitors appear across questions.

Request

Endpoint

https://knowatoa.com/api/v2/sites/competitors

Query Parameters

Parameter Type Required Description
site_id string Yes Site prefix ID (e.g., tpc_abc123)
api_key string Yes Your API authentication key
flat string No Set to "true" for flat JSON format
format string No Set to "csv" for CSV export
start_date string No Period start (YYYY-MM-DD). With end_date, returns period metrics instead of the latest refresh. See Period Comparison
end_date string No Period end (YYYY-MM-DD), inclusive
compare_start string No Comparison period start. Defaults to the equal-length period before start_date
compare_end string No Comparison period end, inclusive
branded boolean No true for brand-name questions, false for non-branded. Omit for all. Period mode only.

Response

Nested JSON Format

{
  "site": {
    "id": "tpc_abc123",
    "name": "Example Site",
    "external_id": "example.com"
  },
  "refresh_date": "2025-01-15",
  "competitors": [
    {
      "competitor_name": "Competitor A",
      "mentions": 45,
      "questions": 30,
      "percentage": "67%",
      "share_of_voice": 50
    }
  ]
}

Response Fields

Field Type Description
competitor_name string Name of competitor
mentions integer Total number of mentions
questions integer Number of unique questions mentioned in
percentage string Visibility: mentions divided by complete answers in that refresh, as a whole-number percent with a % sign, like “67%”. Latest-refresh responses only.
share_of_voice integer or null Brand mentions divided by all mentions of your brand and its tracked competitors in that refresh. An integer, like 50. Null when none of those brands were mentioned.

Period Comparison

Returns period, compare_to, and competitors: the site (is_target: true) and each competitor with site_id, name, url, and metrics: mention_rate, mentions, samples, average_position, sentiment_score, sentiment_evaluated, positive_count, neutral_count, negative_count. Mention rate uses the same denominator for every brand (completed AI responses for the site’s questions).

Period mode does not include a percentage key. Each brand includes share_of_voice for the current period, using your brand plus all tracked competitors in that period: an integer, like 50, or null when none of those brands were mentioned. It is not a current/previous comparison object.

Notes

  • Returns empty array if no competitors configured
  • Competitors sorted by mention count (descending)
  • percentage is a string, like “67%”, not a one-decimal float. It appears in latest-refresh responses, not in period mode.
  • share_of_voice is an integer, like 50, or null when none of those brands were mentioned. CSV exports use a Share of Voice column, with a percent sign or a blank cell. The number uses your brand plus all tracked competitors for that refresh, so it can differ from the filtered table.