API Documentation

Access weather, climate, terrain, soil, environment, hazard, and proximity data for any coordinates on Earth. All responses are JSON. The machine-readable OpenAPI schema covers every endpoint on this page.

🔑 Authentication

Every /v1 request except /v1/health and /v1/openapi.json needs an API key. Soil is the one exception: /v1/soil and the SoilGrids-compatible endpoint also answer without a key, 20 calls a day per network address. Create a key for free in the PixelGust dashboard (account menu, API Keys).

Send the key in the X-API-Key header:

curl -H "X-API-Key: YOUR_API_KEY" \
  "https://pixelgust.com/v1/weather?lat=40.64&lon=22.94"

Keep the key out of URLs: request URLs are stored in server and proxy logs. The only exceptions are the MCP server URL for AI connectors and the SoilGrids-compatible base URL for tools such as R's soilDB, which cannot send headers.

Schema: https://pixelgust.com/v1/openapi.json (OpenAPI 3, importable into Postman, Insomnia or a client generator).

Changelog. November 2026, schema 1.1.0: new GET /v1/soil and SoilGrids-compatible endpoint, both usable without a key, and the MCP tool get_soil. October 2026: coarse fragments (cfvo) are now in vol%, and soil values at about a third of points were corrected to ISRIC's own pixel. Also November 2026: soil erosion is withdrawn while we test a new model. soil_erosion_t_ha_yr is null at every point with a soil_erosion_note, and inside polygon statistics its mean is null with a note. Also November 2026: responses with flood_twi now carry its licence notice, as described under TWI Licence and Method. Also November 2026: the layer behind flood_twi was rebuilt directly from the MERIT Hydro and GMTED2010 downloads, with the method described in that section. Values are unchanged except in three ways. flood_twi is null instead of 0 where MERIT Hydro has no data: the strip of sea beside the coast, and land it does not hold, such as Niue. Polygon statistics on a coast no longer count that strip of sea, so their pixel counts and means change a little. And the Auckland, Campbell, Macquarie and Antipodes islands now have a TWI.

⏱️ Plans and Rate Limits

Every endpoint is available on every plan, including Free. Plans differ in daily volume, the per-minute burst and the polygon size they accept. Limits apply per account: all keys of an account, and its MCP calls with a key, share one daily pool.

PlanCalls per dayBurst (per minute)Max polygon areaMax polygon vertices
Free5010100 km²200
Basic500305,000 km²500
Pro5,00012050,000 km²1,000
Enterprise50,0009,999150,000 km²No fixed cap

The daily count resets at 00:00 UTC. A request rejected for invalid input (400 or 422) does not count against the daily quota. Prices are on the pricing page.

Without a key, the soil endpoints (/v1/soil and the SoilGrids-compatible endpoint, counted together) allow 20 calls a day and 5 a minute per network address. Clients whose requests reach PixelGust without their own address, such as some cloud services and proxies, share one pool of 200 calls a day and 20 a minute. These keyless counts are kept in memory on each server instance and reset at 00:00 UTC or when an instance restarts, and more than one instance can run, so treat them as approximate.

Every successful response carries these headers:

HeaderMeaning
X-RateLimit-LimitYour daily quota
X-RateLimit-RemainingCalls left today
X-RateLimit-ResetSeconds until the daily quota resets at 00:00 UTC
X-RateLimit-Burst-LimitRequests allowed per minute
X-RateLimit-Burst-RemainingRequests left in the current minute

Over a limit you get 429 with a Retry-After header in seconds. Responses rejected before the daily count carry only the burst headers.

Base URL

https://pixelgust.com/v1

Coordinates are decimal degrees. Latitude must be between -90 and 90. Any finite longitude is accepted and wrapped into -180 to 180, so 202.94 and -157.06 return the same place.

Responses and Units

The three weather endpoints share one envelope:

FieldDescription
locationCentre of the grid cell the values come from (it can differ from the coordinates you sent)
statsOne object per variable: {"mean", "min", "max"}. min and max are null where the source has no range. Also holds point context (elevation, slope, aspect, TWI, land cover, NDVI, ET, population density) and, where available, a soil object with its own units and an _attribution line (see soil data attribution)
unitsUnit and time basis of every key in stats, for example "precipitation_mm": "mm/month". Read it instead of assuming a basis
periodHuman-readable description of the time the values describe
notesOptional. Caveats per key, for example an estimated value or a field that is empty in the current model run

Time basis of the accumulations (precipitation, snowfall, evaporation, radiation):

EndpointBasisExample unit
/v1/weatherThe hour before valid_timemm/h
/v1/weather/forecastTotal for the forecast day (UTC)mm/day
/v1/weather/historical?month=7Total for that month, averaged over 2015-2024mm/month
/v1/weather/historical (no month)Annual total, averaged over 2015-2024. min and max are null for accumulationsmm/year

Evaporation is reported as a positive amount of water evaporated. In nowcast and forecast responses the solar value is downward short-wave radiation: read solar_radiation_downward_mj_m2 (net_solar_radiation_mj_m2 is kept there as a deprecated alias with the same value).

🟤 Soil Data Attribution

Soil values come from SoilGrids 2.0 by ISRIC - World Soil Information, licensed under CC BY 4.0. Data acquired through ISRIC - World Soil Information. Cite as: Poggio, L., de Sousa, L. M., Batjes, N. H., Heuvelink, G. B. M., Kempen, B., Ribeiro, E., and Rossiter, D. (2021). SoilGrids 2.0: producing soil information for the globe with quantified spatial uncertainty. SOIL, 7, 217-240. https://doi.org/10.5194/soil-7-217-2021

Changes: PixelGust re-encoded ISRIC's maps as Cloud Optimized GeoTIFF files and converts the values to the units in each response. A point gets the value of the 250 m pixel that holds it or, on built-up areas, water and permanent ice where SoilGrids has no prediction, the value of the nearest mapped pixel within a few kilometres (the _source note of a soil object, or pixel in /v1/soil, gives the distance). The SoilGrids-compatible endpoint converts nothing and never moves to another pixel: it returns ISRIC's integers for the point's own pixel. Polygon and region values, and the depth averages in the dashboard and reports, are statistics PixelGust computes from those pixel values. PixelGust is not affiliated with or endorsed by ISRIC.

The values are model predictions for 250 m pixels, not measurements. ISRIC advises against using SoilGrids at the local or farm level. Do not use them for engineering design or any decision that needs measured soil data at a specific site.

In the soil object, keys that start with an underscore are notes, not soil properties: _attribution is a string, and _source (when present) is an object. Skip them when you loop over the properties.

Changed in October 2026: coarse fragments (cfvo) are now in vol%, so the numbers are 10 times smaller than the cm3/dm3 served before. Soil values at about a third of points moved to ISRIC's own pixel, where they had come from a neighbouring pixel.

🌊 TWI Licence and Method

Contains information from MERIT Hydro, which is made available here under the Open Database License (ODbL). The Topographic Wetness Index values PixelGust serves (flood_twi) are derived from MERIT Hydro and are licensed under the ODbL too, so you can share and reuse them on its terms. If you publish something made from them, include the notice above and a link to this section. A database you publish from them must stay under the ODbL.

Method: TWI = ln(a / tan β). Here a is MERIT Hydro's upstream drainage area (band upa, version 1.0.1, in km², converted to m²) divided by a 250 m contour width, and β is the slope in radians, with a floor of 0.001. The value is stored as TWI x 10, rounded to a whole number.

The layer's grid has a pixel of 0.0020833368743186295 degrees, a little over 7.5 arc-seconds and about 250 m. Its north-west corner is at longitude -180.00013888888893, latitude 90.00195464602304, and a cell's centre follows from its row and column. Each cell reads both sources at its own centre.

Elevation is USGS GMTED2010 breakline emphasis at 7.5 arc-seconds (be75, public domain): the GMTED cell that holds the cell's centre. Slope comes from each cell's four neighbours on GMTED's own grid, with a degree of 111,195.052 m, a sphere of radius 6,371,007.2 m, and a cell's east-west width taken at the latitude of GMTED's row. It is rounded to a whole degree before TWI, and turned into radians with π as 3.14159. Upstream area comes from MERIT Hydro's 3 arc-second grid in two steps: the mean of each 2 x 2 block of cells, kept as float32, with blocks counted from the edge of the 5 degree tile, then the 6 arc-second block that holds the cell's centre.

Sea cells stay out of a block's mean, and a block of sea has no value. A cell with no upa has no TWI, on sea and on land alike, and neither has a cell with no slope. A cell with upa where GMTED says 0 is land and has a TWI. GMTED2010 be75 holds 0 over Greenland and over a rectangle of the north Caspian (48 to 50 E near 44.7 N), so TWI there rests on the slope floor and rates wet.

The arithmetic is in a file you can run: twi-method.py. You supply the reading: a GeoTIFF and ArcGrid reader such as GDAL, and a loop over tiles that calls upstream_area() only with centres inside the tile. It works on MERIT Hydro and GMTED2010, which are free to download from the links above. MERIT Hydro asks you to register first. A whole download of upa is 57 tar files holding 1,150 tiles, and be75_grd.zip is 3,053,712,331 bytes.

Polygon statistics read the layer's cells inside the polygon. Region statistics read the layer at grid points 0.05 to 2 degrees apart, depending on the region's size, at most 500 points, and report their mean, minimum, maximum and standard deviation.

The field flood_twi_note carries this notice wherever a point returns flood_twi. In polygon, region and weather statistics flood_twi is an object, and the notice is its note.

Citation: Yamazaki D., Ikeshima D., Sosa J., Bates P.D., Allen G.H., Pavelsky T.M. (2019). MERIT Hydro: a high-resolution global hydrography map based on latest topography dataset. Water Resources Research, 55(6), 5053-5073.


GET /v1/weather

Current conditions from the latest NOAA GFS run (0.25 degree grid, updated every 6 hours), for the hour closest to now. The response adds model_run, model_run_time, data_age_hours and valid_time (UTC) so you can judge freshness.

ParameterTypeDescription
latfloatrequiredLatitude, -90 to 90
lonfloatrequiredLongitude (wrapped into -180 to 180)
Example Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://pixelgust.com/v1/weather?lat=40.64&lon=22.94"
Response (trimmed)
{
  "location": { "lat": 40.75, "lon": 23.0 },
  "stats": {
    "temperature_c": { "mean": 11.59, "min": null, "max": null },
    "dewpoint_c": { "mean": -0.87, "min": null, "max": null },
    "relative_humidity_pct": { "mean": 42, "min": null, "max": null },
    "wind_speed_ms": { "mean": 6.69, "min": null, "max": null },
    "wind_direction_deg": { "mean": 334, "min": null, "max": null },
    "surface_pressure_hpa": { "mean": 992.5, "min": null, "max": null },
    "precipitation_mm": { "mean": 0.0, "min": null, "max": null },
    "solar_radiation_downward_mj_m2": { "mean": 1.48, "min": null, "max": null },
    "elevation_m": { "mean": 36, "min": null, "max": null },
    "landcover": { "mean": "Built-up", "min": null, "max": null, "code": 50 }
  },
  "period": "Current Conditions: 2026-10-27 08:00 UTC (GFS 20261027 00Z)",
  "units": {
    "temperature_c": "°C",
    "dewpoint_c": "°C",
    "relative_humidity_pct": "%",
    "wind_speed_ms": "m/s",
    "wind_direction_deg": "degrees",
    "surface_pressure_hpa": "hPa",
    "precipitation_mm": "mm/h",
    "solar_radiation_downward_mj_m2": "MJ/m2/h",
    "elevation_m": "m",
    "landcover": "class"
  },
  "model_run": "20261027 00Z",
  "model_run_time": "2026-10-27T00:00:00Z",
  "data_age_hours": 8.2,
  "valid_time": "2026-10-27T08:00:00Z"
}

GET /v1/weather/forecast

Daily forecast for a point from the latest GFS run. day is 0-based: day 0 is the first forecast day, which is the day after the GFS run date (UTC), not necessarily today. The response lists the available days in forecast_dates, so day runs from 0 to one less than the number of dates listed, and gives the calendar date of the day returned. A day outside that range returns 422.

ParameterTypeDescription
latfloatrequiredLatitude, -90 to 90
lonfloatrequiredLongitude
dayintoptionalForecast day, 0-based (0 is the first forecast day). Default: 0
Example Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://pixelgust.com/v1/weather/forecast?lat=40.64&lon=22.94&day=2"
Response fields (trimmed)
{
  "location": { "lat": 40.75, "lon": 23.0 },
  "stats": {
    "temperature_c": { "mean": 8.85, "min": 3.85, "max": 13.85 },
    "precipitation_mm": { "mean": 4.2, "min": null, "max": null },
    ...
  },
  "period": "Forecast: 2026-10-29 (GFS 20261026 06Z)",
  "units": { "temperature_c": "°C", "precipitation_mm": "mm/day", ... },
  "model_run": "20261026 06Z",
  "day": 2,
  "date": "2026-10-29",
  "forecast_dates": ["2026-10-27", "2026-10-28", "2026-10-29", "2026-10-30", "2026-10-31", "2026-11-01", "2026-11-02"]
}

GET /v1/weather/historical

Climate averages for a point over 2015-2024 (ECMWF ERA5-Land, 0.1 degree grid, about 11 km). Pass month for that month's climatology: accumulations are then monthly totals, and min/max give the range over the ten years. Omit month for the annual climate: accumulations are annual totals and have no min/max. Monthly cloud cover is estimated from relative humidity and labelled "% (estimated)" in units. For a month-by-month series (2015 to 2025) use the MCP tool get_climate_timeseries.

ParameterTypeDescription
latfloatrequiredLatitude, -90 to 90
lonfloatrequiredLongitude
monthintoptionalMonth, 1 to 12. Omit it for the annual climate
Example Request
curl -H "X-API-Key: YOUR_KEY" \
  "https://pixelgust.com/v1/weather/historical?lat=40.64&lon=22.94&month=7"
Response (trimmed)
{
  "location": { "lat": 40.65018594455725, "lon": 22.95010497976847 },
  "stats": {
    "temperature_c": { "mean": 27.01, "min": 16.64, "max": 38.62 },
    "relative_humidity_pct": { "mean": 57, "min": 30, "max": 100 },
    "cloud_cover_pct": { "mean": 18, "min": null, "max": null, "estimated": true },
    "precipitation_mm": { "mean": 40.92, "min": 9.4, "max": 76.53 },
    "total_evaporation_mm": { "mean": 105.94, "min": 75.66, "max": 134.59 },
    "net_solar_radiation_mj_m2": { "mean": 652.97, "min": 636.4, "max": 684.92 },
    "snowfall_cm": { "mean": 0.0, "min": 0.0, "max": 0.0 }
  },
  "period": "July Average (2015-2024)",
  "units": {
    "temperature_c": "°C",
    "relative_humidity_pct": "%",
    "cloud_cover_pct": "% (estimated)",
    "precipitation_mm": "mm/month",
    "total_evaporation_mm": "mm/month",
    "net_solar_radiation_mj_m2": "MJ/m2/month",
    "snowfall_cm": "cm/month"
  },
  "notes": {
    "cloud_cover_pct": "Estimated from relative humidity: the source data has no cloud cover for this period."
  }
}

GET /v1/terrain

Elevation (m), slope and aspect (degrees) at 30 m resolution from the Copernicus GLO-30 DEM, plus the Topographic Wetness Index flood_twi (a flood susceptibility indicator, about 250 m, from MERIT Hydro flow accumulation and GMTED2010 slope).

ParameterTypeDescription
latfloatrequiredLatitude, -90 to 90
lonfloatrequiredLongitude
Response
{
  "lat": 40.5,
  "lon": 22.5,
  "terrain": {
    "elevation_m": 58,
    "slope_deg": 1.8,
    "aspect_deg": 23,
    "flood_twi": 13.1,
    "flood_twi_note": "Contains information from MERIT Hydro (https://global-hydrodynamics.github.io/MERIT_Hydro/), which is made available here under the Open Database License (https://opendatacommons.org/licenses/odbl/1-0/). Method: https://pixelgust.com/docs#twi-data"
  }
}

GET /v1/hazards

Flood susceptibility (flood_twi, the Topographic Wetness Index). Soil erosion is withdrawn for now while we test a new model: soil_erosion_t_ha_yr is null at every point, with a soil_erosion_note. The Fire Weather Index and frost risk are available through the MCP tool get_hazards.

ParameterTypeDescription
latfloatrequiredLatitude, -90 to 90
lonfloatrequiredLongitude
Response
{
  "lat": 40.5,
  "lon": 22.5,
  "hazards": {
    "soil_erosion_t_ha_yr": null,
    "soil_erosion_note": "Withdrawn for now while we test a new model.",
    "flood_twi": 13.1,
    "flood_twi_note": "Contains information from MERIT Hydro (https://global-hydrodynamics.github.io/MERIT_Hydro/), which is made available here under the Open Database License (https://opendatacommons.org/licenses/odbl/1-0/). Method: https://pixelgust.com/docs#twi-data"
  }
}

GET /v1/environment

NDVI from the latest Copernicus Global Land Service 10-day composite (300 m), annual evapotranspiration et_mm_year (MODIS MOD16A2, 500 m, mm/year) and the ESA WorldCover 2021 land cover class (served at 250 m, dominant class).

ParameterTypeDescription
latfloatrequiredLatitude, -90 to 90
lonfloatrequiredLongitude
Response
{
  "lat": 40.5,
  "lon": 22.5,
  "environment": {
    "ndvi": 0.38,
    "et_mm_year": 459.2,
    "landcover_class": "Cropland",
    "landcover_code": 40
  }
}

GET /v1/proximity

Straight-line distance in km to the nearest feature of six layers: Coastline and Highway (motorways and trunk roads) and Major Port from Natural Earth, Airport (large and medium airports) from OurAirports, and Hospital or clinic and School from Overture Maps Places. name is the layer label, not the name of the feature. Line layers are measured to their nearest stored vertex, so treat distances as approximate (0.1 km steps).

ParameterTypeDescription
latfloatrequiredLatitude, -90 to 90
lonfloatrequiredLongitude
Response
{
  "lat": 40.5,
  "lon": 22.5,
  "proximity": {
    "coastline": { "name": "Coastline", "distance_km": 7.6 },
    "roads": { "name": "Highway", "distance_km": 6.0 },
    "airports": { "name": "Airport", "distance_km": 39.8 },
    "ports": { "name": "Major Port", "distance_km": 38.3 },
    "hospitals": { "name": "Hospital or clinic", "distance_km": 7.0 },
    "schools": { "name": "School", "distance_km": 3.3 }
  }
}

GET /v1/soil

Soil properties at any point from SoilGrids 2.0 by ISRIC - World Soil Information, at 250 m: clay, sand, silt, bulk density, coarse fragments, organic carbon (content, density and the 0-30 cm stock), total nitrogen, cation exchange capacity and pH, at six depths from 0-5 cm to 100-200 cm. Values are the maps' mean predictions, in the units listed in each response.

You can try it without a key: 20 calls a day and 5 a minute per network address. A free key gives you 50 calls a day, and paid plans more (see Plans and Rate Limits). With a key, a soil call counts once against your account's daily pool, like any other endpoint.

SoilGrids values are model estimates, not measurements. ISRIC's models explain 30% to 70% of the variation in measured data, and ISRIC advises against using SoilGrids at the local or farm level. Do not use them for engineering design, foundations, geotechnical work or site investigation.

ParameterTypeDescription
latfloatrequiredLatitude, -90 to 90
lonfloatrequiredLongitude (wrapped into -180 to 180)
propertystringoptionalRepeat it, or give a comma list: bdod, cec, cfvo, clay, nitrogen, ocd, ocs, phh2o, sand, silt, soc. Default: all 11. Any other name gets 422
depthstringoptionalRepeat it, or give a comma list: 0-5cm, 5-15cm, 15-30cm, 30-60cm, 60-100cm, 100-200cm, and 0-30cm for ocs. Default: all. Pairs that do not exist are left out (ocs is mapped at 0-30cm only, the other properties at the six standard depths). If no pair is left, the answer is 422
nearestbooloptionalWhen the point's own pixel has no prediction for any requested pair, use the nearest mapped pixel within a few kilometres and report it in pixel. Default: true
PropertyWhat it isUnitDepths
bdodBulk density of the fine earthg/cm3six standard
cecCation exchange capacity at pH 7cmol(c)/kgsix standard
cfvoCoarse fragments (gravel and stones)vol%six standard
clayClay share of the fine earth%six standard
nitrogenTotal nitrogeng/kgsix standard
ocdOrganic carbon densitykg/m3six standard
ocsOrganic carbon stockkg/m20-30cm
phh2opH in waterpHsix standard
sandSand share of the fine earth%six standard
siltSilt share of the fine earth%six standard
socSoil organic carbon contentg/kgsix standard

Values are ISRIC's integers divided by ISRIC's d_factor, with two decimals for bdod and nitrogen and one for the rest.

Example Request
# No key needed for a first try
curl "https://pixelgust.com/v1/soil?lat=41.196&lon=-7.557"

# With a key, three properties at two depths
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://pixelgust.com/v1/soil?lat=41.196&lon=-7.557&property=clay,soc,nitrogen&depth=0-5cm,5-15cm"
Response
{
  "lat": 41.196,
  "lon": -7.557,
  "soil": {
    "clay": { "0-5cm": 12.6, "5-15cm": 11.1 },
    "nitrogen": { "0-5cm": 6.49, "5-15cm": 2.11 },
    "soc": { "0-5cm": 75.8, "5-15cm": 38.1 },
    "units": { "clay": "%", "nitrogen": "g/kg", "soc": "g/kg" }
  },
  "pixel": { "lat": 41.19621, "lon": -7.55831, "distance_m": 112, "nearest": false, "note": null },
  "source": {
    "dataset": "SoilGrids 2.0, mean predictions, 250 m",
    "provider": "ISRIC - World Soil Information",
    "license": "CC BY 4.0",
    "license_url": "https://creativecommons.org/licenses/by/4.0/",
    "citation": "Poggio, L., de Sousa, L. M., Batjes, N. H., Heuvelink, G. B. M., Kempen, B., Ribeiro, E., and Rossiter, D. (2021). SoilGrids 2.0: producing soil information for the globe with quantified spatial uncertainty. SOIL, 7, 217-240. https://doi.org/10.5194/soil-7-217-2021",
    "source_url": "https://files.isric.org/soilgrids/latest/data/",
    "built_utc": "2026-10-31T02:05:01Z",
    "changes": "PixelGust re-encoded ISRIC's maps as Cloud Optimized GeoTIFF files and converts the values to the units listed. Where the point's own pixel has no prediction, the values come from the nearest mapped pixel within a few kilometres, as pixel reports.",
    "affiliation": "PixelGust is not affiliated with or endorsed by ISRIC",
    "attribution_url": "https://pixelgust.com/docs#soil-attribution",
    "note": "Model estimates for 250 m pixels, not measurements. ISRIC advises against using SoilGrids at the local or farm level. Not for engineering design."
  }
}
FieldDescription
soilEvery requested pair that exists, null where SoilGrids has no prediction, and the units of the properties returned
pixelCentre of the 250 m pixel the values come from and its distance in metres from your point. nearest is true when the nearest mapped pixel was used, and note explains an answer whose values are all null
sourceProvider, licence, citation, where PixelGust got the maps (source_url) and when it built its copy (built_utc). Pass it on with the values (see soil data attribution)

SoilGrids has no predictions for built-up areas, water and permanent ice. On such a pixel, /v1/soil looks for the nearest mapped pixel within a few kilometres and reports its true distance. Points beyond the maps' coverage (about 56°S to 82.7°N) come back with null values and a note. For bulk density, cation exchange capacity, nitrogen, organic carbon and pH, a value of 0 is treated as no prediction. A coarse fragments value of 0 is real (no gravel).

Python
import requests

r = requests.get(
    "https://pixelgust.com/v1/soil",
    params={"lat": 41.196, "lon": -7.557,
            "property": ["clay", "sand", "silt", "soc"],
            "depth": ["0-5cm", "5-15cm"]},
    headers={"X-API-Key": "YOUR_API_KEY"},
    timeout=30,
)
r.raise_for_status()
soil = r.json()["soil"]
print(soil["clay"]["0-5cm"], soil["units"]["clay"])
R (httr2)
library(httr2)

resp <- request("https://pixelgust.com/v1/soil") |>
  req_url_query(lat = 41.196, lon = -7.557,
                property = c("clay", "soc"), .multi = "explode") |>
  req_headers(`X-API-Key` = Sys.getenv("PIXELGUST_API_KEY")) |>
  req_perform()
soil <- resp_body_json(resp)$soil
soil$clay$`0-5cm`

🟤 Credit SoilGrids when you use these values

Soil data: SoilGrids 2.0 by ISRIC - World Soil Information, licensed under CC BY 4.0. Cite Poggio et al. (2021), https://doi.org/10.5194/soil-7-217-2021. The full citation, what PixelGust changes and the notes on use are under soil data attribution. PixelGust is not affiliated with or endorsed by ISRIC.


GET /soilgrids/v2.0/properties/query

Code written for ISRIC's SoilGrids REST API v2.0 works with PixelGust when you change the base URL from https://rest.isric.org/soilgrids/v2.0 to https://pixelgust.com/soilgrids/v2.0. Requests and responses follow ISRIC's properties/query format: the same parameters (lon, lat, and repeated property, depth and value) and the same JSON, with integer values in ISRIC's mapped units (divide by d_factor).

Differences from ISRIC's service:

  • Mean values only. Q0.05, Q0.5, Q0.95 and uncertainty come back as null, and the water content layers wv0010, wv0033 and wv1500 come back with null values. An extra pixelgust key at the end of each response lists what was not served, with the attribution and the date PixelGust built its copy of the maps (built_utc).
  • An unknown property, depth or value gets a 422 JSON error in ISRIC's format. Every other error (401, 404, 429, 500, 501, 503) is plain text, as ISRIC's own errors are, with the status code and the Retry-After and X-RateLimit-* headers. soilDB returns NA for sites over the limit, and verbose = TRUE prints the reason.
  • Like ISRIC, a pixel without a prediction answers null: this endpoint never moves to a neighbouring pixel.
  • classification/query (WRB soil classes) and properties/layers are not available and answer 501.
  • Without a key: 20 calls a day and 5 a minute, counted together with /v1/soil. With a key, your plan's limits apply. If your tool cannot send headers, put the key in the base URL: https://pixelgust.com/k/YOUR_API_KEY/soilgrids/v2.0. soilDB takes the full endpoint, which ends in /properties/query (example below). Anyone who sees that URL can use your quota, so revoke and replace a key that leaks (API Keys menu).
  • PixelGust is not affiliated with or endorsed by ISRIC. ISRIC's own service and data are at https://soilgrids.org.
Example Request
curl "https://pixelgust.com/soilgrids/v2.0/properties/query?lon=-7.557&lat=41.196&property=clay&property=soc&depth=0-5cm&value=mean"
Response
{"type":"Feature","geometry":{"type":"Point","coordinates":[-7.557,41.196]},"properties":{"layers":[{"name":"clay","unit_measure":{"d_factor":10,"mapped_units":"g/kg","target_units":"%","uncertainty_unit":""},"depths":[{"range":{"top_depth":0,"bottom_depth":5,"unit_depth":"cm"},"label":"0-5cm","values":{"mean":126}}]},{"name":"soc","unit_measure":{"d_factor":10,"mapped_units":"dg/kg","target_units":"g/kg","uncertainty_unit":""},"depths":[{"range":{"top_depth":0,"bottom_depth":5,"unit_depth":"cm"},"label":"0-5cm","values":{"mean":758}}]}]},"query_time_s":0.031,"pixelgust":{"not_served":{"properties":[],"values":[]},"attribution":"SoilGrids 2.0 by ISRIC - World Soil Information, CC BY 4.0","license_url":"https://creativecommons.org/licenses/by/4.0/","citation":"https://doi.org/10.5194/soil-7-217-2021","source_url":"https://files.isric.org/soilgrids/latest/data/","built_utc":"2026-10-31T02:05:01Z","affiliation":"PixelGust is not affiliated with or endorsed by ISRIC","docs":"https://pixelgust.com/docs#soilgrids"}}
Python
import requests

BASE = "https://pixelgust.com/soilgrids/v2.0"   # was https://rest.isric.org/soilgrids/v2.0
r = requests.get(f"{BASE}/properties/query",
                 params={"lon": -7.557, "lat": 41.196, "property": ["clay", "soc"],
                         "depth": ["0-5cm"], "value": ["mean"]},
                 headers={"X-API-Key": "YOUR_API_KEY"}, timeout=30)
for layer in r.json()["properties"]["layers"]:
    d = layer["depths"][0]
    print(layer["name"], d["values"]["mean"] / layer["unit_measure"]["d_factor"], layer["unit_measure"]["target_units"])
R (soilDB)
library(soilDB)

sites <- data.frame(id = "douro", lat = 41.196, lon = -7.557)
# Keyless, up to 20 sites a day
s <- fetchSoilGrids(sites, endpoint = "https://pixelgust.com/soilgrids/v2.0/properties/query")
# With a key
s <- fetchSoilGrids(sites, endpoint = "https://pixelgust.com/k/YOUR_API_KEY/soilgrids/v2.0/properties/query")

soilDB waits 61 seconds after every 5 sites to respect ISRIC's fair use, whatever the endpoint. For many sites, call /v1/soil directly (examples above). soilDB's quantile columns come back as NA.

🟤 Credit SoilGrids when you use these values

Soil data: SoilGrids 2.0 by ISRIC - World Soil Information, licensed under CC BY 4.0. Cite Poggio et al. (2021), https://doi.org/10.5194/soil-7-217-2021. The full citation, what PixelGust changes and the notes on use are under soil data attribution. PixelGust is not affiliated with or endorsed by ISRIC.


POST /v1/polygon/stats

Zonal statistics (mean, min, max and more) over a polygon: weather, terrain, hazards, environment, soil and population. Coordinates are [longitude, latitude] pairs forming a simple ring (no self-intersections, closed or open). The area is measured on the sphere and must fit your plan (see limits).

Request Body (JSON)

FieldTypeDescription
coordinatesarrayrequiredArray of [lon, lat] pairs, at least 3
modestringoptionalnowcast, forecast, or historical (omit for historical)
dayintoptionalForecast day, 0-based, used when mode is forecast (the available days are listed in forecast_dates)
monthintoptionalMonth, 1 to 12, for the historical monthly climatology. Omit it for the annual climate
Example Request
curl -X POST "https://pixelgust.com/v1/polygon/stats" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "coordinates": [
      [23.7, 37.9], [23.8, 37.9], [23.8, 38.0], [23.7, 38.0], [23.7, 37.9]
    ],
    "mode": "nowcast"
  }'

This ring covers about 97.5 km², inside the Free plan's 100 km². The response has these top-level fields:

FieldDescription
centroid, bboxCentre and bounding box of the polygon
area_approx_km2Geodesic area in km²
terrain, hazards, environment, demographics, soilZonal statistics per variable. Soil erosion is withdrawn for now: hazards.soil_erosion_t_ha_yr holds a null mean and a note
weather, weather_sample_pointsWeather statistics over the grid cells inside the polygon, and how many cells were used
period, unitsTime basis and units of the weather values, as for the point endpoints
dateCalendar date of the forecast day (forecast mode only)

GET /v1/usage

Your plan, today's usage and your polygon limits. This call does not count against the quota. Example for a Basic key:

Response
{
  "tier": "basic",
  "daily_usage": 42,
  "daily_limit": 500,
  "remaining": 458,
  "polygon_limits": {
    "max_vertices": 500,
    "max_area_km2": 5000
  }
}

GET /v1/health

Liveness check for uptime monitors. Needs no key and costs no quota. gfs_nowcast names the GFS run being served and its age in hours.

Response
{
  "status": "ok",
  "gfs_nowcast": { "model_run": "20261027 00Z", "age_hours": 8.2 }
}

MCP Server (AI Assistants)

Use PixelGust directly inside Claude, ChatGPT, Cursor and other AI assistants that support the Model Context Protocol. The server exposes ten tools: get_current_weather, get_weather_forecast, get_historical_climate, get_climate_timeseries, get_terrain, get_hazards (including the Fire Weather Index and frost risk), get_environment, get_soil (the /v1/soil answer), get_proximity and get_polygon_stats.

Server URL: https://pixelgust.com/mcp (Streamable HTTP transport)

It works without any setup. Without a key, each network address gets the free limits: 50 tool calls per day and 10 per minute. Connectors whose requests arrive without their own client address, such as claude.ai connectors, all share one keyless pool of 500 calls per day and 60 per minute. Keyless counts are kept in memory on each server instance and reset at 00:00 UTC, so treat them as approximate. Add your own free API key to get your own 50 calls per day that nobody else uses. A paid plan raises the limits. With a key, MCP and REST calls count against the same daily pool.

Claude Code:

claude mcp add --transport http pixelgust https://pixelgust.com/mcp

With an API key:

claude mcp add --transport http pixelgust https://pixelgust.com/mcp --header "X-API-Key: pk_your_key"

claude.ai, Claude Desktop and ChatGPT connectors: add a custom connector with the URL https://pixelgust.com/mcp. These connectors cannot send headers, so to use your key put it on the URL: https://pixelgust.com/mcp?key=pk_your_key. Treat that URL like a password.
Cursor and other MCP clients: add a Streamable HTTP server with the same URL and pass the X-API-Key header in the server config if you have a key.

Example prompts once connected: "What is the fire risk and the forecast for the next days at 38.0, 23.7?", "Has this location gotten drier over the last decade?", "Compare the terrain and flood susceptibility of these two coordinates." Setup guide: Weather MCP server for Claude.


Error Codes

Errors return a JSON object with a detail field. The SoilGrids-compatible endpoint is the exception: it answers 422 in ISRIC's JSON format and every other error as plain text, as ISRIC does.

StatusMeaning
400Over a plan limit: polygon too large or too many vertices
401Missing, invalid or revoked API key (the soil endpoints answer without a key, but never with an invalid one)
422Invalid input: latitude outside -90 to 90, a missing or non-numeric parameter, a month outside 1 to 12, a forecast day outside the available range, an unknown polygon mode, a self-intersecting polygon, or an unknown soil property, depth or value
429Daily quota or per-minute burst exceeded: wait for Retry-After seconds
500Internal error. Retry later, and contact support@pixelgust.com if it persists
501Not available on PixelGust: properties/layers and classification/query of the SoilGrids-compatible endpoint. Never counted
503A dataset is temporarily unavailable (for example proximity or soil data, or GFS data while an instance starts). Retry after Retry-After when present. Soil data that is unavailable (Retry-After 300), or a server busy with other soil reads (Retry-After 5), is detected before the daily count and costs no quota. A soil read that fails after the count (Retry-After 60) counts as a call, like a failed read on any /v1 endpoint

For 422, detail is a string when PixelGust rejects a value, and a list of objects when the request does not match the schema (a missing parameter, text where a number is expected, or a value outside a declared range):

422 from a PixelGust check
GET /v1/weather?lat=95&lon=22.94

{ "detail": "lat must be between -90 and 90 (got 95.0)" }
422 from schema validation
GET /v1/weather/historical?lat=40.64&lon=22.94&month=13

{
  "detail": [
    {
      "type": "less_than_equal",
      "loc": ["query", "month"],
      "msg": "Input should be less than or equal to 12",
      "input": "13",
      "ctx": { "le": 12 }
    }
  ]
}