翻篇收录说明
翻篇网页快照

Monitors API: list monitors - Keenable

https://docs.keenable.ai/api-reference/monitors/list

最近抓取:2026-12-03 06:21:34(北京时间)

最近内容变化:2026-12-03 06:21:34(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

List your organization's monitors with GET /v1/monitors, newest first, filtered by status, name or metadata, with cursor pagination.

正文摘录

TypeScriptTypeScriptimport { Keenable } from "keenable"; async function main() { // reads KEENABLE_API_KEY from the environment const client = new Keenable(); const page = await client.monitors.list({ status: "active", limit: 20 }); for (const monitor of page.data) { console.log(monitor.id, monitor.status, monitor.name); } if (page.hasMore) console.log("next page: cursor", page.nextCursor); } main(); 200400401403429503{ "data": [ { "id": "mon_3kq9z2c8f1a04b7d9e6f5a21", "object": "monitor", "name": "Open-weights LLM releases", "type": "search", "status": "active", "disabled_reason": { "code": "runs_failed", "message": "<string>" }, "search": { "query": "<string>", "max_results": 123, "include_domains": [ "<string>" ], "exclude_domains": [ "<string>" ], "content": { "text": false } }, "page": { "url": "https://example.com/pricing", "watch_for": "price changes and new plans", "sensitivity": "meaningful" }, "schedule": { "type": "cron", "value": "0 9 * * 1-5", "timezone": "Europe/Paris" }, "webhook": { "url": "<string>", "events": [ "monitor.created" ], "secret": "whsec_example" }, "metadata": {}, "last_run_at": "2023-11-07T05:31:56Z", "next_run_at": "2023-11-07T05:31:56Z", "upcoming_runs": [ "2023-11-07T05:31:56Z" ], "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "output_schema": {} } ], "has_more": true, "next_cursor": "<string>" }GET/v1/monitorsTry itTypeScriptTypeScriptimport { Keenable } from "keenable"; async function main() { // reads KEENABLE_API_KEY from the environment const client = new Keenable(); const page = await client.monitors.list({ status: "active", limit: 20 }); for (const monitor of page.data) { console.log(monitor.id, monitor.status, monitor.name); } if (page.hasMore) console.log("next page: cursor", page.nextCursor); } main(); 200400401403429503{ "data": [ { "id": "mon_3kq9z2c8f1a04b7d9e6f5a21", "object": "monitor", "name": "Open-weights LLM releases", "type": "search", "status": "active", "disabled_reason": { "code": "runs_failed", "message": "<string>" }, "search": { "query": "<string>", "max_results": 123, "include_domains": [ "<string>" ], "exclude_domains": [ "<string>" ], "content": { "text": false } }, "page": { "url": "https://example.com/pricing", "watch_for": "price changes and new plans", "sensitivity": "meaningful" }, "schedule": { "type": "cron", "value": "0 9 * * 1-5", "timezone": "Europe/Paris" }, "webhook": { "url": "<string>", "events": [ "monitor.created" ], "secret": "whsec_example" }, "metadata": {}, "last_run_at": "2023-11-07T05:31:56Z", "next_run_at": "2023-11-07T05:31:56Z", "upcoming_runs": [ "2023-11-07T05:31:56Z" ], "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "output_schema": {} } ], "has_more": true, "next_cursor": "<string>" }List your organization’s monitors, newest first. Every list in the Monitors API has the same shape: data, has_more and next_cursor. To get the next page, pass next_cursor as cursor. When to use it Call it before you create a monitor, to find one on the same topic by name. Filter by status to find paused or disabled monitors, or by your own tags with metadata[key]=value. This request lists the active monitors tagged team=research: curl -G "https://api.keenable.ai/v1/monitors" \ -H "X-API-Key: $KEENABLE_API_KEY" \ --data-urlencode "status=active" \ --data-urlencode "metadata[team]=research" You get a page of monitors in data. If has_more is true, repeat the request with cursor set to next_cursor. To count monitors without paging, use Count monitors. SDK, CLI and MCP ClientCallPythonclient.monitors.list(...), or list_all(...) to iterate over every pageTypeScriptclient.monitors.list(...), or listAll(...)Goclient.Monitors.List(ctx, params), or ListAllRustclient.monitors().list(&params), or list_allCLIkeenable monitors list, with --status, --name, --limit, --cursorMCPlist_monitors, with status (active or paused) and name The SDK methods need SDK 0.2.0 or later. See SDKs → Monitors and Monitors tools. Related operations Get a monitor returns one monitor by id. Bulk actions pauses, resumes or deletes the monitors that match the same kind of filter. Count monitors counts them by status and schedule. AuthorizationsapiKeybearerAuthX-API-KeystringheaderrequiredAPI key for authentication. Obtain one from the Keenable dashboard.Query Parametersstatusenum<string>Only monitors in this status.Available options: active, paused, disabled, completed namestringOnly monitors whose name contains this text.metadata[key]stringOnly monitors with this value under key in metadata, such as metadata[team]=research.limitintegerdefault:50Items per page, 1 to 100. Any other value returns 400.Required range: 1 <= x <= 100cursorstringThe next_cursor of the previous page. A cursor that isn't in the list returns 400.Response200application/jsonA page of monitorsdataobject[]requiredShow child attributeshas_morebooleanrequiredtrue if there are more items after this page.next_cursorstring | nullrequiredPass it as cursor to get the next page. null on the last page.