GovGazette Documents API
The Documents API from GovGazette — 1 operation(s) for documents.
The Documents API from GovGazette — 1 operation(s) for documents.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/govgazette-com:govgazette-com-documents-api"
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.
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: GovGazette Documents API
version: 0.1.0
servers:
- url: https://govgazette.com
tags:
- name: Documents
paths:
/api/v1/documents/{collection}/{id}:
get:
operationId: get_api_v1_documents__collection___id_
parameters:
- in: path
name: collection
required: true
schema:
type: string
- in: path
name: id
required: true
schema:
type: string
- in: query
name: offset
schema:
minimum: 0
type: integer
- in: query
name: length
schema:
maximum: 16000
minimum: 1
type: integer
responses:
'200':
content:
application/json:
schema:
$defs:
ExclusionCoverage:
properties:
freshness:
$ref: '#/components/schemas/SourceFreshness'
description: Fresh, stale, unknown or unavailable, with age and the 24-hour warning policy.
observed_at:
description: Observation time does not replace the official source timestamp.
type:
- string
- 'null'
scope:
type:
- string
- 'null'
sha256:
type:
- string
- 'null'
source_date:
type:
- string
- 'null'
source_url:
type:
- string
- 'null'
status:
description: Present as unavailable when no SAM coverage exists in this generation.
type:
- string
- 'null'
required:
- freshness
type: object
FreshnessState:
enum:
- fresh
- stale
- unknown
- unavailable
type: string
JsonObject:
description: Source-specific JSON map. The envelope is stable; map keys vary by official source.
type: object
SourceFreshness:
properties:
attention_required:
type: boolean
evaluated_at:
description: UTC time when age was evaluated; source and observation dates are unchanged.
type: string
max_age_seconds:
description: Explicit warning threshold for this daily snapshot. Not a scheduler promise.
format: int64
type: integer
source_age_seconds:
description: Age of the official source timestamp, never the import or enrichment timestamp.
format: int64
type:
- integer
- 'null'
state:
$ref: '#/components/schemas/FreshnessState'
warn_age_seconds:
description: Early-warning boundary, separate from the stale-source boundary.
format: int64
type: integer
warning:
description: User-facing warning, or null when within the warning threshold.
type:
- string
- 'null'
required:
- state
- evaluated_at
- max_age_seconds
- warn_age_seconds
- attention_required
type: object
$schema: https://json-schema.org/draft/2020-12/schema
properties:
coverage:
anyOf:
- $ref: '#/components/schemas/ExclusionCoverage'
- type: 'null'
description: Present for exclusion text chunks, with the same source-age policy as detail.
document_kind:
type: string
generation:
type: string
id:
type: string
next_offset:
format: uint
minimum: 0
type:
- integer
- 'null'
offset:
format: uint64
minimum: 0
type: integer
provenance:
anyOf:
- $ref: '#/components/schemas/JsonObject'
- type: 'null'
description: Source metadata attached to the retained record.
text:
type: string
required:
- generation
- id
- text
- offset
- document_kind
type: object
description: Public source-backed result
'400':
description: Invalid request
'408':
description: Five-second request deadline exceeded
summary: Read bounded official record text
x-openai-isConsequential: false
tags:
- Documents
components:
schemas:
ExclusionCoverage:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
FreshnessState:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
SourceFreshness:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
JsonObject:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true