81trust / 100

Tools Check Url Status

by Check URL Status in Weather & location

x402 APIPassing, checked 3 h ago

Use to probe a URL for live HTTP status, final URL, redirects, content-type, and whether the response is HTML. Does not return the page body.

POST https://api.qocgpiywhm.com/api/v1/tools/check_url_status

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
268 ms typical, 268 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.qocgpiywhm.com/api/v1/tools/check_url_status" \
  -H "content-type: application/json" \
  -d '{"url":"https://www.python.org/"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.qocgpiywhm.com%2Fapi%2Fv1%2Ftools%2Fcheck_url_status
const res = await pay("https://api.qocgpiywhm.com/api/v1/tools/check_url_status", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://www.python.org/"}),
});
console.log(await res.json());

Example input

{
  "url": "https://www.python.org/"
}

Example output

{
  "correlation_id": "00000000-0000-4000-8000-000000000001",
  "data": {
    "results": [
      {
        "data": {
          "content_length": 11459,
          "content_type": "text/html; charset=utf-8",
          "final_url": "https://www.python.org/",
          "is_html": true,
          "ok": true,
          "probe_method": "HEAD",
          "redirect_count": 0,
          "redirect_history": [],
          "response_time_ms": 130,
          "status_code": 200,
          "url": "https://www.python.org/",
          "url_changed": false
        },
        "detail": null,
        "error": null,
        "meta": {
          "retries": 0,
          "url": "https://www.python.org/",
          "via_proxy": false
        }
      }
    ]
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402417 ms$0.005
8 h agoPassed402268 ms$0.005