curl --request GET \
--url https://api.nebius.cloud/billing/v1alpha1/spot-price/list-seriesimport requests
url = "https://api.nebius.cloud/billing/v1alpha1/spot-price/list-series"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.nebius.cloud/billing/v1alpha1/spot-price/list-series', 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.nebius.cloud/billing/v1alpha1/spot-price/list-series",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nebius.cloud/billing/v1alpha1/spot-price/list-series"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nebius.cloud/billing/v1alpha1/spot-price/list-series")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nebius.cloud/billing/v1alpha1/spot-price/list-series")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"computeInstance": {
"platform": "<string>"
},
"currency": "<string>",
"points": [
{
"timestamp": "2023-11-07T05:31:56Z",
"value": "<string>"
}
],
"productTitle": "<string>",
"region": "<string>",
"skuId": "<string>",
"unitTitle": "<string>"
}
],
"nextPageToken": "<string>",
"snapshotTime": "2023-11-07T05:31:56Z"
}List Series
Lists the spot prices at regular time steps, one series for each SKU. Authentication is not required.
curl --request GET \
--url https://api.nebius.cloud/billing/v1alpha1/spot-price/list-seriesimport requests
url = "https://api.nebius.cloud/billing/v1alpha1/spot-price/list-series"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.nebius.cloud/billing/v1alpha1/spot-price/list-series', 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.nebius.cloud/billing/v1alpha1/spot-price/list-series",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nebius.cloud/billing/v1alpha1/spot-price/list-series"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nebius.cloud/billing/v1alpha1/spot-price/list-series")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nebius.cloud/billing/v1alpha1/spot-price/list-series")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"items": [
{
"computeInstance": {
"platform": "<string>"
},
"currency": "<string>",
"points": [
{
"timestamp": "2023-11-07T05:31:56Z",
"value": "<string>"
}
],
"productTitle": "<string>",
"region": "<string>",
"skuId": "<string>",
"unitTitle": "<string>"
}
],
"nextPageToken": "<string>",
"snapshotTime": "2023-11-07T05:31:56Z"
}Query Parameters
Maximum number of series in the response. Default: 100.
Token from next_page_token of the previous response.
SKU IDs from List, up to 100. Default: all SKUs.
Start of the time interval. Must be within the last 30 days.
End of the time interval, exclusive. Default: current time. Example: with HOUR_1, the interval from 12:00 to 15:00 gives the points 13:00, 14:00 and 15:00.
Length of a time step.
- GRANULARITY_UNSPECIFIED: Not specified.
- GRANULARITY_MINUTE_15: 15 minutes. Allowed for a time interval of up to 7 days.
- GRANULARITY_HOUR_1: 1 hour.
GRANULARITY_UNSPECIFIED, GRANULARITY_MINUTE_15, GRANULARITY_HOUR_1 Price of a time step.
- METHOD_UNSPECIFIED: Not specified.
- METHOD_FIRST_PRICE: First price in the time step.
- METHOD_LAST_PRICE: Last price in the time step.
- METHOD_AVG_PRICE: Mean of the prices in the time step, not weighted by time.
METHOD_UNSPECIFIED, METHOD_FIRST_PRICE, METHOD_LAST_PRICE, METHOD_AVG_PRICE Response
A successful response.
Price series, sorted by region and sku_id.
Show child attributes
Show child attributes
Token for the next page. Empty on the last page.
Time when the prices in the response were taken. If the prices were taken at different times, the field has the earliest time.
Was this page helpful?