Skip to content

FilBeam Stats API

The FilBeam Stats API provides endpoints for querying egress quota and usage statistics.

https://calibration.stats.filbeam.io

The Stats API is publicly accessible and does not require authentication.

Retrieve quota information for a specific data set.

GET /data-set/{dataSetId}
ParameterTypeLocationDescription
dataSetIdstringpathThe data set ID to query
{
"cdnEgressQuota": "1099511627776",
"cacheMissEgressQuota": "549755813888"
}
FieldTypeDescription
cdnEgressQuotastringRemaining CDN egress quota in bytes
cacheMissEgressQuotastringRemaining cache miss egress quota in bytes
CodeDescription
200Success
404Data set not found
405Method not allowed (use GET)
500Internal server error
Terminal window
curl https://calibration.stats.filbeam.io/data-set/12345
{
"cdnEgressQuota": "1099511627776",
"cacheMissEgressQuota": "549755813888"
}

Retrieve aggregated statistics across all data sets for a payer address.

GET /payer/{payerAddress}
ParameterTypeLocationDescription
payerAddressstringpathThe payer’s Ethereum address (0x…)

Note: The address is normalized to lowercase.

{
"totalRequests": "15234",
"cacheMissRequests": "3847",
"totalEgressBytes": "52428800000",
"cacheMissEgressBytes": "13107200000",
"remainingCDNEgressBytes": "1047483648000",
"remainingCacheMissEgressBytes": "523741824000"
}
FieldTypeDescription
totalRequestsstringTotal number of retrieval requests
cacheMissRequestsstringNumber of requests that were cache misses
totalEgressBytesstringTotal bytes served
cacheMissEgressBytesstringBytes served from cache misses
remainingCDNEgressBytesstringRemaining CDN quota across all data sets
remainingCacheMissEgressBytesstringRemaining cache miss quota across all data sets
CodeDescription
200Success
404Payer not found (no data sets)
405Method not allowed (use GET)
500Internal server error
Terminal window
curl https://calibration.stats.filbeam.io/payer/0x1234567890abcdef1234567890abcdef12345678
{
"totalRequests": "15234",
"cacheMissRequests": "3847",
"totalEgressBytes": "52428800000",
"cacheMissEgressBytes": "13107200000",
"remainingCDNEgressBytes": "1047483648000",
"remainingCacheMissEgressBytes": "523741824000"
}