curl --request GET \
--url https://server.promptwatch.com/api/v2/prompt-visibility-time-series \
--header 'X-API-Key: <api-key>'import requests
url = "https://server.promptwatch.com/api/v2/prompt-visibility-time-series"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://server.promptwatch.com/api/v2/prompt-visibility-time-series', 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://server.promptwatch.com/api/v2/prompt-visibility-time-series",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://server.promptwatch.com/api/v2/prompt-visibility-time-series"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://server.promptwatch.com/api/v2/prompt-visibility-time-series")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.promptwatch.com/api/v2/prompt-visibility-time-series")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"timeSeries": [
{
"date": "<string>",
"prompt": {
"id": "<string>",
"prompt": "<string>",
"type": "ORGANIC"
},
"averageVisibility": 123,
"totalResponses": 123,
"mentionCount": 123
}
],
"prompts": [
{
"prompt": {
"id": "<string>",
"prompt": "<string>",
"type": "ORGANIC",
"isActive": true
},
"averageVisibility": 123,
"daysWithMentions": 123,
"totalDays": 123,
"totalResponses": 123
}
],
"totalPrompts": 123
}{
"error": "Bad Request",
"code": "DATE_RANGE_TOO_LARGE",
"message": "Date range cannot exceed 90 days"
}{
"error": "Unauthorized",
"message": "Missing or invalid X-API-Key header."
}{
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}Prompt Visibility Time Series
Get per-prompt visibility time series data (the chart lines for each prompt)
curl --request GET \
--url https://server.promptwatch.com/api/v2/prompt-visibility-time-series \
--header 'X-API-Key: <api-key>'import requests
url = "https://server.promptwatch.com/api/v2/prompt-visibility-time-series"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://server.promptwatch.com/api/v2/prompt-visibility-time-series', 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://server.promptwatch.com/api/v2/prompt-visibility-time-series",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://server.promptwatch.com/api/v2/prompt-visibility-time-series"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://server.promptwatch.com/api/v2/prompt-visibility-time-series")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.promptwatch.com/api/v2/prompt-visibility-time-series")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"timeSeries": [
{
"date": "<string>",
"prompt": {
"id": "<string>",
"prompt": "<string>",
"type": "ORGANIC"
},
"averageVisibility": 123,
"totalResponses": 123,
"mentionCount": 123
}
],
"prompts": [
{
"prompt": {
"id": "<string>",
"prompt": "<string>",
"type": "ORGANIC",
"isActive": true
},
"averageVisibility": 123,
"daysWithMentions": 123,
"totalDays": 123,
"totalResponses": 123
}
],
"totalPrompts": 123
}{
"error": "Bad Request",
"code": "DATE_RANGE_TOO_LARGE",
"message": "Date range cannot exceed 90 days"
}{
"error": "Unauthorized",
"message": "Missing or invalid X-API-Key header."
}{
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}Authorizations
API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.
Query Parameters
Start date for visibility data (YYYY-MM-DD). Max range 90 days.
End date for visibility data (YYYY-MM-DD). Max range 90 days.
Time grouping for the data (day, week, or month)
day, week, month Filter by LLM models. Repeat for multiple: models=x&models=y
Filter by specific LLM monitor ID
Filter by prompt types. Repeat for multiple: types=x&types=y
ORGANIC, BRAND_SPECIFIC, COMPETITOR_COMPARISON Filter by prompt tag IDs. Repeat for multiple: tagIds=x&tagIds=y
Filter by prompt topic IDs. Repeat for multiple: topicIds=x&topicIds=y
Direction to rank prompts by average visibility
asc, desc Number of top-ranked prompts to return (omit for all prompts)
x >= 1Number of top-ranked prompts to skip before applying limit
x >= 0Response
Default Response
Per-prompt visibility lines, one point per (prompt, bucket)
Show child attributes
Show child attributes
Per-prompt summary across the full range, ranked by average visibility
Show child attributes
Show child attributes
Total number of prompts matching the filters (ignores limit/offset), for pagination