Extract Query Results
{ extractQueryResult }
Runs a content item and extracts the raw query result data into the specified format (CSV, JSON, XML).
Method
Input Parameters
Name
data
Object Type
Description
The query export object used to specify how to extract query results.
Output Response
Successful Result Code
200
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
Running Queries and Slicers programmatically (JavaScript):
This example demonstrates how to run queries and slicers (parameters) programmatically to extract results.
The example uses API authentication driven from JavaScript. See Authentication APIs for alternatives.
User Client/API Authentication (C#):
This example demonstrates how to authenticate users with Windows Authentication and run a query programmatically.