Get prebilling data
curl --request POST \
--url https://api.gcore.com/fastedge/v1/admin/prebilling \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "2026-01-01T00:00:00Z",
"metrics": [
"number_of_calls",
"total_runtime_mms"
],
"service": "FAST_EDGE",
"to": "2026-01-31T23:59:59Z",
"clients": [
141309,
1111
],
"flat": true,
"group_by": [
"client",
"region",
"billing_plan"
],
"networks": [
"gcore"
]
}
'import requests
url = "https://api.gcore.com/fastedge/v1/admin/prebilling"
payload = {
"from": "2026-01-01T00:00:00Z",
"metrics": ["number_of_calls", "total_runtime_mms"],
"service": "FAST_EDGE",
"to": "2026-01-31T23:59:59Z",
"clients": [141309, 1111],
"flat": True,
"group_by": ["client", "region", "billing_plan"],
"networks": ["gcore"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
from: '2026-01-01T00:00:00Z',
metrics: ['number_of_calls', 'total_runtime_mms'],
service: 'FAST_EDGE',
to: '2026-01-31T23:59:59Z',
clients: [141309, 1111],
flat: true,
group_by: ['client', 'region', 'billing_plan'],
networks: ['gcore']
})
};
fetch('https://api.gcore.com/fastedge/v1/admin/prebilling', 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.gcore.com/fastedge/v1/admin/prebilling",
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([
'from' => '2026-01-01T00:00:00Z',
'metrics' => [
'number_of_calls',
'total_runtime_mms'
],
'service' => 'FAST_EDGE',
'to' => '2026-01-31T23:59:59Z',
'clients' => [
141309,
1111
],
'flat' => true,
'group_by' => [
'client',
'region',
'billing_plan'
],
'networks' => [
'gcore'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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.gcore.com/fastedge/v1/admin/prebilling"
payload := strings.NewReader("{\n \"from\": \"2026-01-01T00:00:00Z\",\n \"metrics\": [\n \"number_of_calls\",\n \"total_runtime_mms\"\n ],\n \"service\": \"FAST_EDGE\",\n \"to\": \"2026-01-31T23:59:59Z\",\n \"clients\": [\n 141309,\n 1111\n ],\n \"flat\": true,\n \"group_by\": [\n \"client\",\n \"region\",\n \"billing_plan\"\n ],\n \"networks\": [\n \"gcore\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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.gcore.com/fastedge/v1/admin/prebilling")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"2026-01-01T00:00:00Z\",\n \"metrics\": [\n \"number_of_calls\",\n \"total_runtime_mms\"\n ],\n \"service\": \"FAST_EDGE\",\n \"to\": \"2026-01-31T23:59:59Z\",\n \"clients\": [\n 141309,\n 1111\n ],\n \"flat\": true,\n \"group_by\": [\n \"client\",\n \"region\",\n \"billing_plan\"\n ],\n \"networks\": [\n \"gcore\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/fastedge/v1/admin/prebilling")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": \"2026-01-01T00:00:00Z\",\n \"metrics\": [\n \"number_of_calls\",\n \"total_runtime_mms\"\n ],\n \"service\": \"FAST_EDGE\",\n \"to\": \"2026-01-31T23:59:59Z\",\n \"clients\": [\n 141309,\n 1111\n ],\n \"flat\": true,\n \"group_by\": [\n \"client\",\n \"region\",\n \"billing_plan\"\n ],\n \"networks\": [\n \"gcore\"\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"metrics": {
"number_of_calls": 123,
"exec_time": 123,
"total_runtime_mms": 123,
"kv_read_count": 123,
"kv_write_size": 123,
"kv_storage_size": 123,
"kv_del_count": 123
},
"client": 123,
"billing_plan": "<string>",
"region": "<string>"
}
]{
"error": "<string>"
}{
"error": "<string>"
}Billing
Get prebilling data
POST
/
fastedge
/
v1
/
admin
/
prebilling
Get prebilling data
curl --request POST \
--url https://api.gcore.com/fastedge/v1/admin/prebilling \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "2026-01-01T00:00:00Z",
"metrics": [
"number_of_calls",
"total_runtime_mms"
],
"service": "FAST_EDGE",
"to": "2026-01-31T23:59:59Z",
"clients": [
141309,
1111
],
"flat": true,
"group_by": [
"client",
"region",
"billing_plan"
],
"networks": [
"gcore"
]
}
'import requests
url = "https://api.gcore.com/fastedge/v1/admin/prebilling"
payload = {
"from": "2026-01-01T00:00:00Z",
"metrics": ["number_of_calls", "total_runtime_mms"],
"service": "FAST_EDGE",
"to": "2026-01-31T23:59:59Z",
"clients": [141309, 1111],
"flat": True,
"group_by": ["client", "region", "billing_plan"],
"networks": ["gcore"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
from: '2026-01-01T00:00:00Z',
metrics: ['number_of_calls', 'total_runtime_mms'],
service: 'FAST_EDGE',
to: '2026-01-31T23:59:59Z',
clients: [141309, 1111],
flat: true,
group_by: ['client', 'region', 'billing_plan'],
networks: ['gcore']
})
};
fetch('https://api.gcore.com/fastedge/v1/admin/prebilling', 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.gcore.com/fastedge/v1/admin/prebilling",
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([
'from' => '2026-01-01T00:00:00Z',
'metrics' => [
'number_of_calls',
'total_runtime_mms'
],
'service' => 'FAST_EDGE',
'to' => '2026-01-31T23:59:59Z',
'clients' => [
141309,
1111
],
'flat' => true,
'group_by' => [
'client',
'region',
'billing_plan'
],
'networks' => [
'gcore'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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.gcore.com/fastedge/v1/admin/prebilling"
payload := strings.NewReader("{\n \"from\": \"2026-01-01T00:00:00Z\",\n \"metrics\": [\n \"number_of_calls\",\n \"total_runtime_mms\"\n ],\n \"service\": \"FAST_EDGE\",\n \"to\": \"2026-01-31T23:59:59Z\",\n \"clients\": [\n 141309,\n 1111\n ],\n \"flat\": true,\n \"group_by\": [\n \"client\",\n \"region\",\n \"billing_plan\"\n ],\n \"networks\": [\n \"gcore\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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.gcore.com/fastedge/v1/admin/prebilling")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"2026-01-01T00:00:00Z\",\n \"metrics\": [\n \"number_of_calls\",\n \"total_runtime_mms\"\n ],\n \"service\": \"FAST_EDGE\",\n \"to\": \"2026-01-31T23:59:59Z\",\n \"clients\": [\n 141309,\n 1111\n ],\n \"flat\": true,\n \"group_by\": [\n \"client\",\n \"region\",\n \"billing_plan\"\n ],\n \"networks\": [\n \"gcore\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/fastedge/v1/admin/prebilling")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": \"2026-01-01T00:00:00Z\",\n \"metrics\": [\n \"number_of_calls\",\n \"total_runtime_mms\"\n ],\n \"service\": \"FAST_EDGE\",\n \"to\": \"2026-01-31T23:59:59Z\",\n \"clients\": [\n 141309,\n 1111\n ],\n \"flat\": true,\n \"group_by\": [\n \"client\",\n \"region\",\n \"billing_plan\"\n ],\n \"networks\": [\n \"gcore\"\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"metrics": {
"number_of_calls": 123,
"exec_time": 123,
"total_runtime_mms": 123,
"kv_read_count": 123,
"kv_write_size": 123,
"kv_storage_size": 123,
"kv_del_count": 123
},
"client": 123,
"billing_plan": "<string>",
"region": "<string>"
}
]{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234$abcdef
Body
application/json
Prebilling request
Start date-time in RFC3339 format
Example:
"2026-01-01T00:00:00Z"
Available options:
number_of_calls, total_runtime_mms, exec_time, kv_storage_size, kv_read_count, kv_write_size, kv_del_count Example:
["number_of_calls", "total_runtime_mms"]
Must containt FAST_EDGE value
Example:
"FAST_EDGE"
End date-time in RFC3339 format
Example:
"2026-01-31T23:59:59Z"
Example:
[141309, 1111]
This field is not actually used, it is here only to comply with Billing API. If specified, it must be set to true.
Available options:
client, region, billing_plan Example:
["client", "region", "billing_plan"]
Example:
["gcore"]
Was this page helpful?
⌘I