> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cail.health/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cail.health/_mcp/server.

# Get network capacity stats

GET https://staging.cail.health/v1/providers/stats

Returns aggregate capacity statistics for the operator’s jurisdiction. Includes total counts (open, closed, unknown), recent wait-time reporting coverage, mean wait across reporting providers, the under-pressure count, and the distribution of reporting providers across three pressure bands. Pressure-band thresholds are resolved from the operator override, then the jurisdiction default, then the platform fallback, and surfaced in `pressureBands` so consumers can render dynamic labels even when an org overrides the bands. Counts and means are computed against the same providers + schedules pipeline that backs the list endpoint, so the "open now" total matches what the list shows.

Reference: https://docs.cail.health/api-references/api-reference/curate-your-network/stats

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: cail-api
  version: 1.0.0
paths:
  /v1/providers/stats:
    get:
      operationId: stats
      summary: Get network capacity stats
      description: >-
        Returns aggregate capacity statistics for the operator’s jurisdiction.
        Includes total counts (open, closed, unknown), recent wait-time
        reporting coverage, mean wait across reporting providers, the
        under-pressure count, and the distribution of reporting providers across
        three pressure bands. Pressure-band thresholds are resolved from the
        operator override, then the jurisdiction default, then the platform
        fallback, and surfaced in `pressureBands` so consumers can render
        dynamic labels even when an org overrides the bands. Counts and means
        are computed against the same providers + schedules pipeline that backs
        the list endpoint, so the "open now" total matches what the list shows.
      tags:
        - subpackage_curateYourNetwork
      parameters:
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Network-wide capacity statistics.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderStats'
servers:
  - url: https://staging.cail.health
    description: https://staging.cail.health
components:
  schemas:
    ProviderStatsAvgWaitMinutes:
      type: object
      properties: {}
      description: >-
        Mean of reporting providers’ median wait, in minutes. Null when no
        provider reports.
      title: ProviderStatsAvgWaitMinutes
    ProviderStatsWaitDistribution:
      type: object
      properties:
        under30m:
          type: number
          format: double
          description: >-
            Reporting providers whose median wait is below the low-pressure
            threshold.
        between30And60m:
          type: number
          format: double
          description: >-
            Reporting providers whose median wait is between the low and
            high-pressure thresholds.
        over60m:
          type: number
          format: double
          description: >-
            Reporting providers whose median wait is at or above the
            high-pressure threshold.
        noData:
          type: number
          format: double
          description: Providers in the directory without a recent wait-time report.
      required:
        - under30m
        - between30And60m
        - over60m
        - noData
      title: ProviderStatsWaitDistribution
    ProviderStatsPressureBands:
      type: object
      properties:
        lowMaxMinutes:
          type: number
          format: double
          description: >-
            Upper bound (exclusive) of the low-pressure band, in minutes. A
            median below this counts as low pressure.
        highMinMinutes:
          type: number
          format: double
          description: >-
            Lower bound (inclusive) of the high-pressure band, in minutes. A
            median at or above this counts as high pressure.
      required:
        - lowMaxMinutes
        - highMinMinutes
      title: ProviderStatsPressureBands
    ProviderStats:
      type: object
      properties:
        total:
          type: number
          format: double
          description: Total providers in the operator’s jurisdiction.
        openCount:
          type: number
          format: double
          description: Providers open right now.
        closedCount:
          type: number
          format: double
          description: Providers closed right now.
        unknownCount:
          type: number
          format: double
          description: Providers whose open status cannot be determined from current data.
        reportingCount:
          type: number
          format: double
          description: >-
            Providers with at least one wait-time report in the freshness
            window.
        avgWaitMinutes:
          oneOf:
            - $ref: '#/components/schemas/ProviderStatsAvgWaitMinutes'
            - type: 'null'
          description: >-
            Mean of reporting providers’ median wait, in minutes. Null when no
            provider reports.
        underPressureCount:
          type: number
          format: double
          description: >-
            Reporting providers whose median wait is at or above the
            high-pressure threshold.
        waitDistribution:
          $ref: '#/components/schemas/ProviderStatsWaitDistribution'
          description: >-
            Distribution of reporting providers across the three pressure bands
            plus a no-data bucket.
        pressureBands:
          $ref: '#/components/schemas/ProviderStatsPressureBands'
          description: >-
            Resolved pressure-band thresholds. Sourced from the org override,
            the jurisdiction default, or the platform fallback in that
            precedence.
      required:
        - total
        - openCount
        - closedCount
        - unknownCount
        - reportingCount
        - avgWaitMinutes
        - underPressureCount
        - waitDistribution
        - pressureBands
      title: ProviderStats
  securitySchemes:
    auth0Bearer:
      type: http
      scheme: bearer

```

## Examples



**Response**

```json
{
  "total": 137,
  "openCount": 92,
  "closedCount": 31,
  "unknownCount": 14,
  "reportingCount": 27,
  "avgWaitMinutes": 42,
  "underPressureCount": 5,
  "waitDistribution": {
    "under30m": 14,
    "between30And60m": 8,
    "over60m": 5,
    "noData": 23
  },
  "pressureBands": {
    "lowMaxMinutes": 30,
    "highMinMinutes": 60
  }
}
```

**SDK Code**

```python A mid-sized network with mixed pressure
import requests

url = "https://staging.cail.health/v1/providers/stats"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript A mid-sized network with mixed pressure
const url = 'https://staging.cail.health/v1/providers/stats';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go A mid-sized network with mixed pressure
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://staging.cail.health/v1/providers/stats"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby A mid-sized network with mixed pressure
require 'uri'
require 'net/http'

url = URI("https://staging.cail.health/v1/providers/stats")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java A mid-sized network with mixed pressure
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://staging.cail.health/v1/providers/stats")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php A mid-sized network with mixed pressure
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://staging.cail.health/v1/providers/stats', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp A mid-sized network with mixed pressure
using RestSharp;

var client = new RestClient("https://staging.cail.health/v1/providers/stats");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift A mid-sized network with mixed pressure
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://staging.cail.health/v1/providers/stats")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```