59trust / 100

Frost Risk

by Garden Calculators in Weather & location

x402 APIPassing, checked 4 h ago

Frost or freeze class of a forecast low against plant hardiness, plus where a date sits against your average frost dates.

GET
https://garden-calc.x402tookit.com/frost-risk
Price
$0.02
per call in USDC
Uptime
56.3%
last 30 days
Response time
523 ms
1.3 s slowest 5%
Last check
Passed
4 h ago, next in 2 h

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://garden-calc.x402tookit.com/frost-risk

Each call costs $0.02 in USDC on Polygon, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://garden-calc.x402tookit.com/frost-risk?averageLastFrost=2026-05-01&date=2026-04-20&hardiness=tender&lowTemp=31&unit=f

Parameters

ParameterTypeRequiredDescription
averageFirstFroststringNoYour average first fall frost date, YYYY-MM-DD
averageLastFroststringNoYour average last spring frost date, YYYY-MM-DD (any year; month and day matter)
datestringNoThe date as YYYY-MM-DD, for the calendar position
hardinessstringNotender (default), half-hardy or hardy: how well the plant takes cold
lowTempnumberYesForecast overnight low
unitstringNof (default) or c

Example response

The provider's example. We can't check it without paying.

Example response, 29 lines
{
  "asOf": "2026-10-11T20:20:02.999Z",
  "averageLastFrostThisYear": "2026-05-01",
  "belowThreshold": true,
  "dateIsDaysBeforeAverageLastFrost": 11,
  "degraded": false,
  "disclaimer": "Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting.",
  "freezeBand": "29-32 F",
  "freezeClass": "LIGHT_FREEZE",
  "hardiness": "tender",
  "lowC": -0.6,
  "lowF": 31,
  "notChecked": [
    "your microclimate: low spots, cold air drainage, nearby buildings, water and wind change the night's low by 5 F or more from the forecast",
    "the actual hardiness of the variety and stage (seedlings, blossoms and new growth are far more sensitive than mature leaves)",
    "…2 more"
  ],
  "protectionAdvice": "cover with frost cloth or sheets before sunset, water the soil, or bring containers inside",
  "reasons": [
    "light freeze (29 to 32 F, almanac convention).",
    "tender plants (tomato, pepper, basil, squash, cucumber, beans) are hurt by frost and killed by a freeze (typical examples; varieties differ).",
    "…1 more"
  ],
  "source": "computed locally",
  "springPosition": "BEFORE_AVERAGE_LAST_FROST",
  "summary": "A low of 31 F (-0.6 C) is light freeze (29 to 32 F, almanac convention). For tender plants: damage likely. 11 days before the average last frost (2026-05-01).",
  "typicalDamageThresholdF": 33,
  "verdict": "DAMAGE_LIKELY"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.02.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://garden-calc.x402tookit.com/frost-risk?averageLastFrost=2026-05-01&date=2026-04-20&hardiness=tender&lowTemp=31&unit=f'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://garden-calc.x402tookit.com/frost-risk?averageLastFrost=2026-05-01&date=2026-04-20&hardiness=tender&lowTemp=31&unit=f' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fgarden-calc.x402tookit.com%2Ffrost-risk
const res = await pay("https://garden-calc.x402tookit.com/frost-risk?averageLastFrost=2026-05-01&date=2026-04-20&hardiness=tender&lowTemp=31&unit=f");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://garden-calc.x402tookit.com/frost-risk?averageLastFrost=2026-05-01&date=2026-04-20&hardiness=tender&lowTemp=31&unit=f")
    print(res.status_code, res.text)

Security scan

No findings

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed4021.3 s$0.02
18 h agoPassed402525 ms$0.02
47 h agoExpected HTTP 402, got 530530125 ms-
3 days agoExpected HTTP 402, got 530530102 ms-
4 days agoExpected HTTP 402, got 53053092 ms-
Show 10 older checks
5 days agoExpected HTTP 402, got 530530135 ms-
5 days agoExpected HTTP 402, got 530530116 ms-
5 days agoExpected HTTP 402, got 530530213 ms-
5 days agoExpected HTTP 402, got 530530151 ms-
5 days agoPassed402530 ms$0.02
6 days agoPassed402521 ms$0.02
6 days agoPassed402588 ms$0.02
6 days agoPassed402523 ms$0.02
6 days agoPassed402504 ms$0.02
6 days agoPassed402496 ms$0.02