Prompt Answers
curl --request GET \
--url https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answersimport requests
url = "https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyPrompts
Prompt Answers
Retrieve all AI-generated responses for a specific prompt
GET
/
api
/
v1
/
brands
/
{brandId}
/
prompts
/
{promptId}
/
answers
Prompt Answers
curl --request GET \
--url https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answersimport requests
url = "https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/brands/{brandId}/prompts/{promptId}/answers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyRetrieve all AI-generated responses for a specific prompt, including detected brand mentions and cited sources.
Path Parameters
The unique identifier of the brand
The unique identifier of the prompt
Query Parameters
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"
}
]
}
⌘I

