List Series
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"
}spot-price
List Series
Lists the spot prices at regular time steps, one series for each SKU. Authentication is not required.
GET
/
billing
/
v1alpha1
/
spot-price
/
list-series
List Series
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
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.
Available options:
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.
Available options:
METHOD_UNSPECIFIED, METHOD_FIRST_PRICE, METHOD_LAST_PRICE, METHOD_AVG_PRICE Response
200 - application/json
A successful response.
Was this page helpful?