Stay organized with collections
Save and categorize content based on your preferences.
Version 4.0.25.14 (latest)
Get Query Task details
Use this function to check the status of an async query task. After the status
reaches "Complete", you can call query_task_results(query_task_id) to
retrieve the results of the query.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# Get Async Query Info\n\nVersion 4.0.25.14 (latest)\n\n### Get Query Task details\n\nUse this function to check the status of an async query task. After the status\nreaches \"Complete\", you can call [query_task_results(query_task_id)](/looker/docs/reference/looker-api/latest/methods/Query/query_task_results) to\nretrieve the results of the query.\n\nUse [create_query_task()](/looker/docs/reference/looker-api/latest/methods/Query/create_query_task) to create an async query task.\n\nRequest\n-------\n\nGET /query_tasks/{query_task_id} \nDatatype \nDescription \nRequest \nHTTP Request \npath \nHTTP Path \nExpand HTTP Path definition... \nquery_task_id \nstring \nID of the Query Task \nquery \nHTTP Query \nExpand HTTP Query definition... \nfields \nstring \nRequested fields.\n\nResponse\n--------\n\n### 200: query_task\n\nDatatype \nDescription \n(object) \n[QueryTask](/looker/docs/reference/looker-api/latest/types/QueryTask) \ncan \n*lock* \nobject \nOperations the current user is able to perform on this object \nid \n*lock* \nstring \nUnique Id \nquery_id \nstring \nId of query \nquery \n*lock* \n[Query](/looker/docs/reference/looker-api/latest/types/Query) \nQuery\nExpand Query definition... \ncan \n*lock* \nobject \nOperations the current user is able to perform on this object \nid \n*lock* \nstring \nUnique Id \nmodel \nstring \nModel \nview \nstring \nExplore Name \nfields \nstring\\[\\] \npivots \nstring\\[\\] \nfill_fields \nstring\\[\\] \nfilters \nobject \nFilters will contain data pertaining to complex filters that do not contain \"or\" conditions. When \"or\" conditions are present, filter data will be found on the \\`filter_expression\\` property. \nfilter_expression \nstring \nFilter Expression \nsorts \nstring\\[\\] \nlimit \nstring \nRow limit. To download unlimited results, set the limit to -1 (negative one). \ncolumn_limit \nstring \nColumn Limit \ntotal \nboolean \nTotal \nrow_total \nstring \nRaw Total \nsubtotals \nstring\\[\\] \nvis_config \nobject \nVisualization configuration properties. These properties are typically opaque and differ based on the type of visualization used. There is no specified set of allowed keys. The values can be any type supported by JSON. A \"type\" key with a string value is often present, and is used by Looker to determine which visualization to present. Visualizations ignore unknown vis_config properties. \nfilter_config \nobject \nThe filter_config represents the state of the filter UI on the explore page for a given query. When running a query via the Looker UI, this parameter takes precedence over \"filters\". When creating a query or modifying an existing query, \"filter_config\" should be set to null. Setting it to any other value could cause unexpected filtering behavior. The format should be considered opaque. \nvisible_ui_sections \nstring \nVisible UI Sections \nslug \n*lock* \nstring \nSlug \ndynamic_fields \nstring \nDynamic Fields \nclient_id \nstring \nClient Id: used to generate shortened explore URLs. If set by client, must be a unique 22 character alphanumeric string. Otherwise one will be generated. \nshare_url \n*lock* \nstring \nShare Url \nexpanded_share_url \n*lock* \nstring \nExpanded Share Url \nurl \n*lock* \nstring \nExpanded Url \nquery_timezone \nstring \nQuery Timezone \nhas_table_calculations \n*lock* \nboolean \nHas Table Calculations \ngenerate_links \nboolean \nwhether or not to generate links in the query response. \nforce_production \nboolean \nUse production models to run query (even is user is in dev mode). \npath_prefix \nstring \nPrefix to use for drill links. \ncache \nboolean \nWhether or not to use the cache \nserver_table_calcs \nboolean \nWhether or not to run table calculations on the server \ncache_only \nboolean \nRetrieve any results from cache even if the results have expired. \ncache_key \n*lock* \nstring \ncache key used to cache query. \nstatus \nstring \nStatus of query task. \nsource \nstring \nSource of query task. \nruntime \n*lock* \nnumber \nRuntime of prior queries. \nrebuild_pdts \nboolean \nRebuild PDTS used in query. \nresult_source \n*lock* \nstring \nSource of the results of the query. \nlook_id \nstring \nId of look associated with query. \ndashboard_id \nstring \nId of dashboard associated with query. \nresult_format \n*lock* \nstring \nThe data format of the query results.\n\n### 400: Bad Request\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 404: Not Found\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 429: Too Many Requests\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\nExamples\n--------\n\n### Python\n\n\n### Ruby"]]