CDC Events API
The events API from CDC — 2 operation(s) for events.
The events API from CDC — 2 operation(s) for events.
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/cdc-gov:cdc-gov-events-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: Cdc Gov Events API
version: 1.0.0
description: 'Operations tagged events across 2 of this provider''s published API definitions: dibbs-ecr-refiner-openapi.json, cdc-events-api-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Events
paths:
/api/v1/events/:
get:
tags:
- Events
summary: Get Events
description: 'Returns a list of all events for a jurisdiction, ordered from newest to oldest.
Args:
user (DbUser): The user making the request.
db (AsyncDatabaseConnection): Database connection.
logger (Logger): Standard logger.
page (int): page of events to return to the client.
canonical_url (str | None): An optional filter on the condition.
Returns:
EventResponse: A bundle with
- Total page count
- The list of AuditEvents relevant for the (optional) filter
- The list of condition information with potentially filter-able data'
operationId: getEvents
parameters:
- name: page
in: query
required: false
schema:
type: integer
default: 1
title: Page
- name: canonical_url
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Canonical Url
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/EventsResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/events/{event_id}/custom-code-uploads:
get:
tags:
- Events
summary: Get Custom Code Upload Events
description: 'Returns a list of all custom code upload events associated with a parent event ID.
Args:
event_id (UUID): The parent event
user (DbUser): The logged in user
db (AsyncDatabaseConnection): The database connection
Raises:
HTTPException: 404 if event with requested ID is not found or does not belong to user''s jurisdiction'
operationId: getCustomCodeUploadEvents
parameters:
- name: event_id
in: path
required: true
schema:
type: string
format: uuid
title: Event Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/CustomCodeUploadEventResponse'
title: Response Getcustomcodeuploadevents
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
EventFilterOption:
properties:
id:
type: string
format: uuid
title: Id
name:
type: string
title: Name
canonical_url:
type: string
title: Canonical Url
type: object
required:
- id
- name
- canonical_url
title: EventFilterOption
description: Conditions returned to the user to be used for filtering events.
EventsResponse:
properties:
audit_events:
items:
$ref: '#/components/schemas/AuditEvent'
type: array
title: Audit Events
configuration_options:
items:
$ref: '#/components/schemas/EventFilterOption'
type: array
title: Configuration Options
total_pages:
type: integer
title: Total Pages
type: object
required:
- audit_events
- configuration_options
- total_pages
title: EventsResponse
description: Response needed for the audit log page.
CustomCodeUploadEventResponse:
properties:
id:
type: string
format: uuid
title: Id
system_display_name:
type: string
title: System Display Name
code:
type: string
title: Code
name:
type: string
title: Name
type: object
required:
- id
- system_display_name
- code
- name
title: CustomCodeUploadEventResponse
description: Response model for a custom code upload event.
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
AuditEvent:
properties:
id:
type: string
format: uuid
title: Id
username:
type: string
title: Username
configuration_name:
type: string
title: Configuration Name
configuration_version:
type: integer
title: Configuration Version
condition_id:
type: string
format: uuid
title: Condition Id
action_text:
type: string
title: Action Text
created_at:
type: string
format: date-time
title: Created At
has_custom_code_upload_events:
type: boolean
title: Has Custom Code Upload Events
type: object
required:
- id
- username
- configuration_name
- configuration_version
- condition_id
- action_text
- created_at
- has_custom_code_upload_events
title: AuditEvent
description: An event returned by the DB function.
x-refined-from:
- dibbs-ecr-refiner-openapi.json
- cdc-events-api-openapi.yml