---
title: "Count Tickets in Views"
method: GET
path: "/api/v2/views/count_many"
tags: ["Views"]
---

# Count Tickets in Views

`GET /api/v2/views/count_many`

Returns the ticket count of each view in a list of views. Accepts up to 20 view ids per request. For the ticket count of a single view, see [Count Tickets in View](#count-tickets-in-view).

Only returns values for personal and shared views accessible to the user performing the request.

This endpoint is rate limited to 6 requests every 5 minutes.

#### Allowed For

* Agents

## Query parameters

- `ids` string, required

## Response `200`

Success response

- ViewCountsResponse
  - `view_counts` ViewCountObject[]
    - `active` boolean — Only active views if true, inactive views if false, all views if null.
    - `fresh` boolean — false if the cached data is stale and the system is still loading and caching new data
    - `pretty` string — A pretty-printed text approximation of the view count
    - `url` string — The API url of the count
    - `value` integer, nullable — The cached number of tickets in the view. Can also be null if the system is loading and caching new data. Not to be confused with 0 tickets
    - `view_id` integer — The id of the view

---

[API](https://skmtc.net/botbrains-io/apis/support-api.md) · [All operations](https://skmtc.net/botbrains-io/apis/support-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/botbrains-io/support-api/versions/d53eac07ba68/schema)
