Extract Query Results

Runs a content item and extracts the raw query result data into the specified format (CSV, JSON, XML).

Method

/API2/query/extractQueryResult

  • API Section: /API2/query
  • API Version: 2.0
  • From Release: 2018.5
  • Usage: REST API only via POST actions.
  • Usage by:
    • Enterprise Admin
    • Domain Admin
    • Pro
    • Analyst
    • Viewer
    • Basic

Method Signature

Input Parameters

Name

data

Object Type

Description

The query export object used to specify how to extract nlp query results.

Output Response

Successful Result Code

200

Response Type

string

Description of Response Type

successful operation

Notes

Queries are extracted in flattened tabular format – and do not represent the cartesian of the data. Multiple queries can be extracted into XML or JSON formats only. The CSV option is only available for single queries running from Discovery content.

Examples