Satellite Compare
by 1gateway in Developer tools
Use when checking what changed at a place between two dates (construction, deforestation, flooding, crops). Input: lat, lon, radius_m (200-10000), before and after dates (20+ days apart). Output: JSON per date: clearest scene, area cloud %, NDVI mean/median, true color, NDVI and false color PNG URLs; NDVI change and reliability. No scene: 404, not charged. Example: ?lat=37.5665&lon=126.978&before=2026-04-15&after=2026-10-08
https://1gateway.dev/v1/geo/satellite/compare- Price
- $0.018
- per call in USDC
- Uptime
- 98.0%
- last 30 days
- Response time
- 115 ms
- 1.3 s slowest 5%
- Last check
- Passed
- 55 min ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://1gateway.dev/v1/geo/satellite/compare
Each call costs $0.018 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://1gateway.dev/v1/geo/satellite/compare?after=2026-10-08&before=2026-04-15&lat=37.5665&lon=126.978&radius_m=2000&size=768&window_days=15Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
after | string | Yes | Later date YYYY-MM-DD, at least 20 days after before |
before | string | Yes | Earlier date YYYY-MM-DD (2017-01-01 or later) |
lat | number | Yes | Latitude, WGS84 decimal degrees |
lon | number | Yes | Longitude, WGS84 decimal degrees |
radius_m | integer | No | Half-width of the square area in meters (default 2000) |
size | integer | No | Image width/height in px (default 768) |
window_days | integer | No | Search ± days around each date (default 15) |
Example response
The provider's example. We can't check it without paying.
Example response, 74 lines
{
"after": {
"images": {
"false_color": "https://planetarycomputer.microsoft.com/api/data/v1/item/bbox/126.9553,37.5485,127.0007,37.5845/768x768.png?collection=sentinel-2-l2a&item=S2B_MSIL2A_20261008T…",
"ndvi": "https://planetarycomputer.microsoft.com/api/data/v1/item/bbox/126.9553,37.5485,127.0007,37.5845/768x768.png?collection=sentinel-2-l2a&item=S2B_MSIL2A_20261008T…",
"true_color": "https://planetarycomputer.microsoft.com/api/data/v1/item/bbox/126.9553,37.5485,127.0007,37.5845/768x768.png?collection=sentinel-2-l2a&item=S2B_MSIL2A_20261008T…"
},
"ndvi": {
"mean": 0.1908,
"median": 0.1209,
"std": 0.1734,
"validPct": 100
},
"requestedDate": "2026-10-08",
"scene": {
"areaClearPct": 100,
"areaCloudPct": 0,
"date": "2026-10-08",
"datetime": "2026-10-08T02:15:59.024000Z",
"id": "S2B_MSIL2A_20261008T021559_R003_T52SCG_20261008T042548",
"platform": "Sentinel-2B"
},
"searchWindow": {
"from": "2026-09-23",
"to": "2026-10-23"
}
},
"attribution": "Contains modified Copernicus Sentinel data (ESA). Imagery served by Microsoft Planetary Computer.",
"before": {
"images": {
"false_color": "https://planetarycomputer.microsoft.com/api/data/v1/item/bbox/126.9553,37.5485,127.0007,37.5845/768x768.png?collection=sentinel-2-l2a&item=S2C_MSIL2A_20260416T…",
"ndvi": "https://planetarycomputer.microsoft.com/api/data/v1/item/bbox/126.9553,37.5485,127.0007,37.5845/768x768.png?collection=sentinel-2-l2a&item=S2C_MSIL2A_20260416T…",
"true_color": "https://planetarycomputer.microsoft.com/api/data/v1/item/bbox/126.9553,37.5485,127.0007,37.5845/768x768.png?collection=sentinel-2-l2a&item=S2C_MSIL2A_20260416T…"
},
"ndvi": {
"mean": 0.1744,
"median": 0.1204,
"std": 0.1337,
"validPct": 100
},
"requestedDate": "2026-04-15",
"scene": {
"areaClearPct": 99.9,
"areaCloudPct": 0.1,
"date": "2026-04-16",
"datetime": "2026-04-16T02:16:01.025000Z",
"id": "S2C_MSIL2A_20260416T021601_R003_T52SCG_20260416T055803",
"platform": "Sentinel-2C"
},
"searchWindow": {
"from": "2026-03-31",
"to": "2026-04-30"
}
},
"change": {
"daysBetween": 175,
"direction": "stable",
"ndviMeanDelta": 0.0164,
"ndviMedianDelta": 0.0005,
"reliability": "normal"
},
"imageFormat": "png",
"location": {
"bbox": [
126.9553
],
"lat": 37.5665,
"lon": 126.978,
"radiusM": 2000
},
"notes": [
"NDVI = (B08-B04)/(B08+B04) averaged over the requested square; not cloud-masked, so read it with areaCloudPct (reliability=low when either scene is over 20% cl…"
]
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.018.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://1gateway.dev/v1/geo/satellite/compare?after=2026-10-08&before=2026-04-15&lat=37.5665&lon=126.978&radius_m=2000&size=768&window_days=15'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://1gateway.dev/v1/geo/satellite/compare?after=2026-10-08&before=2026-04-15&lat=37.5665&lon=126.978&radius_m=2000&size=768&window_days=15' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.018 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.018" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.018 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F1gateway.dev%2Fv1%2Fgeo%2Fsatellite%2Fcompare
const res = await pay("https://1gateway.dev/v1/geo/satellite/compare?after=2026-10-08&before=2026-04-15&lat=37.5665&lon=126.978&radius_m=2000&size=768&window_days=15");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.018 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.018"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://1gateway.dev/v1/geo/satellite/compare?after=2026-10-08&before=2026-04-15&lat=37.5665&lon=126.978&radius_m=2000&size=768&window_days=15")
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 55 min ago | Passed | 402 | 24 ms | $0.018 |
| 18 h ago | Timed out | - | - | - |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 25 ms | $0.018 |
| 4 days ago | Passed | 402 | 233 ms | $0.018 |
Show 10 older checks
| 5 days ago | Passed | 402 | 53 ms | $0.018 |
| 5 days ago | Passed | 402 | 754 ms | $0.018 |
| 5 days ago | Passed | 402 | 564 ms | $0.018 |
| 6 days ago | Passed | 402 | 193 ms | $0.018 |
| 6 days ago | Passed | 402 | 55 ms | $0.018 |
| 6 days ago | Passed | 402 | 898 ms | $0.018 |
| 7 days ago | Passed | 402 | 112 ms | $0.018 |
| 7 days ago | Passed | 402 | 89 ms | $0.018 |
| 7 days ago | Passed | 402 | 70 ms | $0.018 |
| 8 days ago | Passed | 402 | 127 ms | $0.018 |