Get Customer Pricing
curl --request GET \
--url https://api.bunny.net/partner/customer/{customerUserId}/pricing \
--header 'AccessKey: <api-key>'import requests
url = "https://api.bunny.net/partner/customer/{customerUserId}/pricing"
headers = {"AccessKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {AccessKey: '<api-key>'}};
fetch('https://api.bunny.net/partner/customer/{customerUserId}/pricing', 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.bunny.net/partner/customer/{customerUserId}/pricing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"AccessKey: <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"
"net/http"
"io"
)
func main() {
url := "https://api.bunny.net/partner/customer/{customerUserId}/pricing"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("AccessKey", "<api-key>")
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.bunny.net/partner/customer/{customerUserId}/pricing")
.header("AccessKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bunny.net/partner/customer/{customerUserId}/pricing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["AccessKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"CustomOverrideCount": 123,
"ExpiringSoon": [
{
"ProductId": 1000,
"ProductName": "<string>",
"Label": "<string>",
"PricePerUnit": 123,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
],
"ValidTo": "2023-11-07T05:31:56Z",
"DaysLeft": 123
}
],
"CdnStandardTier": {
"PricePerGb": 123,
"DefaultPricePerGb": 123,
"IsOverridden": true,
"EnabledPops": "<string>",
"DisabledPops": "<string>",
"ExtraPops": "<string>"
},
"CdnVolumeTier": {
"PricePerGb": 123,
"DefaultPricePerGb": 123,
"IsOverridden": true,
"EnabledPops": "<string>",
"DisabledPops": "<string>",
"ExtraPops": "<string>"
},
"CdnStandardTierDiscount": {
"NorthAmericaEuropePercent": 123,
"AsiaOceaniaPercent": 123,
"SouthAmericaPercent": 123,
"AfricaPercent": 123
},
"CdnVolumeTierPricing": {
"Under100TbPerGb": 123,
"From100TbPerGb": 123,
"From500TbPerGb": 123,
"From1000TbPerGb": 123,
"From2000TbPerGb": 123
},
"Storage": {
"DiscountPercent": 123,
"EdgePerTbMonth": 123,
"DefaultEdgePerTbMonth": 123,
"EdgeIsOverridden": true,
"StandardPerTbMonth": 123,
"DefaultStandardPerTbMonth": 123,
"StandardIsOverridden": true
},
"Optimizer": {
"PerZoneMonth": 123,
"DefaultPerZoneMonth": 123,
"IsOverridden": true
},
"ExtraZones": {
"FreePullZones": 123,
"ExtraPullZonePrice": 123,
"FreeStorageZones": 123,
"ExtraStorageZonePrice": 123,
"FreeDnsZones": 123,
"ExtraDnsZonePrice": 123,
"FreeVideoLibraries": 123,
"ExtraVideoLibraryPrice": 123
},
"BunnyShield": {
"Basic": {
"MonthlyCost": 123,
"DefaultMonthlyCost": 123,
"OveragesCostPerMillion": 123,
"DefaultOveragesCostPerMillion": 123,
"IncludedRequests": 123
},
"Advanced": {
"MonthlyCost": 123,
"DefaultMonthlyCost": 123,
"OveragesCostPerMillion": 123,
"DefaultOveragesCostPerMillion": 123,
"IncludedRequests": 123
},
"Business": {
"MonthlyCost": 123,
"DefaultMonthlyCost": 123,
"OveragesCostPerMillion": 123,
"DefaultOveragesCostPerMillion": 123,
"IncludedRequests": 123
},
"Enterprise": {
"MonthlyCost": 123,
"DefaultMonthlyCost": 123,
"OveragesCostPerMillion": 123,
"DefaultOveragesCostPerMillion": 123,
"IncludedRequests": 123
}
},
"Drm": {
"BaseFeePerLibraryMonth": 123,
"DefaultBaseFeePerLibraryMonth": 123,
"LicenseCost": 123,
"DefaultLicenseCost": 123
},
"Transcribing": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"PremiumEncoding": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"EdgeScripting": {
"RequestsPerMillion": 123,
"DefaultRequestsPerMillion": 123,
"RequestsIsOverridden": true,
"CpuPer1000Seconds": 123,
"DefaultCpuPer1000Seconds": 123,
"CpuIsOverridden": true
},
"WebSockets": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"BunnyDb": {
"ColdStorage": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"ActiveStorage": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"RowReads": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"RowWrites": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
}
}
}Pricing
Get Customer Pricing
Get the full pricing overview for a customer: effective prices versus list prices, custom overrides, and overrides expiring soon.
GET
/
partner
/
customer
/
{customerUserId}
/
pricing
Get Customer Pricing
curl --request GET \
--url https://api.bunny.net/partner/customer/{customerUserId}/pricing \
--header 'AccessKey: <api-key>'import requests
url = "https://api.bunny.net/partner/customer/{customerUserId}/pricing"
headers = {"AccessKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {AccessKey: '<api-key>'}};
fetch('https://api.bunny.net/partner/customer/{customerUserId}/pricing', 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.bunny.net/partner/customer/{customerUserId}/pricing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"AccessKey: <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"
"net/http"
"io"
)
func main() {
url := "https://api.bunny.net/partner/customer/{customerUserId}/pricing"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("AccessKey", "<api-key>")
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.bunny.net/partner/customer/{customerUserId}/pricing")
.header("AccessKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bunny.net/partner/customer/{customerUserId}/pricing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["AccessKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"CustomOverrideCount": 123,
"ExpiringSoon": [
{
"ProductId": 1000,
"ProductName": "<string>",
"Label": "<string>",
"PricePerUnit": 123,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
],
"ValidTo": "2023-11-07T05:31:56Z",
"DaysLeft": 123
}
],
"CdnStandardTier": {
"PricePerGb": 123,
"DefaultPricePerGb": 123,
"IsOverridden": true,
"EnabledPops": "<string>",
"DisabledPops": "<string>",
"ExtraPops": "<string>"
},
"CdnVolumeTier": {
"PricePerGb": 123,
"DefaultPricePerGb": 123,
"IsOverridden": true,
"EnabledPops": "<string>",
"DisabledPops": "<string>",
"ExtraPops": "<string>"
},
"CdnStandardTierDiscount": {
"NorthAmericaEuropePercent": 123,
"AsiaOceaniaPercent": 123,
"SouthAmericaPercent": 123,
"AfricaPercent": 123
},
"CdnVolumeTierPricing": {
"Under100TbPerGb": 123,
"From100TbPerGb": 123,
"From500TbPerGb": 123,
"From1000TbPerGb": 123,
"From2000TbPerGb": 123
},
"Storage": {
"DiscountPercent": 123,
"EdgePerTbMonth": 123,
"DefaultEdgePerTbMonth": 123,
"EdgeIsOverridden": true,
"StandardPerTbMonth": 123,
"DefaultStandardPerTbMonth": 123,
"StandardIsOverridden": true
},
"Optimizer": {
"PerZoneMonth": 123,
"DefaultPerZoneMonth": 123,
"IsOverridden": true
},
"ExtraZones": {
"FreePullZones": 123,
"ExtraPullZonePrice": 123,
"FreeStorageZones": 123,
"ExtraStorageZonePrice": 123,
"FreeDnsZones": 123,
"ExtraDnsZonePrice": 123,
"FreeVideoLibraries": 123,
"ExtraVideoLibraryPrice": 123
},
"BunnyShield": {
"Basic": {
"MonthlyCost": 123,
"DefaultMonthlyCost": 123,
"OveragesCostPerMillion": 123,
"DefaultOveragesCostPerMillion": 123,
"IncludedRequests": 123
},
"Advanced": {
"MonthlyCost": 123,
"DefaultMonthlyCost": 123,
"OveragesCostPerMillion": 123,
"DefaultOveragesCostPerMillion": 123,
"IncludedRequests": 123
},
"Business": {
"MonthlyCost": 123,
"DefaultMonthlyCost": 123,
"OveragesCostPerMillion": 123,
"DefaultOveragesCostPerMillion": 123,
"IncludedRequests": 123
},
"Enterprise": {
"MonthlyCost": 123,
"DefaultMonthlyCost": 123,
"OveragesCostPerMillion": 123,
"DefaultOveragesCostPerMillion": 123,
"IncludedRequests": 123
}
},
"Drm": {
"BaseFeePerLibraryMonth": 123,
"DefaultBaseFeePerLibraryMonth": 123,
"LicenseCost": 123,
"DefaultLicenseCost": 123
},
"Transcribing": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"PremiumEncoding": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"EdgeScripting": {
"RequestsPerMillion": 123,
"DefaultRequestsPerMillion": 123,
"RequestsIsOverridden": true,
"CpuPer1000Seconds": 123,
"DefaultCpuPer1000Seconds": 123,
"CpuIsOverridden": true
},
"WebSockets": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"BunnyDb": {
"ColdStorage": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"ActiveStorage": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"RowReads": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
},
"RowWrites": {
"PricePerUnit": 123,
"DefaultPricePerUnit": 123,
"Unit": "<string>",
"IsOverridden": true,
"Tiers": [
{
"ThresholdFrom": 123,
"ThresholdTo": 123,
"PricePerUnit": 123,
"TierOrder": 123,
"Description": "<string>"
}
]
}
}
}Scopes
Response
Pricing overview payload.