Find public sensors near a point
The nearest live public sensors to a point, one per layer asked for (weather, air, radiation, quake …), each with its reading, distance and source, and a signed receipt.
$0.03 in USDC on Base per paid call.
Request sensors for a location
Send latitude and longitude. Use layers to select sensor types and max_km to limit the distance. The gateway asks ATLAS for the closest eligible sensor in each requested layer.
curl -i -X POST 'https://modelmarket.dev/x402/nearby-sensors' \
-H 'Content-Type: application/json' \
-d '{"latitude":35.68,"longitude":139.69,"layers":["weather","air"]}'
An unsigned request returns HTTP 402 with the payment terms. An x402 client can use those terms to authorize the payment and retry.
Read the result
A successful paid response includes the ATLAS result and the receipt returned by the Hub. This abbreviated example uses illustrative data. The distance and readings come from the stations found for your request.
{
"status": "ok",
"service": "nearby-sensors",
"capability_id": "atlas.nearest.read@v1",
"result": {
"ok": true,
"hit_count": 1,
"nearest_by_layer": {
"weather": {
"distance_km": 2.4
}
}
},
"receipt": "<Hub receipt omitted>"
}