# Google Cloud Pub/Sub Topic Stats API

**Canonical:** https://apis.io/apis/google-cloud-pubsub/google-cloud-pubsub-topicstats-api/  
**Provider:** Google Cloud Pub/Sub — https://apis.io/providers/google-cloud-pubsub/  
**Base URL:** https://pubsublite.googleapis.com  
**Documentation:** https://cloud.google.com/pubsub/docs

Google Cloud Pub/Sub Topic Stats API is one of 4 APIs that [Google Cloud Pub/Sub](https://apis.io/providers/google-cloud-pubsub/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification. This API exposes 6 JSON Schema definitions. Tagged areas include TopicStats. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, and 6 JSON Schemas.

The TopicStats API from Google Cloud Pub/Sub — 3 operation(s) for topicstats.

## Operations (3)

| Method | Path | Summary |
|---|---|---|
| POST | `/v1/topicStats/projects/{projectsId}/locations/{locationsId}/topics/{topicsId}:computeHeadCursor` | Compute head cursor topics |
| POST | `/v1/topicStats/projects/{projectsId}/locations/{locationsId}/topics/{topicsId}:computeTimeCursor` | Compute time cursor topics |
| POST | `/v1/topicStats/projects/{projectsId}/locations/{locationsId}/topics/{topicsId}:computeMessageStats` | Compute message stats topics |

## Machine-readable artifacts (9)

- **OpenAPI** — https://artifacts.apis.io/google-cloud-pubsub/openapi/google-cloud-pubsub-topicstats-api-openapi.yml
- **Documentation** — https://cloud.google.com/pubsub/docs/reference/rest
- **AsyncAPI** — https://artifacts.apis.io/google-cloud-pubsub/asyncapi/google-cloud-pubsub-asyncapi.yml
- **JSONSchema** — https://artifacts.apis.io/google-cloud-pubsub/json-schema/google-cloud-pubsub-compute-message-stats-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/google-cloud-pubsub/json-schema/google-cloud-pubsub-compute-message-stats-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/google-cloud-pubsub/json-schema/google-cloud-pubsub-compute-time-cursor-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/google-cloud-pubsub/json-schema/google-cloud-pubsub-compute-time-cursor-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/google-cloud-pubsub/json-schema/google-cloud-pubsub-compute-head-cursor-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/google-cloud-pubsub/json-schema/google-cloud-pubsub-compute-head-cursor-response-schema.json

## Other Google Cloud Pub/Sub APIs (3)

- [Google Cloud Pub/Sub Admin API](https://apis.io/apis/google-cloud-pubsub/google-cloud-pubsub-admin-api/)
- [Google Cloud Pub/Sub Cursor API](https://apis.io/apis/google-cloud-pubsub/google-cloud-pubsub-cursor-api/)
- [Google Cloud Pub/Sub Projects API](https://apis.io/apis/google-cloud-pubsub/google-cloud-pubsub-projects-api/)

## Tags

TopicStats

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/google-cloud-pubsub` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/google-cloud-pubsub/google-cloud-pubsub-topicstats-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/google-cloud-pubsub/.
