> 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 current wait time for a location

GET https://staging.cail.health/v1/wait-times/{locationId}

Returns the current wait-time aggregate for a location. Members see a lean shape with median, staleness, and the timestamp of the latest report. Operators see the lean shape extended with the 25th and 75th percentile in minutes, a trend direction across the configured trend window, and a bucketed count of submissions in the last 24 hours. Bucketed volume prevents precise volume signals from leaking to operators who do not own the location. Returns nulls and `isStale: false` when no reports are available for the location yet.

Reference: https://docs.cail.health/api-references/api-reference/check-availability/get-for-location

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: cail-api
  version: 1.0.0
paths:
  /v1/wait-times/{locationId}:
    get:
      operationId: get-for-location
      summary: Get current wait time for a location
      description: >-
        Returns the current wait-time aggregate for a location. Members see a
        lean shape with median, staleness, and the timestamp of the latest
        report. Operators see the lean shape extended with the 25th and 75th
        percentile in minutes, a trend direction across the configured trend
        window, and a bucketed count of submissions in the last 24 hours.
        Bucketed volume prevents precise volume signals from leaking to
        operators who do not own the location. Returns nulls and `isStale:
        false` when no reports are available for the location yet.
      tags:
        - subpackage_checkAvailability
      parameters:
        - name: locationId
          in: path
          description: Stable identifier of the location.
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            Member view of the location’s wait time. Operator view with
            percentiles and trend.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Check
                  availability_getForLocation_Response_200
servers:
  - url: https://staging.cail.health
    description: https://staging.cail.health
components:
  schemas:
    MemberWaitTimeForLocationMedianMinutes:
      type: object
      properties: {}
      description: >-
        Median wait time across recent non-stale reports, in minutes. Null when
        no reports are available.
      title: MemberWaitTimeForLocationMedianMinutes
    MemberWaitTimeForLocationNewestReportAt:
      type: object
      properties: {}
      description: >-
        ISO 8601 timestamp of the most recent contributing report. Null when no
        reports exist.
      title: MemberWaitTimeForLocationNewestReportAt
    MemberWaitTimeForLocation:
      type: object
      properties:
        locationId:
          type: string
          description: Stable identifier of the location.
        medianMinutes:
          oneOf:
            - $ref: '#/components/schemas/MemberWaitTimeForLocationMedianMinutes'
            - type: 'null'
          description: >-
            Median wait time across recent non-stale reports, in minutes. Null
            when no reports are available.
        isStale:
          type: boolean
          description: >-
            True when the most recent contributing report is older than the
            configured freshness window.
        newestReportAt:
          oneOf:
            - $ref: '#/components/schemas/MemberWaitTimeForLocationNewestReportAt'
            - type: 'null'
          description: >-
            ISO 8601 timestamp of the most recent contributing report. Null when
            no reports exist.
      required:
        - locationId
        - medianMinutes
        - isStale
        - newestReportAt
      title: MemberWaitTimeForLocation
    OperatorWaitTimeForLocationMedianMinutes:
      type: object
      properties: {}
      description: >-
        Median wait time across recent non-stale reports, in minutes. Null when
        no reports are available.
      title: OperatorWaitTimeForLocationMedianMinutes
    OperatorWaitTimeForLocationNewestReportAt:
      type: object
      properties: {}
      description: >-
        ISO 8601 timestamp of the most recent contributing report. Null when no
        reports exist.
      title: OperatorWaitTimeForLocationNewestReportAt
    OperatorWaitTimeForLocationTrendingDirection:
      type: string
      enum:
        - up
        - down
        - stable
      description: >-
        Trend direction of the median over the configured trend window. Null
        when fewer than five reports back the aggregate.
      title: OperatorWaitTimeForLocationTrendingDirection
    OperatorWaitTimeForLocationSubmissionVolume24H:
      type: string
      enum:
        - '0'
        - 1-5
        - 6-10
        - 11-25
        - 25+
      description: >-
        Bucketed count of reports submitted in the last 24 hours. Counts are
        bucketed (0, 1-5, 6-10, 11-25, 25+) to avoid exposing precise volume
        signals.
      title: OperatorWaitTimeForLocationSubmissionVolume24H
    OperatorWaitTimeForLocation:
      type: object
      properties:
        locationId:
          type: string
          description: Stable identifier of the location.
        medianMinutes:
          oneOf:
            - $ref: '#/components/schemas/OperatorWaitTimeForLocationMedianMinutes'
            - type: 'null'
          description: >-
            Median wait time across recent non-stale reports, in minutes. Null
            when no reports are available.
        isStale:
          type: boolean
          description: >-
            True when the most recent contributing report is older than the
            configured freshness window.
        newestReportAt:
          oneOf:
            - $ref: '#/components/schemas/OperatorWaitTimeForLocationNewestReportAt'
            - type: 'null'
          description: >-
            ISO 8601 timestamp of the most recent contributing report. Null when
            no reports exist.
        reportCount:
          type: number
          format: double
          description: Total reports contributing to the aggregate.
        p25Minutes:
          type: number
          format: double
          description: 25th-percentile wait time in minutes, rounded to the nearest 5.
        p75Minutes:
          type: number
          format: double
          description: 75th-percentile wait time in minutes, rounded to the nearest 5.
        trendingDirection:
          oneOf:
            - $ref: >-
                #/components/schemas/OperatorWaitTimeForLocationTrendingDirection
            - type: 'null'
          description: >-
            Trend direction of the median over the configured trend window. Null
            when fewer than five reports back the aggregate.
        submissionVolume24h:
          $ref: '#/components/schemas/OperatorWaitTimeForLocationSubmissionVolume24H'
          description: >-
            Bucketed count of reports submitted in the last 24 hours. Counts are
            bucketed (0, 1-5, 6-10, 11-25, 25+) to avoid exposing precise volume
            signals.
      required:
        - locationId
        - medianMinutes
        - isStale
        - newestReportAt
        - reportCount
        - p25Minutes
        - p75Minutes
        - trendingDirection
        - submissionVolume24h
      title: OperatorWaitTimeForLocation
    Check availability_getForLocation_Response_200:
      oneOf:
        - $ref: '#/components/schemas/MemberWaitTimeForLocation'
        - $ref: '#/components/schemas/OperatorWaitTimeForLocation'
      title: Check availability_getForLocation_Response_200
  securitySchemes:
    firebaseBearer:
      type: http
      scheme: bearer
    auth0Bearer:
      type: http
      scheme: bearer

```

## Examples

### A 22 minute wait reported a few minutes ago



**Response**

```json
{
  "locationId": "b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b",
  "medianMinutes": 22,
  "isStale": false,
  "newestReportAt": "2026-05-13T13:55:00.000Z"
}
```

**SDK Code**

```python A 22 minute wait reported a few minutes ago
import requests

url = "https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b"

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

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

print(response.json())
```

```javascript A 22 minute wait reported a few minutes ago
const url = 'https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b';
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 22 minute wait reported a few minutes ago
package main

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

func main() {

	url := "https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b"

	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 22 minute wait reported a few minutes ago
require 'uri'
require 'net/http'

url = URI("https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b")

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 22 minute wait reported a few minutes ago
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php A 22 minute wait reported a few minutes ago
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp A 22 minute wait reported a few minutes ago
using RestSharp;

var client = new RestClient("https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift A 22 minute wait reported a few minutes ago
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b")! 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()
```

### A location where waits are trending up



**Response**

```json
{
  "locationId": "b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b",
  "medianMinutes": 28,
  "isStale": false,
  "newestReportAt": "2026-05-13T14:11:00.000Z",
  "reportCount": 28,
  "p25Minutes": 20,
  "p75Minutes": 40,
  "trendingDirection": "up",
  "submissionVolume24h": "11-25"
}
```

**SDK Code**

```python A location where waits are trending up
import requests

url = "https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b"

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

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

print(response.json())
```

```javascript A location where waits are trending up
const url = 'https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b';
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 location where waits are trending up
package main

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

func main() {

	url := "https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b"

	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 location where waits are trending up
require 'uri'
require 'net/http'

url = URI("https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b")

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 location where waits are trending up
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php A location where waits are trending up
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp A location where waits are trending up
using RestSharp;

var client = new RestClient("https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift A location where waits are trending up
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://staging.cail.health/v1/wait-times/b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b")! 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()
```