81trust / 100

Weather Forecast

by x402.forgemesh.io in Weather & location

x402 APIPassing, checked 3 h ago

Weather forecast API: current conditions (temperature, feels-like, humidity, wind, weather code) plus a 3-day daily forecast (highs, lows, precipitation probability) for any latitude/longitude worldwide, as structured JSON. Use for travel planning, logistics, event scheduling, and assistant agents. Cached 10 minutes.

POST https://x402.forgemesh.io/weather-forecast

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
135 ms typical, 135 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://x402.forgemesh.io/weather-forecast" \
  -H "content-type: application/json" \
  -d '{"latitude":"40.71","longitude":"-74.00"}'
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%2Fx402.forgemesh.io%2Fweather-forecast
const res = await pay("https://x402.forgemesh.io/weather-forecast", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"latitude":"40.71","longitude":"-74.00"}),
});
console.log(await res.json());

Example input

{
  "latitude": "40.71",
  "longitude": "-74.00"
}

Example output

{
  "data": {
    "current": {
      "temperature_2m": 27.3,
      "wind_speed_10m": 12.1
    },
    "daily": {
      "temperature_2m_max": [
        31.2,
        29.8,
        30.1
      ]
    }
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402420 ms$0.005
8 h agoPassed402135 ms$0.005