Results
Read the JSON of a finished task: answer text, cited sources, the search queries the engine ran, and brand mentions, rank and share of voice.
data.result is set when a task completes. It has the same shape for every engine; fields an engine does not show are left out. The citations are in sources, and analysis holds the brand mentions, rank and share of voice.
Example
{
"engine": "PERPLEXITY",
"text": "For agencies, the most recommended tools are ...",
"markdown": "For agencies, the most recommended tools are ...",
"sources": [
{ "position": 1, "url": "https://example.com/review", "domain": "example.com",
"title": "Review", "cited": true }
],
"searchQueries": ["project management tools agencies"],
"model": "default",
"analysis": {
"status": "ok",
"brands": [
{ "name": "Acme", "role": "target", "mentioned": true, "mentions": 2,
"firstPosition": 118, "rank": 1, "cited": true, "citedUrls": ["https://acme.com/"] }
]
},
"location": { "country": "US", "locale": "en-US", "timezone": "America/New_York" },
"durationMs": 14210,
"meta": {}
}Fields
| Field | Type | Description |
|---|---|---|
engine | string | Canonical task type. |
text | string | Plain answer text. |
markdown | string? | The answer with its formatting kept. |
sources | Source[] | position, url, domain, title?, snippet?, cited (false = only in the source list), citationNumber?. |
searchQueries | string[]? | Queries the engine ran (its query fan-out), when it shows them. |
relatedQuestions | string[]? | Follow-up questions the engine suggests, when it shows them. |
model | string? | Model name, when the engine exposes it. |
analysis | Analysis? | Set when the payload has a brand or include.analysis. Below. |
location | object | country, locale, timezone and, when they apply, state?, city?, uule?, lat?, lng?, googleLocation?, approximate?. |
durationMs | integer | Time spent running the engine on the attempt that answered. |
meta | object | localization? (whether the answer is about the requested country), countryHint? (a location hint was added to the prompt). |
The analysis
analysis.brands has one entry for your brand and one for each competitor you sent, in your order.
| Field | Type | Description |
|---|---|---|
name | string | The brand. |
role | string | target (your brand) or competitor. |
mentioned | boolean | Whether the answer names it. |
mentions | integer | How many times. |
firstPosition | integer? | Character offset of the first mention in text. |
rank | integer? | Order of first mention among every brand the answer names; 1 is first. Null when not mentioned. |
cited | boolean | Whether a source is on one of the brand's domains. |
citedUrls | string[] | Those sources. |
shareOfVoice | number? | 100 times its mentions over the mentions of every brand named. |
recommended | boolean? | Whether the answer lists or recommends it. |
sentiment | string? | positive, neutral or negative, when the full analysis ran. |
The analysis also has brandsNamed (every brand the answer names, in order), sources (each source with its kind: owned, competitor, ugc, news, marketplace, review, reference, other), citationKinds, method and llm.
A failed task
A task that fails has status FAILED, result null and an error object with a code. It is refunded. The codes are in Errors.
Last updated