PHP Client for Cloudflare API
Client Reference

Rate Limits

Rate Limits endpoint reference.

List

List, search, sort, and filter a zone's rate limits.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
paramsarrayNo[]Query Parameters.
php
$response = $client->rateLimits()->list('ZONE_ID', []);
View this operation on the Cloudflare API Reference

Get

Get a single rate limit.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
rateLimitIdstringYesRate Limit Identifier.
php
$response = $client->rateLimits()->get('ZONE_ID', 'RATE_LIMIT_ID');
View this operation on the Cloudflare API Reference

Create

Create a new rate limit for a zone.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
valuesarrayYesValues to set on the rate limit, e.g. `threshold`, `period`, `match`, `action`.
php
$response = $client->rateLimits()->create('ZONE_ID', []);
View this operation on the Cloudflare API Reference

Update

Update an existing rate limit for a zone.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
rateLimitIdstringYesRate Limit Identifier.
valuesarrayYesValues to set on the rate limit, e.g. `threshold`, `period`, `match`, `action`.
php
$response = $client->rateLimits()->update('ZONE_ID', 'RATE_LIMIT_ID', []);
View this operation on the Cloudflare API Reference

Delete

Delete a rate limit for a zone.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
rateLimitIdstringYesRate Limit Identifier.
php
$response = $client->rateLimits()->delete('ZONE_ID', 'RATE_LIMIT_ID');
View this operation on the Cloudflare API Reference
Copyright © 2026