80trust / 100

Url Preflight

by Forest Gas Station in Weather & location

x402 APIPassing, checked 1 h ago

Inspect a public URL with HEAD; GET only on 405/501. Return origin status, final URL, headers, cache validators and up to 5 redirects. Limits: 8s, 2 MiB. Origin 4xx/5xx are observations; length is unverified and SHA256 covers only complete GET bodies. No JavaScript, login or availability guarantee. 0.001 Base Sepolia test USDC per success; invalid inputs/errors are not settled.

POST https://http--forest-gas-station--lcjl27p8lmjs.code.run/url/preflight

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://http--forest-gas-station--lcjl27p8lmjs.code.run/url/preflight" \
  -H "content-type: application/json" \
  -d '{"url":"https://example.com/"}'
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:84532",
  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%2Fhttp--forest-gas-station--lcjl27p8lmjs.code.run%2Furl%2Fpreflight
const res = await pay("https://http--forest-gas-station--lcjl27p8lmjs.code.run/url/preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://example.com/"}),
});
console.log(await res.json());

Example input

{
  "url": "https://example.com/"
}

Example output

{
  "body_sha256": null,
  "cache": {
    "cache_control": null,
    "etag": null,
    "expires": null,
    "last_modified": null
  },
  "content_length": null,
  "content_type": "text/html",
  "final_url": "https://example.com/",
  "head_redirect_chain": [],
  "head_status": 200,
  "method": "HEAD",
  "redirect_chain": [],
  "status": 200,
  "used_get_fallback": false
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402329 ms$0.001
5 h agoPassed402205 ms$0.001
9 h agoPassed402330 ms$0.001
12 h agoPassed402276 ms$0.001
16 h agoPassed402260 ms$0.001
20 h agoPassed402177 ms$0.001
23 h agoPassed402183 ms$0.001
28 h agoPassed40241 ms$0.001