Get prompt details
Get the list of monitoring prompts attached to a monitor. Each prompt entry includes its id, text, tags, creation and update timestamps, its metrics for the requested date range and its Google AI Overview information. With cited_url or cited_domain the list holds only the prompts whose AI answers cited that URL or domain on the end date of the range (dateRange.to); each entry is the same as in the unfiltered list.
Authorization
ApiKeyAuth API token issued for your Mangools account, sent as an API key in the x-access-token HTTP header. This is NOT a standard RFC 6750 Authorization: Bearer <token> header. Auto-generated clients should be configured to send the token in x-access-token accordingly.
In: header
Path Parameters
Monitor ID
Query Parameters
Comma-separated model IDs, digits only (HTTP 422 otherwise, also for a repeated models). Leave it out, or pass 0 or a blank value, for all models.
Start date of the range, YYYY-MM-DD. Defaults to 30 days before today (UTC); a blank value is the same as leaving it out. A date that is not a check day resolves to the latest check on or before it, and a date before the monitor's first check resolves to the first check. dateRange in the response shows the dates actually used; the check days are listed in availableDates of GET /aiwatcher/monitor/{id}.
dateEnd date of the range, YYYY-MM-DD. Defaults to today (UTC); a blank value is the same as leaving it out. A date that is not a check day resolves to the latest check on or before it. When no check is on or before it, for example before the monitor's first check, both dates stay as requested and every metric is null. dateRange in the response shows the dates actually used; the check days are listed in availableDates of GET /aiwatcher/monitor/{id}.
dateOnly the prompts behind this URL's row of GET /aiwatcher/monitor/{id}/citations: prompts with a top citation of exactly this stored URL on the end date of the range, counting the models in models that have citations. Another spelling of the same page (www., a trailing slash, parameters, a fragment) is another row and matches nothing here. While a first run is partial, its unfinished model is left out, as in the citations. Cannot be combined with cited_domain (HTTP 422).
1 <= length <= 2048Only the prompts behind this domain's row of GET /aiwatcher/monitor/{id}/citations: prompts with a top citation from this domain on the end date of the range, counting a model in models only while the domain is among the domains that model keeps: its 30 most cited with the own domain always among them, and below them every competitor tracked on that date. Case and www. are ignored; a subdomain is a different domain (docs.example.com is not example.com). Every domain the citations response lists is accepted. While a first run is partial, its unfinished model is left out. Cannot be combined with cited_url (HTTP 422).
1 <= length <= 253Response Body
application/json
application/json
application/json
curl -X GET "https://api.mangools.com/v3/aiwatcher/monitor/string/prompts"{
"dateRange": {
"from": "string",
"to": "string"
},
"filters": {
"models": [
0
]
},
"prompts": [
{
"prompt": {
"_id": "string",
"text": "string",
"tag_ids": [
"string"
],
"created_at": 0,
"updated_at": 0
},
"metrics": {
"score": {
"value": 0,
"change": 0
},
"visibility": {
"value": 0,
"change": 0
},
"position": {
"value": 0,
"change": 0
},
"citationsCount": {
"value": 0,
"change": 0
},
"citationRank": {
"value": 0,
"change": 0
}
},
"aio": {
"hasAio": true
}
}
]
}{
"error": {
"type": "AuthError",
"message": "Invalid API Key"
}
}{
"error": {
"type": "ValidationError",
"message": "Your request is invalid",
"errors": [
"\"kw\" is required"
]
}
}