# Elastic Stack (ELK Stack) Esql API

**Canonical:** https://apis.io/apis/elk-stack/elk-stack-esql-api/  
**Provider:** Elastic Stack (ELK Stack) — https://apis.io/providers/elk-stack/  
**Base URL:** https://{elasticsearch_endpoint}  
**Documentation:** https://www.elastic.co/docs/api/doc/elasticsearch/

Elastic Stack (ELK Stack) Esql API is one of 132 APIs that [Elastic Stack (ELK Stack)](https://apis.io/providers/elk-stack/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include esql. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

The esql API from Elastic Stack (ELK Stack) — 12 operation(s) for esql.

## Operations (19)

| Method | Path | Summary |
|---|---|---|
| POST | `/_query/async` | Run an async ES\|QL query |
| GET | `/_query/async/{id}` | Get async ES\|QL query results |
| DELETE | `/_query/async/{id}` | Delete an async ES\|QL query |
| POST | `/_query/async/{id}/stop` | Stop async ES\|QL query |
| GET | `/_query/data_source/{name}` | Get ES\|QL data sources |
| PUT | `/_query/data_source/{name}` | Create or update an ES\|QL data source |
| DELETE | `/_query/data_source/{name}` | Delete ES\|QL data sources |
| GET | `/_query/dataset/{name}` | Get ES\|QL datasets |
| PUT | `/_query/dataset/{name}` | Create or update an ES\|QL dataset |
| DELETE | `/_query/dataset/{name}` | Delete ES\|QL datasets |
| GET | `/_query/view/{name}` | Get an ES\|QL view |
| PUT | `/_query/view/{name}` | Create or update an ES\|QL view |
| DELETE | `/_query/view/{name}` | Delete an ES\|QL view |
| GET | `/_query/data_source` | Get ES\|QL data sources |
| GET | `/_query/dataset` | Get ES\|QL datasets |
| GET | `/_query/queries/{id}` | Get a specific running ES\|QL query information |
| GET | `/_query/view` | Get an ES\|QL view |
| GET | `/_query/queries` | Get running ES\|QL queries information |
| POST | `/_query` | Run an ES\|QL query |

## Machine-readable artifacts (8)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/openapi/elk-stack-esql-api-openapi.yml
- **Documentation** — https://www.elastic.co/docs/reference/elasticsearch
- **APIReference** — https://www.elastic.co/docs/api/doc/elasticsearch/
- **SourceCode** — https://github.com/elastic/elasticsearch-specification
- **Documentation** — https://www.elastic.co/docs/reference/kibana
- **APIReference** — https://www.elastic.co/docs/api/doc/kibana/
- **SourceCode** — https://github.com/elastic/kibana
- **ToolCrosswalk** — https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/mcp/elk-stack-tool-crosswalk.yml

## Other Elastic Stack (ELK Stack) APIs (12)

- [Elastic Cloud API](https://apis.io/apis/elk-stack/elastic-cloud-api/)
- [Elastic Stack (ELK Stack) Accounts API](https://apis.io/apis/elk-stack/elk-stack-accounts-api/)
- [Elastic Stack (ELK Stack) Actions API](https://apis.io/apis/elk-stack/elk-stack-actions-api/)
- [Elastic Stack (ELK Stack) agent builder API](https://apis.io/apis/elk-stack/elk-stack-agent-builder-api/)
- [Elastic Stack (ELK Stack) Alerting API](https://apis.io/apis/elk-stack/elk-stack-alerting-api/)
- [Elastic Stack (ELK Stack) Alerting V2 API](https://apis.io/apis/elk-stack/elk-stack-alerting-v2-api/)
- [Elastic Stack (ELK Stack) Analytics API](https://apis.io/apis/elk-stack/elk-stack-analytics-api/)
- [Elastic Stack (ELK Stack) APM agent configuration API](https://apis.io/apis/elk-stack/elk-stack-apm-agent-configuration-api/)
- [Elastic Stack (ELK Stack) APM agent keys API](https://apis.io/apis/elk-stack/elk-stack-apm-agent-keys-api/)
- [Elastic Stack (ELK Stack) APM annotations API](https://apis.io/apis/elk-stack/elk-stack-apm-annotations-api/)
- [Elastic Stack (ELK Stack) APM server schema API](https://apis.io/apis/elk-stack/elk-stack-apm-server-schema-api/)
- [Elastic Stack (ELK Stack) APM sourcemaps API](https://apis.io/apis/elk-stack/elk-stack-apm-sourcemaps-api/)

## Tags

esql

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/elk-stack/elk-stack-esql-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/elk-stack/.
