Перейти к основному содержанию
GET
/
v0
/
hosts
Список хостов
curl --request GET \
  --url https://api.qudata.ai/v0/hosts \
  --header 'X-Api-Key: <api-key>'
{
  "ok": true,
  "data": [
    {
      "id": "<string>",
      "offer": {
        "id": "<string>",
        "gpu_name": "<string>",
        "configuration": {
          "ram": {
            "amount": 123,
            "unit": "gb"
          },
          "disk": {
            "amount": 123,
            "unit": "gb"
          },
          "cpu_name": "<string>",
          "vcpu": 123,
          "cpu_cores": 123,
          "cpu_freq": 123,
          "memory_speed": 123,
          "ethernet_in": 123,
          "ethernet_out": 123,
          "capacity": 123,
          "max_cuda_version": 123
        },
        "in_stock": true,
        "rentable": true,
        "provider": {
          "id": "<string>",
          "name": "<string>",
          "translit_name": "<string>",
          "country": "<string>",
          "logo": "<string>",
          "meta_title": "<string>",
          "meta_description": "<string>",
          "use_vpn": true
        },
        "gpu_amount": 123,
        "gpu_translit_name": "<string>",
        "vram": 123,
        "prices": [],
        "location": {
          "city": "<string>",
          "country": "<string>",
          "region": "<string>"
        },
        "extra": {},
        "url": "<string>",
        "is_third_party": false,
        "offers_amount": 0,
        "countries_amount": 0,
        "disk_prices": [],
        "available_until": "2023-11-07T05:31:56Z",
        "real_price": 123,
        "disk_real_price": 123
      },
      "address": "<string>",
      "agent_port": 123,
      "fingerprint": "<string>",
      "agent_id": "<string>",
      "status": "inactive",
      "status_reason": "<string>"
    }
  ],
  "total_items": 0
}

Авторизации

X-Api-Key
string
header
обязательно

Параметры запроса

start
integer
по умолчанию:0
limit
integer
по умолчанию:10
currency
enum<string>
по умолчанию:RUB
Доступные опции:
USD,
RUB,
QOIN
locale
enum<string>
по умолчанию:ru
Доступные опции:
ru,
en

Ответ

Successful Response

ok
boolean
по умолчанию:true
data
HostResponse · object[] | null
total_items
integer
по умолчанию:0