Back to knowledge base
    API

    Getting Started with the AnswerRank API v1

    10 min read

    The AnswerRank API v1 gives you programmatic, read-only access to the data behind your AnswerRank projects: how often your brand shows up in AI answers, how it ranks against competitors, and which sources the AI models cite. This guide walks through every endpoint, in the order you will most likely use them.

    Introduction

    AnswerRank tracks how your brand appears in answers from AI engines such as ChatGPT, Gemini and Perplexity. The API lets you pull that data into your own dashboards, reports or scripts instead of exporting it by hand.

    Everything lives under one base URL:

    https://app.answerrank.ai/api/v1

    The data is organized as a simple hierarchy, and each level has its own endpoint:

    1. Project: a brand you track, with its competitors and aggregated analytics.

    2. Prompt: a question you ask AI engines, such as "What are the best CRM solutions?".

    3. Response: one answer an AI engine gave to a prompt, with a per-brand analysis.

    After reading this guide you will know how to authenticate, list your projects, filter results, drill down from a project to a single AI response, and handle errors.

    Authentication

    Every request needs an API token, sent as a Bearer token in the Authorization header. Requests without a valid token are rejected with a 401.

    Token format. Tokens look like {counter}\|ar\_{96_char_random_hex}, for example 1\|ar_a1b2c3d4e5f6....

    Sending the token:

    curl -H "Authorization: Bearer 1\|ar_a1b2c3..." \\ https://app.answerrank.ai/api/v1/projects

    Token scopes. A token can be limited in two ways:

    • All projects: access every project you own or collaborate on.

    - Specific project: access only one project, identified by its projectId. Use this for integrations that should never see anything else.

    Creating a token. Tokens are created in the admin application at /users/{userId}. Each token has:

    PropertyWhat it does
    NameA descriptive label so you can tell tokens apart
    Expires InNumber of days until the token expires
    Project ScopeOptional project identifier that restricts access
    StatusActive or inactive toggle, so you can switch a token off without deleting it

    Treat tokens like passwords: keep them out of source control and give each integration its own token so you can revoke one without breaking the others.

    Projects API

    Start here: the Projects API tells you which projects you can see and how each brand is performing.

    List all projects

    GET /api/v1/projects returns every project you own or collaborate on. It is not paginated.

    curl -H "Authorization: Bearer YOUR_TOKEN" \\ https://app.answerrank.ai/api/v1/projects

    A trimmed response:

    { "success": true, "projects": \[ { "identifier": "project-123", "name": "My Project", "brand": "My Brand", "brandSynonyms": \["Brand Alias"\], "domain": "example.com", "industry": "Technology", "state": "active", "configuration": { "enableSuggestion": true, "preferredCountry": "WDW" }, "accessType": "owner", "userRole": "creator" } \], "total": 5 }

    Three fields are worth knowing:

    • accessType is owner or collaborator.
    • userRole is your role in the project: creator, admin or viewer.
    • state is the project state, such as active or archived.

    The identifier is what you pass to every other endpoint.

    Get a single project

    GET /api/v1/projects/{projectIdentifier} returns the same project details plus aggregated analytics, cited sources and an AI-generated audit.

    curl -H "Authorization: Bearer YOUR_TOKEN" \\ https://app.answerrank.ai/api/v1/projects/project-123

    The response has three main blocks.

    analytics holds one entry per brand or competitor, keyed by name:

    FieldMeaning
    companyWebsiteThe company's website
    aggregatedVisibilityAverage visibility score, from 0 to 1
    aggregatedSentimentAverage sentiment, from 0 to 1 (1 is most positive)
    aggregatedRankAverage rank across all prompts; lower is better
    tagsCustom tags or metadata
    visibilityGraphTime series of visibility (ISO date to score, 0 to 1)
    rankGraphTime series of rank (ISO date to rank value)
    orderPosition used to order graphs (1 is first)
    marketShareShare of presence in AI responses, from 0 to 100

    sources lists the domains AI engines cited, keyed by domain:

    FieldMeaning
    mentionsTotal times the source was cited
    activeMentionsNumber of unique sources that actually contributed
    usedUsage percentage
    titleWebsite or source title
    modelsThe AI models that cited this source

    consolidatedAudit contains the audit's problems (what is holding your brand back in AI answers) and actions (what to do about it). Each action has a title, a description and an impact label such as Relevance, Authority, Citation strength or Visibility. It also carries createdAt and updatedAt timestamps.

    A response also includes the project's configuration object, as in the list endpoint.

    Filtering project data

    You can narrow the analytics returned by GET /projects/{projectIdentifier} by adding filters as query parameters.

    FilterWhat it doesExample
    filter\[dateFrom\]Start date, format YYYY/MM/DD?filter\[dateFrom\]=2026/03/27
    filter\[dateTo\]End date, format YYYY/MM/DD?filter\[dateTo\]=2026/04/03
    filter\[engine\]Only results from one AI engine?filter\[engine\]=GEMINI
    filter\[model\]Only results from one model?filter\[model\]=gpt-5-mini
    filter\[country\]Only results for one country?filter\[country\]=US
    filter\[status\]Project status: ACTIVE or PAUSED?filter\[status\]=active

    Filters can be combined in a single request. For example, to get US results from Gemini for one week:

    GET https://app.answerrank.ai/api/v1/projects/scandiweb-mZzF5g85?filter\[dateFrom\]=2026/03/27&filter\[dateTo\]=2026/04/03&filter\[engine\]=GEMINI&filter\[country\]=US&filter\[status\]=active

    Tip: start with a date range, then add engine, model or country one at a time so you can see which filter changes the numbers.

    Competitors API

    GET /api/v1/projects/{projectIdentifier}/competitors returns every competitor configured for a project. It is not paginated.

    curl -H "Authorization: Bearer YOUR_TOKEN" \\ https://app.answerrank.ai/api/v1/projects/project-123/competitors

    { "success": true, "competitors": \[ { "\_id": "comp_abc123", "identifier": "competitor-123", "name": "Competitor Name", "website": "https://competitor.com", "isActive": true, "createdAt": "2024-01-01T00:00:00.000Z", "updatedAt": "2024-01-15T00:00:00.000Z", "user": "user_xxx" } \], "total": 3 }

    Use this list to match the competitor names you see in the project analytics block and in each response's analysis. The isActive flag tells you whether a competitor is currently being tracked.

    Prompts API

    Prompts are the questions AnswerRank asks AI engines on your behalf. This API lets you list them and open any one in detail.

    List project prompts

    GET /api/v1/projects/{projectIdentifier}/prompts returns the project's prompts, paginated, without their responses.

    Query parameterDefaultNotes
    page1Page number
    limit20Items per page, maximum 100

    \# First page, 20 prompts curl -H "Authorization: Bearer YOUR_TOKEN" \\ "https://app.answerrank.ai/api/v1/projects/project-123/prompts?page=1&limit=20" \# Second page, 50 prompts per page curl -H "Authorization: Bearer YOUR_TOKEN" \\ "https://app.answerrank.ai/api/v1/projects/project-123/prompts?page=2&limit=50"

    A trimmed response:

    { "success": true, "prompts": \[ { "identifier": "prompt-123", "project": "project-123", "prompt": "What are the best CRM solutions?", "engine": "ChatGpt", "model": "gpt-4", "country": "US", "status": "ACTIVE", "type": "Manual", "date": "2024-01-15T00:00:00.000Z", "tags": \["CRM", "Software"\], "industries": \["Technology", "SaaS"\] } \], "pagination": { "page": 1, "limit": 20, "total": 150, "totalPages": 8, "hasNext": true, "hasPrev": false } }

    What the main fields mean:

    • engine: the AI engine used, such as ChatGPT or Perplexity.
    • model: the specific model version, such as gpt-4.

    - country: the target country code, such as US or UK. WDW means worldwide.

    • status: ACTIVE or PAUSED.
    • type: Manual (you wrote it) or Suggested (AnswerRank proposed it).

    Use pagination.hasNext to know when to stop looping through pages.

    Filtering prompts

    The list endpoint accepts these filters as query parameters:

    FilterWhat it doesExample
    filter\[identifier\]A specific prompt identifier?filter\[identifier\]=ko9YFvv1
    filter\[prompt\]Match on the prompt text?filter\[prompt\]="What is the weather today?"
    filter\[engine\]AI engine?filter\[engine\]="GEMINI"
    filter\[model\]AI model?filter\[model\]="gpt-5-mini"
    filter\[country\]Country code?filter\[country\]=US
    filter\[status\]ACTIVE or PAUSED?filter\[status\]=active
    filter\[type\]Prompt type?filter\[type\]=text

    Filters combine in one request:

    GET https://app.answerrank.ai/api/v1/projects/scandiweb-mZzF5g85/prompts?filter\[identifier\]=unique_id_123&filter\[prompt\]=What%20is%20the%20weather%20today?&filter\[engine\]=GEMINI&filter\[model\]=gpt-5-mini&filter\[country\]=US&filter\[status\]=active&filter\[type\]=text

    Remember to URL-encode spaces and special characters in prompt text.

    Get a single prompt

    GET /api/v1/projects/{projectIdentifier}/prompts/{promptIdentifier} returns one prompt together with its responses. Response analytics are left out; fetch those from the Responses API.

    curl -H "Authorization: Bearer YOUR_TOKEN" \\ https://app.answerrank.ai/api/v1/projects/project-123/prompts/prompt-123

    The prompt fields match the list above, plus a responses array. Each item has an identifier, a date, the response text and its sources (URL, title and domain).

    Responses API

    A response is one answer an AI engine gave to a prompt. This is the most detailed level of data in the API.

    List prompt responses

    GET /api/v1/projects/{projectIdentifier}/prompts/{promptIdentifier}/responses returns a prompt's responses, paginated, without analytics. It uses the same page (default 1) and limit (default 20, maximum 100) parameters as the Prompts API.

    curl -H "Authorization: Bearer YOUR_TOKEN" \\ "https://app.answerrank.ai/api/v1/projects/project-123/prompts/prompt-123/responses?page=1&limit=20"

    Each item contains an identifier, a date, the response text and its sources. The pagination block works exactly as it does for prompts.

    Get a single response

    GET /api/v1/projects/{projectIdentifier}/prompts/{promptIdentifier}/responses/{responseId} returns one response with its full analytics.

    curl -H "Authorization: Bearer YOUR_TOKEN" \\ https://app.answerrank.ai/api/v1/projects/project-123/prompts/prompt-123/responses/response-456

    The analysis object has one entry per brand or competitor, keyed by lowercase name:

    FieldMeaning
    projectVisibilitytrue if the brand is mentioned in the response
    heatProminence score; higher means more prominent
    highlights\[start, end\] character positions of each mention in the response text
    numberOfMentionsHow many times the brand is mentioned
    rankPosition in this response (1 is best); only present if mentioned
    synonymsName variations and domains detected for the brand
    sentimentScoreSentiment from 0 to 1 (1 is most positive)
    companyWebsiteThe brand's official website domain

    A brand that was not mentioned still appears, with projectVisibility: false, a heat of 0 and no rank.

    The sources array lists every page the AI cited, each with its url, title and root domain.

    The highlights positions are handy if you want to mark the brand mentions in the original text, for example in a report or dashboard.

    Error handling

    Every error comes back in the same JSON shape, with an HTTP status code that tells you what went wrong:

    { "error": "Error message describing what went wrong" }

    StatusMeaningCommon causes
    200SuccessRequest completed successfully
    400Bad RequestInvalid parameters or malformed request
    401UnauthorizedMissing, invalid or expired API token
    403ForbiddenToken has no access to the requested resource
    404Not FoundProject, prompt or response does not exist
    500Internal Server ErrorSomething failed on the server side

    The errors you are most likely to hit:

    1. Missing Authorization header (401): "Missing or invalid Authorization header". Add the Authorization: Bearer ... header.

    2. Invalid token (401): "Invalid or expired token". Check for typos, or create a new token if yours has expired.

    3. Token not authorized for project (403): "Token is not authorized for this project". Your token is scoped to one project and you requested a different one.

    4. No project access (403): "You do not have access to this project". You are neither the project's creator nor a listed collaborator.

    5. Resource not found (404): "Project not found", "Prompt not found" or "Response not found". Double-check the identifier in your URL.

    Endpoint quick reference

    All endpoints use GET and the base URL https://app.answerrank.ai/api/v1.

    EndpointDescriptionPaginated
    /projectsList all projectsNo
    /projects/{projectId}Get a single project with analyticsNo
    /projects/{projectId}/competitorsGet project competitorsNo
    /projects/{projectId}/promptsList project promptsYes
    /projects/{projectId}/prompts/{promptId}Get a single prompt with responsesNo
    /projects/{projectId}/prompts/{promptId}/responsesList prompt responsesYes
    /projects/{projectId}/prompts/{promptId}/responses/{responseId}Get a single response with analyticsNo

    Tips for a smooth integration

    - Drill down in order. Find the project identifier first, then its prompts, then a prompt's responses. Each identifier comes from the level above.

    - Use project-scoped tokens for anything shared or public-facing, so a leaked token only exposes one project.

    - Page through large lists. Use limit=100 to cut the number of requests, and stop when hasNext is false.

    - Filter early. Date, engine, model and country filters keep responses small and your numbers comparable.

    - Check the casing. Engine names appear in several forms in the examples (ChatGPT, GEMINI), so confirm the exact values against your own data before filtering.

    - Read the scores correctly. Visibility and sentiment run from 0 to 1, rank is better when lower, and market share runs from 0 to 100.

    See how your brand appears in AI answers

    AnswerRank monitors your visibility across ChatGPT, Gemini, Perplexity and Claude — and builds the content that earns it.