> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://stelltec.com/rhebok/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://stelltec.com/rhebok/docs/_mcp/server.

# Get index progress

GET http://127.0.0.1:7331/api/progress

Returns the progress of the index run that is writing now, or
`{"idle": true}` when no live index process is reporting progress.

Reference: https://stelltec.com/rhebok/docs/api/index/get-progress

## Response

### 200

The progress of a running index, or idle.

- `Progress`
  - RunningProgress: RunningProgress
  - IdleProgress: IdleProgress

## Errors

### 421 Misdirected Request Error

The `Host` header does not name this dashboard (see the rules at the top of this page).

- `error` (string, required) — What went wrong, in plain words.

## Types

### RunningProgress

- `pct` (double, required)
- `docs_done` (integer, required)
- `docs_total` (integer, required)
- `chunks` (integer, required)
- `bytes_done` (integer, required)
- `bytes_total` (integer, required)
- `elapsed_s` (integer, required)
- `eta_s` (integer, required)
- `pid` (integer, required) — The index process.

### IdleProgress

- `idle` (true, required)

## Examples

### running

**Response**

```json
{
  "bytes_done": 18874368,
  "bytes_total": 44408832,
  "chunks": 14210,
  "docs_done": 272,
  "docs_total": 641,
  "elapsed_s": 96,
  "eta_s": 130,
  "pct": 42.5,
  "pid": 48213
}
```

**SDK Code**

```python running
import requests

url = "http://127.0.0.1:7331/api/progress"

response = requests.get(url)

print(response.json())
```

```javascript running
const url = 'http://127.0.0.1:7331/api/progress';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go running
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "http://127.0.0.1:7331/api/progress"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby running
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:7331/api/progress")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java running
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("http://127.0.0.1:7331/api/progress")
  .asString();
```

```php running
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://127.0.0.1:7331/api/progress');

echo $response->getBody();
```

```csharp running
using RestSharp;

var client = new RestClient("http://127.0.0.1:7331/api/progress");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift running
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "http://127.0.0.1:7331/api/progress")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### idle

**Response**

```json
{
  "idle": true
}
```

**SDK Code**

```python idle
import requests

url = "http://127.0.0.1:7331/api/progress"

response = requests.get(url)

print(response.json())
```

```javascript idle
const url = 'http://127.0.0.1:7331/api/progress';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go idle
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "http://127.0.0.1:7331/api/progress"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby idle
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:7331/api/progress")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java idle
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("http://127.0.0.1:7331/api/progress")
  .asString();
```

```php idle
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://127.0.0.1:7331/api/progress');

echo $response->getBody();
```

```csharp idle
using RestSharp;

var client = new RestClient("http://127.0.0.1:7331/api/progress");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift idle
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "http://127.0.0.1:7331/api/progress")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```