---
title: Quota
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

[Custom Hostnames](https://developers.cloudflare.com/api/python/resources/custom_hostnames)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Quota

##### [Get Custom Hostname Quota](https://developers.cloudflare.com/api/python/resources/custom_hostnames/subresources/quota/methods/get)

custom\_hostnames.quota.get(QuotaGetParams\*\*kwargs) -> [QuotaGetResponse](<https://developers.cloudflare.com/api/python/resources/custom_hostnames#(resource)%20custom_hostnames.quota%20%3E%20(model)%20quota_get_response%20%3E%20(schema)>)

GET/zones/{zone\_id}/custom\_hostnames/quota

##### ModelsExpand Collapse

<details>

<summary>

class QuotaGetResponse: …

</summary>

allocated: int

The allocated custom hostname quota.

formatint64

<a href="#(resource)%20custom_hostnames.quota%20%3E%20(model)%20quota_get_response%20%3E%20(schema)%20%3E%20(property)%20allocated">Link to this property</a>

exceeded: bool

Whether the current usage has exceeded the allocated quota.

<a href="#(resource)%20custom_hostnames.quota%20%3E%20(model)%20quota_get_response%20%3E%20(schema)%20%3E%20(property)%20exceeded">Link to this property</a>

hard\_cap: int

The maximum number of custom hostnames allowed before create requests are rejected.

formatint64

<a href="#(resource)%20custom_hostnames.quota%20%3E%20(model)%20quota_get_response%20%3E%20(schema)%20%3E%20(property)%20hard_cap">Link to this property</a>

used: int

The number of custom hostnames currently in use.

formatint64

<a href="#(resource)%20custom_hostnames.quota%20%3E%20(model)%20quota_get_response%20%3E%20(schema)%20%3E%20(property)%20used">Link to this property</a>

</details>

[Link to this property](<#(resource)%20custom_hostnames.quota%20%3E%20(model)%20quota_get_response%20%3E%20(schema)>)