Get API X402 check
get_api_x402_checkChecks a URL once for an agent, paid per call: status, response time, keyword and TLS certificate, with no account and no monitor.
One reading with the probe of the site monitors, and the certificate of an https address that answered. A request without payment gets the 402 with the price; a paid one gets the reading in the same response, with the payment in cobranca. A site that is down is the answer (ok: false with reason) and is charged: the call was made. When our own probe network fails, the answer is 503 and nothing is charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The address to call: http or https, public, without user or password. | |
| method | No | `GET` (default) or `HEAD`. | |
| keyword | No | Text that must be in the first 64 KB of the page; it forces `GET`. | |
| timeout_ms | No | 1000 to 30000, default 10000. | |
| expect_status | No | What counts as up: `200-399` by default, a range `a-b` or one code. |