Skip to content
Ranqo
Docs
DashboardGet started
GuidesMethodologyIntegrationsAPI
Video tutorials

Get started

  • Introduction
  • Quickstart
  • Authentication

Using the API

  • Rate limits
  • Errors
  • Pagination
  • Dates and time zones
  • Versioning

Account

  • Get the account

Brands

  • List brands
  • Get a brand

Visibility

  • Get visibility

Competitors

  • List competitors

Runs

  • List runs
  • Get a run

Prompts

  • List prompts
  • Get a prompt
  • List a prompt's answers

Site Access

  • Get site access

Page audits

  • List page audits
  • Get a page audit

Recommendations

  • List recommendations
  • Get a recommendation

Outreach

  • List outreach targets

6 sections

Competitors

List competitors

View as MarkdownOpen this page as .md
ChatGPTOpen in ChatGPTAsk about this pageClaudeOpen in ClaudeAsk about this page

Read the brands AI answers name alongside yours, ranked by visibility over a window, with each one's share of voice.

HTTP
GET https://api.ranqo.ai/v1/brands/{brand_id}/competitors

Brands the answers name, ranked by visibility, as the Competitors page ranks them: the top limit, or with watched=true every watched rival. A rival is listed when named in more than one answer, named with its website, or watched.

Path parameters#

NameTypeDescription
brand_idstringThe brand id, from GET /v1/brands.

Query parameters#

Every parameter is optional. A parameter the endpoint does not take is refused with unknown_parameter.

NameTypeDefaultDescription
periodstring7d, 30d and 90d run from midnight in tz that many days back to now; 365d runs from midnight 365 days back to the end of today. Default 30d. Not with start_date. One of 7d, 30d, 90d, 365d.
start_datestringFirst day of a custom window, in tz. Send with end_date.
end_datestringLast day of a custom window, in tz, included. The window may span at most 366 days, both dates counted.
tzstringIANA time zone for day boundaries, such as Asia/Kolkata. Default UTC.
platformsstringEngines to count: claude, chatgpt, perplexity, gemini, grok, google_aio.
categoriesstringPrompt categories to count: discovery, problem_solution, use_case, expert, comparison, brand_research.
locationsstringPrompt locations to count, as stored on the prompt.
theme_idsstringTheme ids to count; none counts prompts with no theme.
is_brandedstringCount only prompts that do, or do not, name the brand. One of true, false.
limitinteger25Rows to return, 1 to 100. Not applied with watched=true.
watchedstringtrue lists every watched rival, named or not. One of true, false.

Response#

The response body, as JSON.

FieldTypeDescription
brand_idstring
windowobjectThe answers a report counts: those from completed runs inside the window.
window.startstringRFC 3339 timestamp in UTC.
window.endstringRFC 3339 timestamp in UTC.
window.previous_startstringThe comparison window runs from here to start: the whole days before start for 7d, 30d and 90d, the same length as the window otherwise.
window.time_zonestring
window.periodstring or nullThe preset, or null for a custom window. One of 7d, 30d, 90d, 365d.
window.carried_fromstring or nullRFC 3339 timestamp in UTC. Set when the window held no completed run: the figures are the latest run before it, which completed at this time, and nothing is compared.
answer_countintegerAnswers counted, after filters.
totalintegerBrands ranked, the brand included.
youobject or nullThe brand's own row, wherever it ranks; null when no answer matches.
you.rankinteger or nullPlace by visibility, the brand included; null for a watched rival no answer named.
you.namestring
you.domainstring or nullNull when no domain could be confirmed; never guessed.
you.is_youboolean
you.is_watchedbooleanOn the brand's watchlist.
you.answer_countintegerAnswers naming it.
you.visibilityobjectPercent of answers naming it, 0-100, each engine weighted. previous is null for a watched rival no answer in the window names.
you.visibility.currentnumber or nullNull when there is nothing to measure: no matching answer, or for position and sentiment no answer naming it, or for share of voice no mention of any brand.
you.visibility.previousnumber or nullOver the comparison window; null when that window has nothing to measure or the figures are carried.
you.visibility.changenumber or nullcurrent minus previous, rounded once from the unrounded values as the dashboard shows it; null when either is null.
you.average_positionnumber or nullWhen named; lower is better.
you.sentiment_scorenumber or null0-100; null when never named.
you.share_of_voicenumber or nullIts share of the brand mentions the listed brands receive, 0-100.
you.movementstring or nullnew: absent from the comparison window and now at 5 points or more; rising: up by more than run-to-run noise. One of new, rising.
you.platformsarray of objectsVisibility on each engine that answered.
you.platforms[].platformstring
you.platforms[].visibilitynumber
dataarray of objectsEach item has the same fields as you.

Response headers#

HeaderDescription
X-Request-IdThe request id; quote it to support.
RateLimitRequests left in this window and seconds until it resets.
RateLimit-PolicyThe key's limit per window.

Example request#

curl
curl "https://api.ranqo.ai/v1/brands/BRAND_ID/competitors" \
  -H "Authorization: Bearer $RANQO_API_KEY"

Errors#

Errors are problem details (application/problem+json) with a stable code. See Errors for each one.

StatusCodes
400invalid_parameter, unknown_parameter, api_key_in_url
401missing_api_key, invalid_api_key, api_key_revoked, api_key_expired, api_key_orphaned
403plan_upgrade_required, subscription_inactive
404not_found
429rate_limited
500internal_error
503service_unavailable
Previous page: Get visibilityNext page: List runs
On this page
Ranqo
Docs
Dashboardranqo.aiPrivacyTerms
Be the Source AI Cites.
Ranqo
Docs
GuidesMethodologyIntegrationsAPI

Get started

  • Introduction
  • Quickstart
  • Authentication

Using the API

  • Rate limits
  • Errors
  • Pagination
  • Dates and time zones
  • Versioning

Account

  • Get the account

Brands

  • List brands
  • Get a brand

Visibility

  • Get visibility

Competitors

  • List competitors

Runs

  • List runs
  • Get a run

Prompts

  • List prompts
  • Get a prompt
  • List a prompt's answers

Site Access

  • Get site access

Page audits

  • List page audits
  • Get a page audit

Recommendations

  • List recommendations
  • Get a recommendation

Outreach

  • List outreach targets
Get started