Get Pages usage
import requests
url = "https://platform.ankra.app/api/v1/org/pages/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/pages/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/pages/usage \
--header 'Authorization: Bearer <token>'{
"sites_used": 123,
"sites_limit": 123,
"stored_bytes_used": 123,
"stored_bytes_limit": 123,
"deployment_bytes_limit": 123,
"transfer_month": "2023-11-07T05:31:56Z",
"transfer_bytes": 123
}Pages
Get Pages usage
Answers what the organisation holds in Ankra Pages against its limits - live sites and stored bytes - and the bytes its sites served this month. Needs applications.read. The figures are read from a read replica, so they can trail a change by its replication delay.
GET
/
api
/
v1
/
org
/
pages
/
usage
Get Pages usage
import requests
url = "https://platform.ankra.app/api/v1/org/pages/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/pages/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/pages/usage \
--header 'Authorization: Bearer <token>'{
"sites_used": 123,
"sites_limit": 123,
"stored_bytes_used": 123,
"stored_bytes_limit": 123,
"deployment_bytes_limit": 123,
"transfer_month": "2023-11-07T05:31:56Z",
"transfer_bytes": 123
}Authorizations
Response
The organisation's Pages usage and limits.
An organisation's Ankra Pages usage against its limits.
Bytes the organisation's sites served since transfer_month, as the edges have reported them so far. Null when no edge can report transfer: then it is not known. It is a lower bound: an edge reports about once a minute, and bytes an edge has not reported yet, or could not report, are not in it.