Exporter les réponses notées
Exportez les réponses notées en JSON ou CSV, des plus récentes aux plus anciennes.
curl --request GET \
--url https://api.querying.ai/v1/monitors/{id}/results \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.querying.ai/v1/monitors/{id}/results"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.querying.ai/v1/monitors/{id}/results', 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.querying.ai/v1/monitors/{id}/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.querying.ai/v1/monitors/{id}/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.querying.ai/v1/monitors/{id}/results")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.querying.ai/v1/monitors/{id}/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"monitor": {
"id": "<string>",
"name": "<string>"
},
"since": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z",
"filters": {
"engine": "<string>",
"prompt": "<string>",
"mentioned": true,
"cited": true,
"competitor": "<string>"
},
"truncated": true,
"nextCursor": "<string>",
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskId": "<string>",
"engine": "CHATGPT",
"prompt": "<string>",
"mentioned": true,
"cited": true,
"position": 123,
"ranAt": "<string>",
"competitorHits": [
"<string>"
],
"answerText": "<string>",
"sources": [
{
"url": "<string>",
"label": "<string>",
"position": 123
}
],
"scoringContext": {
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"competitors": [
{
"name": "<string>",
"aliases": [
"<string>"
],
"source": "user",
"domain": "<string>"
}
],
"country": "<string>",
"version": "<string>",
"scoredAt": "2023-11-07T05:31:56Z",
"answerPresent": true,
"evidenceTruncated": true
}
}
]
}
}Autorisations
Your API key, sent as Authorization: Bearer <key>.
Paramètres de chemin
Paramètres de requête
ISO instant or legacy YYYY-MM-DD (00:00:00Z). Default: 30 days ago. Inclusive.
ISO instant or legacy YYYY-MM-DD (00:00:00Z). Default: now. Exclusive; must be after since.
Exact prompt.
2000true keeps answers naming the brand; false keeps only the misses (the competitive-gap rows).
true keeps answers citing a registered domain.
Keeps only answers whose stored competitorHits contain exactly this name (case-sensitive). It is matched against the stored hits, not checked against the monitor's current competitors, so a competitor removed since still filters its old answers and a misspelled name returns no rows rather than a 400.
80Add answerText, sources and scoringContext to every row, and lower the page-size bound to 100.
Default 10000 (max 10000) without evidence; default and maximum 100 when includeEvidence is true.
1 <= x <= 10000json, csv The previous response's nextCursor (JSON) or x-next-cursor header (CSV), unchanged.
curl --request GET \
--url https://api.querying.ai/v1/monitors/{id}/results \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.querying.ai/v1/monitors/{id}/results"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.querying.ai/v1/monitors/{id}/results', 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.querying.ai/v1/monitors/{id}/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.querying.ai/v1/monitors/{id}/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.querying.ai/v1/monitors/{id}/results")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.querying.ai/v1/monitors/{id}/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"monitor": {
"id": "<string>",
"name": "<string>"
},
"since": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z",
"filters": {
"engine": "<string>",
"prompt": "<string>",
"mentioned": true,
"cited": true,
"competitor": "<string>"
},
"truncated": true,
"nextCursor": "<string>",
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskId": "<string>",
"engine": "CHATGPT",
"prompt": "<string>",
"mentioned": true,
"cited": true,
"position": 123,
"ranAt": "<string>",
"competitorHits": [
"<string>"
],
"answerText": "<string>",
"sources": [
{
"url": "<string>",
"label": "<string>",
"position": 123
}
],
"scoringContext": {
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"competitors": [
{
"name": "<string>",
"aliases": [
"<string>"
],
"source": "user",
"domain": "<string>"
}
],
"country": "<string>",
"version": "<string>",
"scoredAt": "2023-11-07T05:31:56Z",
"answerPresent": true,
"evidenceTruncated": true
}
}
]
}
}