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

Prompts

List a prompt's answers

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

List the AI answers a prompt got over a window, newest first, with the brands they named and the sources they cited.

HTTP
GET https://api.ranqo.ai/v1/brands/{brand_id}/prompts/{prompt_id}/answers

The answers a window counts for this prompt, newest first: those from its completed runs, or the latest run before it when it held none. Failed and filled-in answers are left out, as in the reports, so the answers of every prompt add up to the answer_count of /visibility over the same window and engines.

Path parameters#

NameTypeDescription
brand_idstringThe brand id, from GET /v1/brands.
prompt_idstringThe prompt id, from GET /v1/brands/{brand_id}/prompts.

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 list: claude, chatgpt, perplexity, gemini, grok, google_aio.
limitinteger20Items per page, 1 to 50.
cursorstringThe next_cursor of the previous page.

Response#

The response body, as JSON.

FieldTypeDescription
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.
dataarray of objects
data[].idstring
data[].prompt_idstring
data[].run_idstring
data[].platformstring
data[].created_atstringRFC 3339 timestamp in UTC.
data[].textstringThe answer as the engine returned it.
data[].text_markdownstring or nullThe answer reformatted as markdown, when it was.
data[].brand_namedboolean
data[].positioninteger or nullWhere the brand was named, 1 = first; null when not named.
data[].sentimentstring or nullHow the answer spoke of the brand; null when not named. One of positive, neutral, negative, mixed.
data[].competitorsarray of objects
data[].competitors[].namestring
data[].competitors[].positioninteger or null
data[].competitors[].sentimentstring or nullOne of positive, neutral, negative, mixed.
data[].competitors[].domainstring or nullNull when no domain could be confirmed; never guessed.
data[].sourcesarray of objects
data[].sources[].urlstring
data[].sources[].domainstring
data[].sources[].titlestring or null
has_morebooleanWhether another page follows.
next_cursorstring or nullPass as cursor for the next page; null on the last page.

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/prompts/PROMPT_ID/answers" \
  -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, invalid_cursor, 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 a promptNext page: Get site access
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