Google Cloud Pub/Sub · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Pub/Sub Lite Topic Stats API

4 actions 4 updates phrasing extends openapi/google-cloud-pubsub-topicstats-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Google Cloud Pub/Sub's API. It is a proposal applied on top of the contract, not a document Google Cloud Pub/Sub publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 4

$.info
$.paths['/v1/topicStats/projects/{projectsId}/locations/{locationsId}/topics/{topicsId}:computeHeadCursor'].post
$.paths['/v1/topicStats/projects/{projectsId}/locations/{locationsId}/topics/{topicsId}:computeTimeCursor'].post
$.paths['/v1/topicStats/projects/{projectsId}/locations/{locationsId}/topics/{topicsId}:computeMessageStats'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Pub/Sub Lite Topic Stats API
  version: 1.0.0
extends: openapi/google-cloud-pubsub-topicstats-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-17'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 3
- target: $.paths['/v1/topicStats/projects/{projectsId}/locations/{locationsId}/topics/{topicsId}:computeHeadCursor'].post
  update:
    x-apievangelist-phrasing:
      intent: Get the head cursor of a topic partition
      effect: read
      questions:
      - What is the latest offset in a Pub/Sub Lite topic partition?
      - Is there a cursor that sits at the head of a partition?
      instructions:
      - text: Get the head cursor for partition {partition} of topic {topic} in {project}/{location}.
        slots:
          partition: requestBody.partition
          topic: path.topicsId
          project: path.projectsId
          location: path.locationsId
      - text: Compute the head offset of partition {partition} in {project}/{location}/{topic}.
        slots:
          partition: requestBody.partition
          project: path.projectsId
          location: path.locationsId
          topic: path.topicsId
      method: generated
      generated: '2026-11-17'
- target: $.paths['/v1/topicStats/projects/{projectsId}/locations/{locationsId}/topics/{topicsId}:computeTimeCursor'].post
  update:
    x-apievangelist-phrasing:
      intent: Find the cursor for a publish or event time
      effect: read
      questions:
      - How do I seek a Pub/Sub Lite topic partition to a specific publish time?
      - Can I convert an event time into a cursor?
      instructions:
      - text: Compute the cursor for time {target} in partition {partition} of {project}/{location}/{topic}.
        slots:
          target: requestBody.target
          partition: requestBody.partition
          project: path.projectsId
          location: path.locationsId
          topic: path.topicsId
      - text: Seek partition {partition} of {topic} in {project}/{location} to {target}.
        slots:
          partition: requestBody.partition
          topic: path.topicsId
          project: path.projectsId
          location: path.locationsId
          target: requestBody.target
      method: generated
      generated: '2026-11-17'
- target: $.paths['/v1/topicStats/projects/{projectsId}/locations/{locationsId}/topics/{topicsId}:computeMessageStats'].post
  update:
    x-apievangelist-phrasing:
      intent: Compute message stats for a partition range
      effect: read
      questions:
      - What is the message count and byte size for a range of messages in a partition?
      - Can I get stats for messages between two cursors?
      instructions:
      - text: Compute message stats for partition {partition} of {topic} in {project}/{location} from {start} to {end}.
        slots:
          partition: requestBody.partition
          topic: path.topicsId
          project: path.projectsId
          location: path.locationsId
          start: requestBody.startCursor
          end: requestBody.endCursor
      - text: Get message count and byte size for partition {partition} of {project}/{location}/{topic} between {start} and {end}.
        slots:
          partition: requestBody.partition
          project: path.projectsId
          location: path.locationsId
          topic: path.topicsId
          start: requestBody.startCursor
          end: requestBody.endCursor
      method: generated
      generated: '2026-11-17'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/google-cloud-pubsub-topicstats-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.