Поиск предложений
curl --request POST \
--url https://api.qudata.ai/v0/market/search \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"currency": "RUB",
"query": {
"location": [
"<string>"
],
"price_gt": 123,
"price_lt": 123,
"gpu_translit_name": [
"<string>"
],
"in_stock": true,
"score_gt": 123,
"gpu_amount": 123,
"provider": "<string>",
"vram_gt": 123,
"vram_lt": 123,
"ram_gt": 123,
"ram_lt": 123,
"disk_gt": 123,
"disk_lt": 123,
"cpu_name": "<string>",
"vcpu_gt": 123,
"vcpu_lt": 123,
"cpu_cores_gt": 123,
"cpu_cores_lt": 123,
"cpu_freq_gt": 123,
"cpu_freq_lt": 123,
"memory_speed_gt": 123,
"memory_speed_lt": 123,
"ethernet_in_gt": 123,
"ethernet_in_lt": 123,
"ethernet_out_gt": 123,
"ethernet_out_lt": 123,
"capacity_gt": 123,
"capacity_lt": 123,
"rentable": true
},
"sort_by": "price_asc"
}
'import requests
url = "https://api.qudata.ai/v0/market/search"
payload = {
"currency": "RUB",
"query": {
"location": ["<string>"],
"price_gt": 123,
"price_lt": 123,
"gpu_translit_name": ["<string>"],
"in_stock": True,
"score_gt": 123,
"gpu_amount": 123,
"provider": "<string>",
"vram_gt": 123,
"vram_lt": 123,
"ram_gt": 123,
"ram_lt": 123,
"disk_gt": 123,
"disk_lt": 123,
"cpu_name": "<string>",
"vcpu_gt": 123,
"vcpu_lt": 123,
"cpu_cores_gt": 123,
"cpu_cores_lt": 123,
"cpu_freq_gt": 123,
"cpu_freq_lt": 123,
"memory_speed_gt": 123,
"memory_speed_lt": 123,
"ethernet_in_gt": 123,
"ethernet_in_lt": 123,
"ethernet_out_gt": 123,
"ethernet_out_lt": 123,
"capacity_gt": 123,
"capacity_lt": 123,
"rentable": True
},
"sort_by": "price_asc"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
currency: 'RUB',
query: {
location: ['<string>'],
price_gt: 123,
price_lt: 123,
gpu_translit_name: ['<string>'],
in_stock: true,
score_gt: 123,
gpu_amount: 123,
provider: '<string>',
vram_gt: 123,
vram_lt: 123,
ram_gt: 123,
ram_lt: 123,
disk_gt: 123,
disk_lt: 123,
cpu_name: '<string>',
vcpu_gt: 123,
vcpu_lt: 123,
cpu_cores_gt: 123,
cpu_cores_lt: 123,
cpu_freq_gt: 123,
cpu_freq_lt: 123,
memory_speed_gt: 123,
memory_speed_lt: 123,
ethernet_in_gt: 123,
ethernet_in_lt: 123,
ethernet_out_gt: 123,
ethernet_out_lt: 123,
capacity_gt: 123,
capacity_lt: 123,
rentable: true
},
sort_by: 'price_asc'
})
};
fetch('https://api.qudata.ai/v0/market/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qudata.ai/v0/market/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => 'RUB',
'query' => [
'location' => [
'<string>'
],
'price_gt' => 123,
'price_lt' => 123,
'gpu_translit_name' => [
'<string>'
],
'in_stock' => true,
'score_gt' => 123,
'gpu_amount' => 123,
'provider' => '<string>',
'vram_gt' => 123,
'vram_lt' => 123,
'ram_gt' => 123,
'ram_lt' => 123,
'disk_gt' => 123,
'disk_lt' => 123,
'cpu_name' => '<string>',
'vcpu_gt' => 123,
'vcpu_lt' => 123,
'cpu_cores_gt' => 123,
'cpu_cores_lt' => 123,
'cpu_freq_gt' => 123,
'cpu_freq_lt' => 123,
'memory_speed_gt' => 123,
'memory_speed_lt' => 123,
'ethernet_in_gt' => 123,
'ethernet_in_lt' => 123,
'ethernet_out_gt' => 123,
'ethernet_out_lt' => 123,
'capacity_gt' => 123,
'capacity_lt' => 123,
'rentable' => true
],
'sort_by' => 'price_asc'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qudata.ai/v0/market/search"
payload := strings.NewReader("{\n \"currency\": \"RUB\",\n \"query\": {\n \"location\": [\n \"<string>\"\n ],\n \"price_gt\": 123,\n \"price_lt\": 123,\n \"gpu_translit_name\": [\n \"<string>\"\n ],\n \"in_stock\": true,\n \"score_gt\": 123,\n \"gpu_amount\": 123,\n \"provider\": \"<string>\",\n \"vram_gt\": 123,\n \"vram_lt\": 123,\n \"ram_gt\": 123,\n \"ram_lt\": 123,\n \"disk_gt\": 123,\n \"disk_lt\": 123,\n \"cpu_name\": \"<string>\",\n \"vcpu_gt\": 123,\n \"vcpu_lt\": 123,\n \"cpu_cores_gt\": 123,\n \"cpu_cores_lt\": 123,\n \"cpu_freq_gt\": 123,\n \"cpu_freq_lt\": 123,\n \"memory_speed_gt\": 123,\n \"memory_speed_lt\": 123,\n \"ethernet_in_gt\": 123,\n \"ethernet_in_lt\": 123,\n \"ethernet_out_gt\": 123,\n \"ethernet_out_lt\": 123,\n \"capacity_gt\": 123,\n \"capacity_lt\": 123,\n \"rentable\": true\n },\n \"sort_by\": \"price_asc\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qudata.ai/v0/market/search")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"RUB\",\n \"query\": {\n \"location\": [\n \"<string>\"\n ],\n \"price_gt\": 123,\n \"price_lt\": 123,\n \"gpu_translit_name\": [\n \"<string>\"\n ],\n \"in_stock\": true,\n \"score_gt\": 123,\n \"gpu_amount\": 123,\n \"provider\": \"<string>\",\n \"vram_gt\": 123,\n \"vram_lt\": 123,\n \"ram_gt\": 123,\n \"ram_lt\": 123,\n \"disk_gt\": 123,\n \"disk_lt\": 123,\n \"cpu_name\": \"<string>\",\n \"vcpu_gt\": 123,\n \"vcpu_lt\": 123,\n \"cpu_cores_gt\": 123,\n \"cpu_cores_lt\": 123,\n \"cpu_freq_gt\": 123,\n \"cpu_freq_lt\": 123,\n \"memory_speed_gt\": 123,\n \"memory_speed_lt\": 123,\n \"ethernet_in_gt\": 123,\n \"ethernet_in_lt\": 123,\n \"ethernet_out_gt\": 123,\n \"ethernet_out_lt\": 123,\n \"capacity_gt\": 123,\n \"capacity_lt\": 123,\n \"rentable\": true\n },\n \"sort_by\": \"price_asc\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qudata.ai/v0/market/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": \"RUB\",\n \"query\": {\n \"location\": [\n \"<string>\"\n ],\n \"price_gt\": 123,\n \"price_lt\": 123,\n \"gpu_translit_name\": [\n \"<string>\"\n ],\n \"in_stock\": true,\n \"score_gt\": 123,\n \"gpu_amount\": 123,\n \"provider\": \"<string>\",\n \"vram_gt\": 123,\n \"vram_lt\": 123,\n \"ram_gt\": 123,\n \"ram_lt\": 123,\n \"disk_gt\": 123,\n \"disk_lt\": 123,\n \"cpu_name\": \"<string>\",\n \"vcpu_gt\": 123,\n \"vcpu_lt\": 123,\n \"cpu_cores_gt\": 123,\n \"cpu_cores_lt\": 123,\n \"cpu_freq_gt\": 123,\n \"cpu_freq_lt\": 123,\n \"memory_speed_gt\": 123,\n \"memory_speed_lt\": 123,\n \"ethernet_in_gt\": 123,\n \"ethernet_in_lt\": 123,\n \"ethernet_out_gt\": 123,\n \"ethernet_out_lt\": 123,\n \"capacity_gt\": 123,\n \"capacity_lt\": 123,\n \"rentable\": true\n },\n \"sort_by\": \"price_asc\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"data": [
{
"id": "<string>",
"provider_translit_name": "<string>",
"gpu_amount": 123,
"gpu_name": "<string>",
"gpu_translit_name": "<string>",
"vram": 123,
"configuration": {
"ram": {
"amount": 123
},
"disk": {
"amount": 123
},
"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,
"prices": [],
"location": {
"city": "<string>",
"country": "<string>",
"region": "<string>"
},
"url": "<string>",
"disk_prices": []
}
],
"total_items": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Маркетплейс Qudata.ai
Поиск предложений
Поиск предложений аренды GPU на маркетплейсе Qudata.ai
POST
/
v0
/
market
/
search
Поиск предложений
curl --request POST \
--url https://api.qudata.ai/v0/market/search \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"currency": "RUB",
"query": {
"location": [
"<string>"
],
"price_gt": 123,
"price_lt": 123,
"gpu_translit_name": [
"<string>"
],
"in_stock": true,
"score_gt": 123,
"gpu_amount": 123,
"provider": "<string>",
"vram_gt": 123,
"vram_lt": 123,
"ram_gt": 123,
"ram_lt": 123,
"disk_gt": 123,
"disk_lt": 123,
"cpu_name": "<string>",
"vcpu_gt": 123,
"vcpu_lt": 123,
"cpu_cores_gt": 123,
"cpu_cores_lt": 123,
"cpu_freq_gt": 123,
"cpu_freq_lt": 123,
"memory_speed_gt": 123,
"memory_speed_lt": 123,
"ethernet_in_gt": 123,
"ethernet_in_lt": 123,
"ethernet_out_gt": 123,
"ethernet_out_lt": 123,
"capacity_gt": 123,
"capacity_lt": 123,
"rentable": true
},
"sort_by": "price_asc"
}
'import requests
url = "https://api.qudata.ai/v0/market/search"
payload = {
"currency": "RUB",
"query": {
"location": ["<string>"],
"price_gt": 123,
"price_lt": 123,
"gpu_translit_name": ["<string>"],
"in_stock": True,
"score_gt": 123,
"gpu_amount": 123,
"provider": "<string>",
"vram_gt": 123,
"vram_lt": 123,
"ram_gt": 123,
"ram_lt": 123,
"disk_gt": 123,
"disk_lt": 123,
"cpu_name": "<string>",
"vcpu_gt": 123,
"vcpu_lt": 123,
"cpu_cores_gt": 123,
"cpu_cores_lt": 123,
"cpu_freq_gt": 123,
"cpu_freq_lt": 123,
"memory_speed_gt": 123,
"memory_speed_lt": 123,
"ethernet_in_gt": 123,
"ethernet_in_lt": 123,
"ethernet_out_gt": 123,
"ethernet_out_lt": 123,
"capacity_gt": 123,
"capacity_lt": 123,
"rentable": True
},
"sort_by": "price_asc"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
currency: 'RUB',
query: {
location: ['<string>'],
price_gt: 123,
price_lt: 123,
gpu_translit_name: ['<string>'],
in_stock: true,
score_gt: 123,
gpu_amount: 123,
provider: '<string>',
vram_gt: 123,
vram_lt: 123,
ram_gt: 123,
ram_lt: 123,
disk_gt: 123,
disk_lt: 123,
cpu_name: '<string>',
vcpu_gt: 123,
vcpu_lt: 123,
cpu_cores_gt: 123,
cpu_cores_lt: 123,
cpu_freq_gt: 123,
cpu_freq_lt: 123,
memory_speed_gt: 123,
memory_speed_lt: 123,
ethernet_in_gt: 123,
ethernet_in_lt: 123,
ethernet_out_gt: 123,
ethernet_out_lt: 123,
capacity_gt: 123,
capacity_lt: 123,
rentable: true
},
sort_by: 'price_asc'
})
};
fetch('https://api.qudata.ai/v0/market/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qudata.ai/v0/market/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => 'RUB',
'query' => [
'location' => [
'<string>'
],
'price_gt' => 123,
'price_lt' => 123,
'gpu_translit_name' => [
'<string>'
],
'in_stock' => true,
'score_gt' => 123,
'gpu_amount' => 123,
'provider' => '<string>',
'vram_gt' => 123,
'vram_lt' => 123,
'ram_gt' => 123,
'ram_lt' => 123,
'disk_gt' => 123,
'disk_lt' => 123,
'cpu_name' => '<string>',
'vcpu_gt' => 123,
'vcpu_lt' => 123,
'cpu_cores_gt' => 123,
'cpu_cores_lt' => 123,
'cpu_freq_gt' => 123,
'cpu_freq_lt' => 123,
'memory_speed_gt' => 123,
'memory_speed_lt' => 123,
'ethernet_in_gt' => 123,
'ethernet_in_lt' => 123,
'ethernet_out_gt' => 123,
'ethernet_out_lt' => 123,
'capacity_gt' => 123,
'capacity_lt' => 123,
'rentable' => true
],
'sort_by' => 'price_asc'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qudata.ai/v0/market/search"
payload := strings.NewReader("{\n \"currency\": \"RUB\",\n \"query\": {\n \"location\": [\n \"<string>\"\n ],\n \"price_gt\": 123,\n \"price_lt\": 123,\n \"gpu_translit_name\": [\n \"<string>\"\n ],\n \"in_stock\": true,\n \"score_gt\": 123,\n \"gpu_amount\": 123,\n \"provider\": \"<string>\",\n \"vram_gt\": 123,\n \"vram_lt\": 123,\n \"ram_gt\": 123,\n \"ram_lt\": 123,\n \"disk_gt\": 123,\n \"disk_lt\": 123,\n \"cpu_name\": \"<string>\",\n \"vcpu_gt\": 123,\n \"vcpu_lt\": 123,\n \"cpu_cores_gt\": 123,\n \"cpu_cores_lt\": 123,\n \"cpu_freq_gt\": 123,\n \"cpu_freq_lt\": 123,\n \"memory_speed_gt\": 123,\n \"memory_speed_lt\": 123,\n \"ethernet_in_gt\": 123,\n \"ethernet_in_lt\": 123,\n \"ethernet_out_gt\": 123,\n \"ethernet_out_lt\": 123,\n \"capacity_gt\": 123,\n \"capacity_lt\": 123,\n \"rentable\": true\n },\n \"sort_by\": \"price_asc\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qudata.ai/v0/market/search")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"RUB\",\n \"query\": {\n \"location\": [\n \"<string>\"\n ],\n \"price_gt\": 123,\n \"price_lt\": 123,\n \"gpu_translit_name\": [\n \"<string>\"\n ],\n \"in_stock\": true,\n \"score_gt\": 123,\n \"gpu_amount\": 123,\n \"provider\": \"<string>\",\n \"vram_gt\": 123,\n \"vram_lt\": 123,\n \"ram_gt\": 123,\n \"ram_lt\": 123,\n \"disk_gt\": 123,\n \"disk_lt\": 123,\n \"cpu_name\": \"<string>\",\n \"vcpu_gt\": 123,\n \"vcpu_lt\": 123,\n \"cpu_cores_gt\": 123,\n \"cpu_cores_lt\": 123,\n \"cpu_freq_gt\": 123,\n \"cpu_freq_lt\": 123,\n \"memory_speed_gt\": 123,\n \"memory_speed_lt\": 123,\n \"ethernet_in_gt\": 123,\n \"ethernet_in_lt\": 123,\n \"ethernet_out_gt\": 123,\n \"ethernet_out_lt\": 123,\n \"capacity_gt\": 123,\n \"capacity_lt\": 123,\n \"rentable\": true\n },\n \"sort_by\": \"price_asc\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qudata.ai/v0/market/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": \"RUB\",\n \"query\": {\n \"location\": [\n \"<string>\"\n ],\n \"price_gt\": 123,\n \"price_lt\": 123,\n \"gpu_translit_name\": [\n \"<string>\"\n ],\n \"in_stock\": true,\n \"score_gt\": 123,\n \"gpu_amount\": 123,\n \"provider\": \"<string>\",\n \"vram_gt\": 123,\n \"vram_lt\": 123,\n \"ram_gt\": 123,\n \"ram_lt\": 123,\n \"disk_gt\": 123,\n \"disk_lt\": 123,\n \"cpu_name\": \"<string>\",\n \"vcpu_gt\": 123,\n \"vcpu_lt\": 123,\n \"cpu_cores_gt\": 123,\n \"cpu_cores_lt\": 123,\n \"cpu_freq_gt\": 123,\n \"cpu_freq_lt\": 123,\n \"memory_speed_gt\": 123,\n \"memory_speed_lt\": 123,\n \"ethernet_in_gt\": 123,\n \"ethernet_in_lt\": 123,\n \"ethernet_out_gt\": 123,\n \"ethernet_out_lt\": 123,\n \"capacity_gt\": 123,\n \"capacity_lt\": 123,\n \"rentable\": true\n },\n \"sort_by\": \"price_asc\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"data": [
{
"id": "<string>",
"provider_translit_name": "<string>",
"gpu_amount": 123,
"gpu_name": "<string>",
"gpu_translit_name": "<string>",
"vram": 123,
"configuration": {
"ram": {
"amount": 123
},
"disk": {
"amount": 123
},
"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,
"prices": [],
"location": {
"city": "<string>",
"country": "<string>",
"region": "<string>"
},
"url": "<string>",
"disk_prices": []
}
],
"total_items": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Авторизации
Тело
application/json
Доступные опции:
USD, RUB, QOIN Show child attributes
Show child attributes
Доступные опции:
price_asc, price_desc, provider_asc, provider_desc, provider_score_asc, provider_score_desc, gpu_amount_asc, gpu_amount_desc, ram_asc, ram_desc, stock_asc, stock_desc ⌘I