> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.show_earnings

Show earnings information.

## Signature

```python theme={null}
VastAI.show_earnings(
    quiet: bool = False,
    start_date: Optional[str] = None,
    end_date: Optional[str] = None,
    machine_id: Optional[int] = None
) -> str
```

## Parameters

<ParamField path="quiet" type="bool" default="False">
  quiet
</ParamField>

<ParamField path="start_date" type="Optional[str]">
  start\_date
</ParamField>

<ParamField path="end_date" type="Optional[str]">
  end\_date
</ParamField>

<ParamField path="machine_id" type="Optional[int]">
  machine\_id
</ParamField>

## Returns

`str`, Result from the API call.

## Example

```python theme={null}
from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.show_earnings()
print(result)
```
