## Get quota and availability `client.speed.availabilities.list(AvailabilityListParamsparams, RequestOptionsoptions?): Availability` **get** `/zones/{zone_id}/speed_api/availabilities` Retrieves quota for all plans, as well as the current zone quota. ### Parameters - `params: AvailabilityListParams` - `zone_id: string` Identifier. ### Returns - `Availability` - `quota?: Quota` - `plan?: string` Cloudflare plan. - `quotasPerPlan?: QuotasPerPlan` The number of tests available per plan. - `value?: Value` Counts per account plan. - `business?: number` - `enterprise?: number` - `free?: number` - `pro?: number` - `remainingSchedules?: number` The number of remaining schedules available. - `remainingTests?: number` The number of remaining tests available. - `scheduleQuotasPerPlan?: ScheduleQuotasPerPlan` The number of schedules available per plan. - `value?: Value` Counts per account plan. - `business?: number` - `enterprise?: number` - `free?: number` - `pro?: number` - `regions?: Array` - `label?: string` - `value?: "asia-east1" | "asia-northeast1" | "asia-northeast2" | 18 more` A test region. - `"asia-east1"` - `"asia-northeast1"` - `"asia-northeast2"` - `"asia-south1"` - `"asia-southeast1"` - `"australia-southeast1"` - `"europe-north1"` - `"europe-southwest1"` - `"europe-west1"` - `"europe-west2"` - `"europe-west3"` - `"europe-west4"` - `"europe-west8"` - `"europe-west9"` - `"me-west1"` - `"southamerica-east1"` - `"us-central1"` - `"us-east1"` - `"us-east4"` - `"us-south1"` - `"us-west1"` - `regionsPerPlan?: RegionsPerPlan` Available regions. - `business?: Array` - `label?: string` - `value?: "asia-east1" | "asia-northeast1" | "asia-northeast2" | 18 more` A test region. - `enterprise?: Array` - `label?: string` - `value?: "asia-east1" | "asia-northeast1" | "asia-northeast2" | 18 more` A test region. - `free?: Array` - `label?: string` - `value?: "asia-east1" | "asia-northeast1" | "asia-northeast2" | 18 more` A test region. - `pro?: Array` - `label?: string` - `value?: "asia-east1" | "asia-northeast1" | "asia-northeast2" | 18 more` A test region. ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const availability = await client.speed.availabilities.list({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353', }); console.log(availability.quota); ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": { "quota": { "plan": "free", "quotasPerPlan": { "value": { "business": 1, "enterprise": 1, "free": 1, "pro": 1 } }, "remainingSchedules": 1, "remainingTests": 30, "scheduleQuotasPerPlan": { "value": { "business": 1, "enterprise": 1, "free": 1, "pro": 1 } } }, "regions": [ { "label": "Iowa, USA", "value": "us-central1" } ], "regionsPerPlan": { "business": [ { "label": "Iowa, USA", "value": "us-central1" } ], "enterprise": [ { "label": "Iowa, USA", "value": "us-central1" } ], "free": [ { "label": "Iowa, USA", "value": "us-central1" } ], "pro": [ { "label": "Iowa, USA", "value": "us-central1" } ] } } } ```