PixelGust Public API v1 API
Weather, climate, terrain, hazard, environment and polygon data
Weather, climate, terrain, hazard, environment and polygon data
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pixelgust-com:pixelgust-com-public-api-v1-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Pixelgust Com Public API v1 API
version: 1.1.0
description: 'Operations tagged Public API v1 across 2 of this provider''s published API definitions: pixelgust-com-openapi.json, pixelgust-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://pixelgust.com/v1
security:
- ApiKeyHeader: []
tags:
- name: Public API v1
description: Weather, climate, terrain, hazard, environment and polygon data
paths:
/weather:
get:
tags:
- Public API v1
summary: Current weather conditions
description: Get current weather (nowcast) for a point. Returns temperature, humidity, precipitation, wind, pressure, cloud cover, and more.
operationId: v1_weather_weather_get
parameters:
- name: lat
in: query
required: true
schema:
type: number
description: Latitude in decimal degrees, -90 to 90
title: Lat
description: Latitude in decimal degrees, -90 to 90
- name: lon
in: query
required: true
schema:
type: number
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
title: Lon
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: API key (alternative to X-API-Key header)
title: Api Key
description: API key (alternative to X-API-Key header)
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
servers:
- url: https://pixelgust.com/v1
/weather/forecast:
get:
tags:
- Public API v1
summary: Weather forecast
description: 'Get the daily weather forecast for a point. day is 0-based: day 0 is the first forecast day (the day after the GFS run date, UTC). forecast_dates in the response lists all available days (currently 6 or 7 depending on the model run). A day outside that range returns 422.'
operationId: v1_weather_forecast_weather_forecast_get
parameters:
- name: lat
in: query
required: true
schema:
type: number
description: Latitude in decimal degrees, -90 to 90
title: Lat
description: Latitude in decimal degrees, -90 to 90
- name: lon
in: query
required: true
schema:
type: number
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
title: Lon
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
- name: day
in: query
required: false
schema:
type: integer
minimum: 0
description: Forecast day, 0-based (0 is the first forecast day)
default: 0
title: Day
description: Forecast day, 0-based (0 is the first forecast day)
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
servers:
- url: https://pixelgust.com/v1
/weather/historical:
get:
tags:
- Public API v1
summary: Historical weather averages
description: Get historical ERA5 weather averages for a point. Optional month filter (1-12).
operationId: v1_weather_historical_weather_historical_get
parameters:
- name: lat
in: query
required: true
schema:
type: number
description: Latitude in decimal degrees, -90 to 90
title: Lat
description: Latitude in decimal degrees, -90 to 90
- name: lon
in: query
required: true
schema:
type: number
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
title: Lon
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
- name: month
in: query
required: false
schema:
anyOf:
- type: integer
maximum: 12
minimum: 1
- type: 'null'
description: Month (1-12) for monthly average, or omit for annual
title: Month
description: Month (1-12) for monthly average, or omit for annual
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
servers:
- url: https://pixelgust.com/v1
/terrain:
get:
tags:
- Public API v1
summary: Terrain data
description: Get elevation, slope, aspect, and TWI for a point.
operationId: v1_terrain_terrain_get
parameters:
- name: lat
in: query
required: true
schema:
type: number
description: Latitude in decimal degrees, -90 to 90
title: Lat
description: Latitude in decimal degrees, -90 to 90
- name: lon
in: query
required: true
schema:
type: number
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
title: Lon
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
servers:
- url: https://pixelgust.com/v1
/hazards:
get:
tags:
- Public API v1
summary: Hazard data
description: 'Get flood risk (TWI) for a point. Soil erosion is withdrawn for now: soil_erosion_t_ha_yr is null, and soil_erosion_note says why.'
operationId: v1_hazards_hazards_get
parameters:
- name: lat
in: query
required: true
schema:
type: number
description: Latitude in decimal degrees, -90 to 90
title: Lat
description: Latitude in decimal degrees, -90 to 90
- name: lon
in: query
required: true
schema:
type: number
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
title: Lon
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
servers:
- url: https://pixelgust.com/v1
/environment:
get:
tags:
- Public API v1
summary: Environment data
description: Get NDVI, evapotranspiration, and land cover for a point.
operationId: v1_environment_environment_get
parameters:
- name: lat
in: query
required: true
schema:
type: number
description: Latitude in decimal degrees, -90 to 90
title: Lat
description: Latitude in decimal degrees, -90 to 90
- name: lon
in: query
required: true
schema:
type: number
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
title: Lon
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
servers:
- url: https://pixelgust.com/v1
/proximity:
get:
tags:
- Public API v1
summary: Proximity data
description: Straight-line distance in km from a point to the nearest coastline, highway (motorway or trunk road), airport (large or medium), major port, hospital or clinic, and school. Each layer is returned with its display name and distance_km.
operationId: v1_proximity_proximity_get
parameters:
- name: lat
in: query
required: true
schema:
type: number
description: Latitude in decimal degrees, -90 to 90
title: Lat
description: Latitude in decimal degrees, -90 to 90
- name: lon
in: query
required: true
schema:
type: number
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
title: Lon
description: Longitude in decimal degrees, -180 to 180 (other values are wrapped)
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
servers:
- url: https://pixelgust.com/v1
/polygon/stats:
post:
tags:
- Public API v1
summary: Polygon zonal statistics
description: Compute weather, terrain, hazard, and environment statistics for a polygon area. Coordinates are [longitude, latitude] pairs. mode is nowcast, forecast or historical (omit it for historical). Polygon size limits depend on tier.
operationId: v1_polygon_stats_polygon_stats_post
parameters:
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/V1PolygonRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
servers:
- url: https://pixelgust.com/v1
/health:
get:
tags:
- Public API v1
summary: Service health
description: Liveness check for the API. Needs no key and costs no quota.
operationId: v1_health_health_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
security: []
servers:
- url: https://pixelgust.com/v1
/usage:
get:
tags:
- Public API v1
summary: Check API usage
description: Check your current daily API usage and tier limits.
operationId: v1_usage_usage_get
parameters:
- name: api_key
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Api Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
servers:
- url: https://pixelgust.com/v1
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
V1PolygonRequest:
properties:
coordinates:
items:
items:
type: number
type: array
type: array
title: Coordinates
mode:
anyOf:
- type: string
- type: 'null'
title: Mode
day:
anyOf:
- type: integer
minimum: 0.0
- type: 'null'
title: Day
month:
anyOf:
- type: integer
maximum: 12.0
minimum: 1.0
- type: 'null'
title: Month
type: object
required:
- coordinates
title: V1PolygonRequest
example:
coordinates:
- - 23.7
- 37.9
- - 23.8
- 37.9
- - 23.8
- 38.0
- - 23.7
- 38.0
- - 23.7
- 37.9
mode: nowcast
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
securitySchemes:
ApiKeyHeader:
type: apiKey
in: header
name: X-API-Key
x-refined-from:
- pixelgust-com-openapi.json
- pixelgust-com-openapi.json