Skip to main content
Search for offers based on various criteria.

Signature

VastAI.search_offers(
    type: Optional[str] = None,
    no_default: bool = False,
    new: bool = False,
    limit: Optional[int] = None,
    disable_bundling: bool = False,
    storage: Optional[float] = None,
    order: Optional[str] = None,
    query: Optional[str] = None
) -> str

Parameters

type
Optional[str]
type
no_default
bool
default:"False"
no_default
new
bool
default:"False"
new
limit
Optional[int]
limit
disable_bundling
bool
default:"False"
disable_bundling
storage
Optional[float]
storage
order
Optional[str]
order
query
Optional[str]
query

Returns

str — Result from the API call.

Example

from vastai import VastAI

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