Free Weather API: Get Weather Data by Coordinates (JSON, REST)

Published March 22, 2026 · Updated November 6, 2026 · 6 min read

If you are building an application that needs weather data, climate history, terrain analysis, or environmental information, the PixelGust API gives you access to all of this through a simple REST interface. Send coordinates, get JSON back. No complex setup or expensive subscriptions required.

Quick start: Open PixelGust, open the API Keys menu, and generate your free API key (50 calls per day). You can start making requests immediately. The full reference is in the API documentation.

What Data Is Available?

CategoryDataModes
WeatherTemperature, humidity, wind, precipitation, cloud cover, solar radiationCurrent, Forecast, Historical
TerrainElevation, slope, aspect, TWICurrent
EnvironmentNDVI, evapotranspiration, land coverCurrent
HazardsFlood susceptibility (TWI)Current
ProximityDistance to the coastline, highways, airports, major ports, hospitals or clinics, and schoolsCurrent
DemographicsPopulation densityCurrent

Getting Started

  1. Create an account at pixelgust.com/app using Google sign-in.
  2. Open the API Keys menu from your account menu.
  3. Generate an API key. The free tier includes 50 calls per day to every endpoint.
  4. Make your first request using the examples below.

API Examples

Current Weather

Get real-time weather conditions for any coordinates:

GET https://pixelgust.com/v1/weather?lat=40.64&lon=22.94

Headers:
  X-API-Key: your_api_key_here

Response (trimmed):
{
  "location": { "lat": 40.75, "lon": 23.0 },
  "stats": {
    "temperature_c": { "mean": 11.59, "min": null, "max": null },
    "relative_humidity_pct": { "mean": 42, "min": null, "max": null },
    "wind_speed_ms": { "mean": 6.69, "min": null, "max": null },
    "precipitation_mm": { "mean": 0.0, "min": null, "max": null }
  },
  "period": "Current Conditions: 2026-10-27 08:00 UTC (GFS 20261027 00Z)",
  "units": {
    "temperature_c": "°C",
    "relative_humidity_pct": "%",
    "wind_speed_ms": "m/s",
    "precipitation_mm": "mm/h"
  },
  "model_run": "20261027 00Z",
  "valid_time": "2026-10-27T08:00:00Z"
}

Read values as stats[key]["mean"], and the unit and time basis from units[key].

Historical Climate Data

Get the 2015-2024 climate for one month (omit month for the annual climate):

GET https://pixelgust.com/v1/weather/historical?lat=40.64&lon=22.94&month=7

Response (trimmed):
{
  "stats": {
    "temperature_c": { "mean": 27.01, "min": 16.64, "max": 38.62 },
    "precipitation_mm": { "mean": 40.92, "min": 9.4, "max": 76.53 }
  },
  "period": "July Average (2015-2024)",
  "units": { "temperature_c": "°C", "precipitation_mm": "mm/month" }
}

Terrain and Environment

Terrain, vegetation and land cover have their own endpoints:

GET https://pixelgust.com/v1/terrain?lat=40.5&lon=22.5
{
  "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 https://pixelgust.com/v1/environment?lat=40.5&lon=22.5
{
  "lat": 40.5,
  "lon": 22.5,
  "environment": { "ndvi": 0.38, "et_mm_year": 459.2, "landcover_class": "Cropland", "landcover_code": 40 }
}

The weather responses also carry this point context (elevation, land cover, NDVI, population density) inside stats.

Use Cases

Real Estate Platforms

Enrich property listings with environmental data. Show buyers the climate profile, flood risk, and terrain characteristics of every property. Call the API with the property coordinates to get instant environmental context.

Agricultural Tech

Build precision agriculture tools that use NDVI, weather history, and soil data to provide actionable insights for farmers. The historical weather endpoint gives you the climate baseline needed for crop suitability analysis.

Renewable Energy Software

Integrate solar radiation and wind speed data into energy yield estimation tools. The 10-year historical dataset provides the statistical foundation for bankable resource assessments.

Insurance and Risk Platforms

Automate climate risk scoring for property portfolios. Combine flood susceptibility, weather extremes, and terrain characteristics to generate risk profiles at scale.

IoT and Smart Home

Add hyper-local weather context to IoT dashboards. Current weather data helps smart home systems optimize heating, cooling, and irrigation based on actual conditions.

Rate Limits and Pricing

A free key allows 50 calls per day and 10 per minute, with polygons up to 100 km². Basic (EUR 19 per month) allows 500 calls per day, Pro (EUR 49) 5,000. Every plan reaches every endpoint. The daily count resets at 00:00 UTC, and each response reports what is left in X-RateLimit-* headers. Details: plans and rate limits.

Response Format

All responses are JSON. Weather responses include a units object that states the unit and time basis of every value (for example "precipitation_mm": "mm/month"), timestamps use ISO 8601 in UTC, and distances are in kilometers. Errors return an HTTP status code and a detail message. See the error codes.

Get Your Free API Key

Start integrating weather and environmental data into your applications today.

Generate API Key

Frequently Asked Questions

Is there a free weather API?

Yes. A free PixelGust API key gives 50 calls per day to every endpoint: current weather, the daily forecast (7 days), historical climate averages for 2015-2024, terrain, NDVI and land cover, hazards and proximity. Responses are JSON. Paid plans raise the daily volume and the polygon size.

How do I get a weather API key?

Sign in at pixelgust.com/app, open the API Keys menu, and generate a free API key. Send it in the X-API-Key header of each request.

What data does the PixelGust API return?

Current weather (temperature, humidity, wind, pressure, precipitation, solar radiation), daily forecasts, historical monthly and annual climate averages (2015-2024), terrain (elevation, slope, aspect, TWI), NDVI, evapotranspiration and land cover, flood susceptibility, distances to six kinds of infrastructure, and zonal statistics for polygons. Every weather response has a units object.

Try PixelGust Free

Get instant weather, terrain, and hazard profiles for any land parcel.

Open Map