Integration
Connect Better Stack to PM2.5 Open Data Portal
When something happens in Better Stack, your agent does the next thing in PM2.5 Open Data Portal. Describe it in plain language and the automation is built, tested on every branch and kept running.
Build it
What do you want Better Stack and PM2.5 Open Data Portal to do together?
Describe it and your agent reads both APIs, builds the automation, tests every branch and ships it. The list below is what exists today, not the limit.
Ask the assistant
You'll sign in before anything runs. What you typed comes with you.
Or work from Claude Code
Install the APIANT plugin for Claude Code and build, edit, test and read run history from your terminal. Every plan gets this, including free, and it spends no assistant credits.
Connect Claude CodeEverything your agent can do with Better Stack and PM2.5 Open Data Portal
Triggers and actions 3 triggers ยท 22 actions
Trigger
New Monitor Status ChangeFires when a monitor's status changes (up/down). Poll GET https://uptime.betterstack.com/api/v2/monitors and detect status transitions, or use vendor status-change webhook if available.
Trigger
New or Updated IncidentTriggers when new incidents are created, or when existing incidents are updated.
Trigger
On-Call Contact ChangedTriggers when an on-call contact changes.
Action
Acknowledge IncidentAcknowledges an incident.
Action
Add HeartbeatCreate a new heartbeat check. POST https://uptime.betterstack.com/api/v2/heartbeats
Action
Add Incident CommentAdds a comment to an incident.
Action
Add MonitorCreate a new uptime monitor. POST https://uptime.betterstack.com/api/v2/monitors
Action
Create IncidentCreates an incident that notifies the team.
Action
Delete HeartbeatRemove a heartbeat check by id. DELETE https://uptime.betterstack.com/api/v2/heartbeats/{id}
Action
Delete MonitorDelete an uptime monitor by id. DELETE https://uptime.betterstack.com/api/v2/monitors/{id}
Action
Find IncidentFinds an Incident.
Action
Find On-Call ContactFinds On-Call Contact. Supports time lookup.
Action
Get MonitorRetrieve a single monitor by id. GET https://uptime.betterstack.com/api/v2/monitors/{id}
Action
List MonitorsList all uptime monitors. GET https://uptime.betterstack.com/api/v2/monitors (paginated)
Action
Resolve IncidentResolves an incident.
Action
Update MonitorUpdate an existing monitor's settings. PATCH https://uptime.betterstack.com/api/v2/monitors/{id}
Action
Find nearest device by latitude and longitudeFind the device nearest to a given latitude/longitude. GET /device/nearest/lat/{lat}/lon/{lon}/
Action
Get ADF emission analysisFetch the Air Distribution Field (ADF) emission analysis dataset. GET /analysis/ADF/emission/
Action
Get ADF pollution analysisFetch the ADF pollution analysis dataset. GET /analysis/ADF/pollution/
Action
Get ADF rankingFetch the ADF device/project pollution ranking. GET /analysis/ADF/ranking/
Action
Get device historyFetch historical readings for one device. GET /device/{device_id}/history/
Action
Get device latest readingFetch the most recent air-quality reading for one device. GET /device/{device_id}/latest/
Action
Get device reading by dateFetch a device's readings for a specific date. GET /device/{device_id}/date/{yyyy-mm-dd}/
Action
Get project latest readingsFetch the latest readings for all devices in a project. GET /project/{project}/latest/
Action
List projectsList all monitoring projects available on the portal. GET /project/all/
No trigger or action matches that. Ask your agent to add it: it reads the API documentation and builds what you describe.