Skip to main content
GET
/
api
/
v1
/
brands
/
{brandId}
/
prompts
/
{promptId}
/
answers
Prompt Answers
curl --request GET \
  --url https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers

Documentation Index

Fetch the complete documentation index at: https://docs.qwairy.co/llms.txt

Use this file to discover all available pages before exploring further.

Retrieve all AI-generated responses for a specific prompt, including detected brand mentions and cited sources.

Path Parameters

brandId
string
required
The unique identifier of the brand
promptId
string
required
The unique identifier of the prompt

Query Parameters

provider
string
Filter by AI provider. Supports comma-separated multi-select (e.g., chatgpt,claude).

Example Request

curl -X GET "https://www.qwairy.co/api/v1/brands/cm1234567890abcdef/prompts/q1/answers" \
  -H "Authorization: Bearer qw-api-your-token-here"

Example Response

{
  "success": true,
  "prompt": {
    "id": "q1",
    "text": "What are the best products in this category?"
  },
  "total": 2,
  "answers": [
    {
      "id": "ans1",
      "provider": "ChatGPT",
      "model": "GPT-4o",
      "text": "Based on recent reviews and comparisons...",
      "hasSelfMention": true,
      "selfMentionPosition": 3,
      "hasSelfSource": false,
      "competitorsMentioned": ["My Brand", "Competitor A", "Competitor B"],
      "sourcesCited": ["industry-news.com", "expert-reviews.com"],
      "sentiment": 82,
      "createdAt": "2024-12-19T10:00:00.000Z"
    },
    {
      "id": "ans2",
      "provider": "Perplexity",
      "model": "Sonar Large",
      "text": "According to expert reviews and user feedback...",
      "hasSelfMention": true,
      "selfMentionPosition": 2,
      "hasSelfSource": true,
      "competitorsMentioned": ["My Brand", "Competitor C", "Competitor D"],
      "sourcesCited": ["mybrand.com", "consumer-reports.com"],
      "sentiment": 78,
      "createdAt": "2024-12-19T10:05:00.000Z"
    }
  ]
}