Open Publica Corpus API

Coverage and production figures.

GitHub OpenAPI

Operations 4

GET /v1 Route discovery index #
GET /v1/openapi.json This OpenAPI document #
GET /v1/stats Corpus totals #
GET /v1/operations What the pipeline produced over the last 30 complete UTC days #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/openpublica-com:openpublica-com-corpus-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

openpublica-com-corpus-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenPublica Corpus API
  version: 1.0.0
  summary: Search US local-government meetings and adopted planning documents.
  description: 'Public, unauthenticated GET routes over stored local-government meetings and documents. Successful responses use {data, meta}, except the raw Markdown plan download and this document. Coverage, source availability and recording completeness vary. LLM clients may use https://api.openpublica.com/mcp. Internal CloudWatch request logs include raw source IP and user agent; coarse usage metrics are aggregates. Send a descriptive User-Agent and Accept-Encoding: gzip. See the repository API/search/visibility guides for evidence and release limits.'
  contact:
    name: OpenPublica
    url: https://www.openpublica.com
servers:
- url: https://api.openpublica.com
  description: Production
tags:
- name: Corpus
  description: Coverage and production figures.
paths:
  /v1:
    get:
      operationId: getIndex
      tags:
      - Corpus
      summary: Route discovery index
      description: Lists every v1 route. `GET /v1/openapi.json` returns this document.
      responses:
        '200':
          description: The route index
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - meta
                properties:
                  data:
                    type: object
                    properties:
                      version:
                        type: string
                      routes:
                        type: array
                        items:
                          type: string
                  meta:
                    type: object
                    additionalProperties: true
  /v1/openapi.json:
    get:
      operationId: getOpenapi
      tags:
      - Corpus
      summary: This OpenAPI document
      description: Served raw — a deliberate exception to the {data, meta} envelope, because tooling expects a bare OpenAPI document.
      responses:
        '200':
          description: The OpenAPI 3.1 document
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /v1/stats:
    get:
      operationId: getCorpusStats
      tags:
      - Corpus
      summary: Corpus totals
      responses:
        '200':
          description: Totals
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - meta
                properties:
                  data:
                    $ref: '#/components/schemas/CorpusStats'
                  meta:
                    type: object
                    additionalProperties: true
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
  /v1/operations:
    get:
      operationId: getOperations
      tags:
      - Corpus
      summary: What the pipeline produced over the last 30 complete UTC days
      description: 'Throughput only: meetings and documents published in the window, and the minutes of meeting behind them. Read `minutes` with `meetings_measured` beside it — the corpus predates the duration field, so it is a total over that many meetings and not necessarily over all of them.'
      responses:
        '200':
          description: Production figures
          headers:
            Cache-Control:
              schema:
                type: string
              description: public, max-age=300, stale-while-revalidate=3600
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - meta
                properties:
                  data:
                    $ref: '#/components/schemas/Operations'
                  meta:
                    type: object
                    additionalProperties: true
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    Window:
      type: object
      properties:
        start:
          type: string
          format: date
        end:
          type: string
          format: date
        days:
          type: integer
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - message
          properties:
            message:
              type: string
    CorpusStats:
      type: object
      properties:
        total_governments:
          type: integer
        total_states:
          type: integer
          maximum: 50
          description: Distinct states with at least one tracked government. At most 50.
        includes_dc:
          type: boolean
          description: DC is tracked like a state but is not one. Render the pair as '50 states and DC' rather than adding them into an ambiguous 51.
        total_meetings:
          type: integer
    Operations:
      type: object
      properties:
        window:
          $ref: '#/components/schemas/Window'
        corpus:
          type: object
          properties:
            meetings:
              type: integer
            documents:
              type: integer
            governments:
              type: integer
            states:
              type: integer
              maximum: 50
              description: Distinct states with at least one tracked government. At most 50.
            includes_dc:
              type: boolean
              description: DC is tracked like a state but is not one. Render the pair as '50 states and DC' rather than adding them into an ambiguous 51.
            minutes:
              type: integer
              description: 'Minutes of meeting the corpus holds. Read it with meetings_measured: the corpus predates the duration field, so this is a total over that many meetings, not over all of them.'
            meetings_measured:
              type: integer
              description: Number of stored meetings contributing to minutes. Missing durations reduce coverage; do not assume a backfill is running or complete.
        published:
          type: object
          properties:
            meetings:
              type: integer
            documents:
              type: integer
            minutes:
              type: integer
              description: Minutes of meeting published in the window. Read it with meetings_measured, as above.
            meetings_measured:
              type: integer
              description: How many of the window's meetings `minutes` was summed over.
        daily:
          type: array
          items:
            type: object
            properties:
              date:
                type: string
                format: date
              meetings:
                type: integer
                description: Counted by when we PUBLISHED, not when the meeting was held.
              documents:
                type: integer
              cumulative_meetings:
                type: integer
                description: Anchored to the corpus total and walked forward, so the last entry equals corpus.meetings rather than a window subtotal.
  responses:
    ServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Per-IP rate limit exceeded.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
externalDocs:
  description: Prose API reference
  url: https://www.openpublica.com/api-docs