Skip to content

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.

View as Markdown

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

JSON
{
  "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

FieldTypeDescription
enginestringCanonical task type.
textstringPlain answer text.
markdownstring?The answer with its formatting kept.
sourcesSource[]position, url, domain, title?, snippet?, cited (false = only in the source list), citationNumber?.
searchQueriesstring[]?Queries the engine ran (its query fan-out), when it shows them.
relatedQuestionsstring[]?Follow-up questions the engine suggests, when it shows them.
modelstring?Model name, when the engine exposes it.
analysisAnalysis?Set when the payload has a brand or include.analysis. Below.
locationobjectcountry, locale, timezone and, when they apply, state?, city?, uule?, lat?, lng?, googleLocation?, approximate?.
durationMsintegerTime spent running the engine on the attempt that answered.
metaobjectlocalization? (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.

FieldTypeDescription
namestringThe brand.
rolestringtarget (your brand) or competitor.
mentionedbooleanWhether the answer names it.
mentionsintegerHow many times.
firstPositioninteger?Character offset of the first mention in text.
rankinteger?Order of first mention among every brand the answer names; 1 is first. Null when not mentioned.
citedbooleanWhether a source is on one of the brand's domains.
citedUrlsstring[]Those sources.
shareOfVoicenumber?100 times its mentions over the mentions of every brand named.
recommendedboolean?Whether the answer lists or recommends it.
sentimentstring?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