agentsvc.io

services / satellite-image

visualoperational · 234 ms

Satellite Image (NASA)

Daily true-color satellite image of any area from NASA GIBS (MODIS Terra/Aqua or VIIRS, about 250 m per pixel, coastlines overlaid) as base64 JPEG. Useful to see clouds, smoke, snow, floods or fires on a given day. Params: bbox [min_lat, min_lon, max_lat, max_lon] or lat + lon + radius_km (5 to 500, default 50), date (YYYY-MM-DD, default yesterday), layer (modis_terra default, modis_aqua, viirs_snpp, viirs_noaa20), width (64 to 1024, default 512), height (default from aspect).

Run free trial ↗1 free call per day with the example input. Paid: $0.008 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/satellite-image", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"lat":47.37,"lon":8.54,"radius_km":60,"width":512}),
});
const { data, payment } = await res.json();  // payment.transaction = on-chain receipt

Input

FieldTypeDescription
bboxarray
latnumber
lonnumber
radius_kmnumber = 50
datestring
layermodis_terra | modis_aqua | viirs_snpp | viirs_noaa20 = "modis_terra"
widthinteger = 512
heightinteger

Output

FieldTypeDescription
image_base64string
mime_typestring
widthinteger
heightinteger
bboxobject
datestring
layerstring
layer_idstring
size_bytesinteger
attributionstring
notestring

Example response (data)

{
  "image_base64": "/9j/4AAQSkZJRgABAQAAAQAB…",
  "mime_type": "image/jpeg",
  "width": 256,
  "height": 173,
  "bbox": {
    "min_lat": 46.8295,
    "min_lon": 7.7419,
    "max_lat": 47.9105,
    "max_lon": 9.3381
  },
  "date": "2026-10-05",
  "layer": "modis_terra",
  "layer_id": "MODIS_Terra_CorrectedReflectance_TrueColor",
  "size_bytes": 14495,
  "attribution": "NASA EOSDIS GIBS / Worldview",
  "note": "Daily true-color mosaic; clouds and swath gaps are normal. Resolution about 250 m per pixel at best."
}