ES|QL async query get API

ES|QL async query get APIedit

Returns the current status and available results for an ES|QL async query or a stored results.



GET /_query/async/<query_id>


  • If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API.

Path parametersedit


(Required, string) Identifier for the query.

A query ID is provided in the ES|QL async query API's response for a query that does not complete in the awaited time. A query ID is also provided if the request’s keep_on_completion parameter is true.

Query parametersedit


(Optional, time value) Timeout duration to wait for the request to finish. Defaults to no timeout, meaning the request waits for complete query results.

If this parameter is specified and the request completes during this period, complete query results are returned.

If the request does not complete during this period, the response returns an is_running value of true and no results.

Response bodyedit

The ES|QL async query get API returns the same response body as the ES|QL query API. See the ES|QL query API’s response body parameters.