---
title: "Get the Combined Pass/Fail Stats for an API Call for a Time Range"
method: GET
path: "/calls/{id}/stats/passfail_total"
---

# Get the Combined Pass/Fail Stats for an API Call for a Time Range

`GET /calls/{id}/stats/passfail_total`

## Request

- Base URL: `https://client.apimetrics.io/api/2`
- URL: `https://client.apimetrics.io/api/2/calls/{id}/stats/passfail_total`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/apicontext/apis/api-settings/docs/calls/:id/stats/passfail_total/get.ts> (a function with typed inputs; its response is checked against the schema)

Use this API to get the pass/fail stats for a specific range of dates.

## Path parameters

- `id` string, required

## Query parameters

- `location_id` string
- `start` string, date, required
- `end` string, date, required

## Response `200`

200

- object
  - `meta` object
    - `call_id` string
    - `max_time` string
    - `min_time` string
    - `location_id` string
    - `name` string
  - `stat` object
    - `total` integer
    - `PASS` object
      - `total` integer
      - `COMPLETE` integer
    - `WARNING` object
      - `HTTP_CLIENT_ERROR` integer
      - `total` integer
    - `FAIL` object
      - `total` integer
      - `CONNECTION_ERROR` integer

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/apicontext/apis/api-settings.md) - [All operations](https://skmtc.dev/apicontext/apis/api-settings/llms.txt) - [OpenAPI document](https://skmtc.dev/apicontext/apis/api-settings/revisions/2e9a62324e82?raw)
