How is one county, region or district doing right now
api.nuasense.com/x402/v1/analysis/county-summary
How is one county, region or district doing right now? Six layers over one admin unit: season against its own normal, rain over the last 10, 30 and 90 days against the long-term average (WFP, from CHIRPS), crop stress, staple prices, agro-dealer input prices per kg or litre and the recent news. $0.10 USDC per answer. Parameters: county, country.
GET
https://api.nuasense.com/x402/v1/analysis/county-summaryUptime100% of 5 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.nuasense.com/x402/v1/analysis/county-summary?country=ke&county=nakuru");
console.log(await res.json());Example input
{
"country": "ke",
"county": "nakuru"
}