# Get the hot threads for nodes
**GET /_nodes/{node_id}/hot_threads**
**All methods and paths for this operation:**
GET
/_nodes/hot_threads
GET
/_nodes/{node_id}/hot_threads
Get a breakdown of the hot threads on each selected node in the cluster.
The output is plain text with a breakdown of the top hot threads for each node.
## Required authorization
* Cluster privileges: `monitor`,`manage`
## Servers
- http://api.example.com: http://api.example.com ()
## Authentication methods
- Api key auth
- Basic auth
- Bearer auth
## Parameters
### Path parameters
- **node_id** (string | array[string])
List of node IDs or names used to limit returned information.
### Query parameters
- **ignore_idle_threads** (boolean)
If true, known idle threads (e.g. waiting in a socket select, or to get
a task from an empty queue) are filtered out.
- **interval** (string)
The interval to do the second sampling of threads.
- **snapshots** (number)
Number of samples of thread stacktrace.
- **threads** (number)
Specifies the number of hot threads to provide information for.
- **timeout** (string)
Period to wait for a response. If no response is received
before the timeout expires, the request fails and returns an error.
- **type** (string)
The type to sample.
Supported values include:
- `cpu`: Threads that consume the most CPU time.
- `wait`: Threads that have been in a waiting state the longest.
- `block`: Threads that have been blocked the longest.
- `gpu`: Threads that consume the most GPU time.
- `mem`: Threads that allocate the most memory.
- **sort** (string)
The sort order for 'cpu' type
Supported values include:
- `cpu`: Threads that consume the most CPU time.
- `wait`: Threads that have been in a waiting state the longest.
- `block`: Threads that have been blocked the longest.
- `gpu`: Threads that consume the most GPU time.
- `mem`: Threads that allocate the most memory.
## Responses
### 200
#### Body: application/json (object)
object
[Powered by Bump.sh](https://bump.sh)