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": [
{
"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>"
}
]
}
}
}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": [
{
"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>"
}
]
}
}
}Authorizations
API Access Key authorization header
Path Parameters
Response
Pricing overview payload.
Number of active custom pricing rows the customer has
Time-limited custom pricing rows that revert to list pricing soon
Show child attributes
Show child attributes
CDN Standard tier price per GB and PoP configuration
Show child attributes
Show child attributes
CDN Volume tier price per GB and PoP configuration
Show child attributes
Show child attributes
Per-region discount applied to the CDN Standard tier
Show child attributes
Show child attributes
Tiered $/GB CDN Volume pricing based on total account traffic
Show child attributes
Show child attributes
Edge and Standard storage pricing per TB per month
Show child attributes
Show child attributes
Optimizer price per zone per month
Show child attributes
Show child attributes
Free zone allowances and extra-zone pricing
Show child attributes
Show child attributes
Bunny Shield tier pricing
Show child attributes
Show child attributes
DRM base and per-license pricing
Show child attributes
Show child attributes
Transcribing price per minute (flat or tiered)
Show child attributes
Show child attributes
Premium encoding price per normalized minute
Show child attributes
Show child attributes
Edge Scripting request and CPU pricing
Show child attributes
Show child attributes
WebSockets price per 1M connection minutes (flat or tiered)
Show child attributes
Show child attributes
BunnyDB (database) pricing for its consumption sub-products
Show child attributes
Show child attributes
Was this page helpful?