78trust / 100

Forecast Batch

by Invoket in Weather & location

x402 APIPassing, checked 11 min ago

Before your agent plans across a whole network — fleet routing, multi-site operations, portfolio hedging: 2 m temperature, precipitation and 10 m wind forecasts for up to 500 point + lead-time queries in one call, from the deterministic NOAA GFS run (~16 days). Each query takes lat+lon or a city name plus an optional lead selector (omitted, it defaults to the current analysis time); an uncovered item is flagged via per-item coverage instead of failing the batch.

POST https://api.invoket.com/weather/forecast/batch

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
173 ms typical, 226 ms slowest 5%
Last check
11 min ago
Next check
in 21 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.invoket.com/weather/forecast/batch" \
  -H "content-type: application/json" \
  -d '{"queries":[{"city":"Medellin","horizon_h":24},{"horizon_h":72,"lat":25.2854,"lon":51.531},{"lat":19.4326,"lon":-99.1332,"valid_time":"2026-09-01T12:00:00Z"}]}'
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.invoket.com%2Fweather%2Fforecast%2Fbatch
const res = await pay("https://api.invoket.com/weather/forecast/batch", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"queries":[{"city":"Medellin","horizon_h":24},{"horizon_h":72,"lat":25.2854,"lon":51.531},{"lat":19.4326,"lon":-99.1332,"valid_time":"2026-09-01T12:00:00Z"}]}),
});
console.log(await res.json());

Example input

{
  "queries": [
    {
      "city": "Medellin",
      "horizon_h": 24
    },
    {
      "horizon_h": 72,
      "lat": 25.2854,
      "lon": 51.531
    },
    {
      "lat": 19.4326,
      "lon": -99.1332,
      "valid_time": "2026-09-01T12:00:00Z"
    }
  ]
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
11 min agoPassed40239 ms$0.02
4 h agoPassed402182 ms$0.02
7 h agoPassed402217 ms$0.02
11 h agoPassed402225 ms$0.02
15 h agoPassed402237 ms$0.02
18 h agoPassed402173 ms$0.02
22 h agoPassed40239 ms$0.02
25 h agoPassed402224 ms$0.02
29 h agoPassed402172 ms$0.02
33 h agoPassed402226 ms$0.02
36 h agoPassed402148 ms$0.02
41 h agoPassed402173 ms$0.02