78trust / 100

Execute Weathernext Point Forecast V1

by Macaroon Network in Weather & location

x402 APIPassing, checked 55 min ago

Point-location weather forecast/reanalysis lookup from Google DeepMind's WeatherNext model via Earth Engine. Every request is bounded to data at least 1 hour old -- the exact license boundary at which WeatherNext data becomes CC BY 4.0 and commercially reusable. This listing never serves data still under the real-time Terms of Use, which explicitly prohibits commercial resale.

POST https://api.macaroonnetwork.com/execute/weathernext-point-forecast-v1

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
248 ms typical, 445 ms slowest 5%
Last check
55 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.macaroonnetwork.com/execute/weathernext-point-forecast-v1" \
  -H "content-type: application/json" \
  -d '{"input":{"latitude":35.6762,"longitude":139.6503,"timestamp":"2026-01-15T12:00:00Z"},"predicate":{"conditions":[{"field":"$.records","type":"count_gte","value":1},{"field":"$.provenance.license","operator":"eq","type":"field_changed","value":"CC-BY-4.0"},{"field":"$.provenance.live_data","operator":"eq","type":"field_changed","value":true},{"field":"$.provenance.outbound_network_used","operator":"eq","type":"field_changed","value":true},{"field":"$.provenance.data_age_hours","operator":"gte","type":"field_changed","value":1},{"field":"$.provenance.metadata_only","operator":"eq","type":"field_changed","value":true},{"field":"$.provenance.source","operator":"eq","type":"field_changed","value":"Google DeepMind WeatherNext (Earth Engine)"}],"type":"all"}}'
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.macaroonnetwork.com%2Fexecute%2Fweathernext-point-forecast-v1
const res = await pay("https://api.macaroonnetwork.com/execute/weathernext-point-forecast-v1", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"input":{"latitude":35.6762,"longitude":139.6503,"timestamp":"2026-01-15T12:00:00Z"},"predicate":{"conditions":[{"field":"$.records","type":"count_gte","value":1},{"field":"$.provenance.license","operator":"eq","type":"field_changed","value":"CC-BY-4.0"},{"field":"$.provenance.live_data","operator":"eq","type":"field_changed","value":true},{"field":"$.provenance.outbound_network_used","operator":"eq","type":"field_changed","value":true},{"field":"$.provenance.data_age_hours","operator":"gte","type":"field_changed","value":1},{"field":"$.provenance.metadata_only","operator":"eq","type":"field_changed","value":true},{"field":"$.provenance.source","operator":"eq","type":"field_changed","value":"Google DeepMind WeatherNext (Earth Engine)"}],"type":"all"}}),
});
console.log(await res.json());

Example input

{
  "input": {
    "latitude": 35.6762,
    "longitude": 139.6503,
    "timestamp": "2026-01-15T12:00:00Z"
  },
  "predicate": {
    "conditions": [
      {
        "field": "$.records",
        "type": "count_gte",
        "value": 1
      },
      {
        "field": "$.provenance.license",
        "operator": "eq",
        "type": "field_changed",
        "value": "CC-BY-4.0"
      },
      {
        "field": "$.provenance.live_data",
        "operator": "eq",
        "type": "field_changed",
        "value": true
      },
      {
        "field": "$.provenance.outbound_network_used",
        "operator": "eq",
        "type": "field_changed",
        "value": true
      },
      {
        "field": "$.provenance.data_age_hours",
        "operator": "gte",
        "type": "field_changed",
        "value": 1
      },
      {
        "field": "$.provenance.metadata_only",
        "operator": "eq",
        "type": "field_changed",
        "value": true
      },
      {
        "field": "$.provenance.source",
        "operator": "eq",
        "type": "field_changed",
        "value": "Google DeepMind WeatherNext (Earth Engine)"
      }
    ],
    "type": "all"
  }
}

Example output

{
  "payload": {
    "latitude": 0,
    "longitude": 0,
    "provenance": {
      "content_hash": null,
      "data_age_hours": null,
      "license": null,
      "live_data": null,
      "metadata_only": null,
      "outbound_network_used": null,
      "retrieved_at": null,
      "source": null,
      "source_collection": null,
      "truncated": null
    },
    "records": [],
    "timestamp": ""
  },
  "predicate_passed": true,
  "settled": true
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
55 min agoPassed402248 ms$0.005
5 h agoPassed402162 ms$0.005
8 h agoPassed402216 ms$0.005
12 h agoPassed402445 ms$0.005
15 h agoPassed402551 ms$0.005
19 h agoPassed402186 ms$0.005
23 h agoPassed402163 ms$0.005
26 h agoPassed402357 ms$0.005
30 h agoPassed402317 ms$0.005
34 h agoPassed402100 ms$0.005
37 h agoPassed402345 ms$0.005
42 h agoPassed402323 ms$0.005