PHP Client for Cloudflare API
R2

Metrics

Metrics endpoint reference.

List

Get storage metrics for an account's R2 buckets.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount Identifier.
paramsarrayNo[]Query Parameters.
php
$response = $client->r2()->metrics()->list('ACCOUNT_ID', []);
View this operation on the Cloudflare API Reference
Copyright © 2026