> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-auto-cli-sdk-preview-pr-398.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.search_offers

Search for GPU offers.

## Signature

```python theme={null}
VastAI.search_offers(
    query: Any = None,
    type: str = 'on-demand',
    order: str = 'score-',
    limit: Optional[int] = None,
    storage: float = 5.0,
    no_default: bool = False,
    new: bool = False
) -> list
```

## Parameters

<ParamField path="query" type="Any">
  Query to search for. default: 'external=false rentable=true verified=true', pass -n to ignore default
</ParamField>

<ParamField path="type" type="str" default="on-demand">
  Alias for --type=on-demand
</ParamField>

<ParamField path="order" type="str" default="score-">
  Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o 'num\_gpus,total\_flops-'.  default='score-'
</ParamField>

<ParamField path="limit" type="Optional[int]" />

<ParamField path="storage" type="float" default="5.0">
  Amount of storage to use for pricing, in GiB. default=5.0GiB
</ParamField>

<ParamField path="no_default" type="bool">
  Disable default query
</ParamField>

<ParamField path="new" type="bool">
  New search exp
</ParamField>

## Returns

`list`

## Example

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

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