GET /weather/point/2/json

The Weather API provides weather data for the specific point

Query parameters

  • lat number Required

    Latitude

    Minimum value is -90, maximum value is 90.

  • lon number Required

    Longitude

    Minimum value is -180, maximum value is 180.

Responses

  • 200 application/json

    Results matching criteria

    Hide response attributes Show response attributes object
    • status string(string) Required

      Values are OK or error.

    • code integer Required
    • content object Required
      Hide content attribute Show content attribute object
      • weather array[object] Required
        Hide weather attribute Show weather attribute object
        • <pattern:YYYY-MM-DD> array[object]
          Hide <pattern:YYYY-MM-DD> attribute Show <pattern:YYYY-MM-DD> attribute object
          • <pattern:HH:II> object
            Hide <pattern:HH:II> attributes Show <pattern:HH:II> attributes object
            • clouds object Required
              Hide clouds attributes Show clouds attributes object
              • total object
                Hide total attributes Show total attributes object
                • value number
                • unit string
                • localData integer

                  This field is defined only when there is local data available

              • high object
                Hide high attributes Show high attributes object
                • value number
                • unit string
                • localData integer

                  This field is defined only when there is local data available

              • middle object
                Hide middle attributes Show middle attributes object
                • value number
                • unit string
                • localData integer

                  This field is defined only when there is local data available

              • low object
                Hide low attributes Show low attributes object
                • value number
                • unit string
                • localData integer

                  This field is defined only when there is local data available

              • convective object
                Hide convective attributes Show convective attributes object
                • value number
                • unit string
                • localData integer

                  This field is defined only when there is local data available

              • boundary object
                Hide boundary attributes Show boundary attributes object
                • value number
                • unit string
                • localData integer

                  This field is defined only when there is local data available

            • reltiveHumidity object Required
              Hide reltiveHumidity attributes Show reltiveHumidity attributes object
              • value number
              • unit string
            • liftedIndex object Required
              Hide liftedIndex attributes Show liftedIndex attributes object
              • value number
              • unit string
            • isotherm object
              Hide isotherm attributes Show isotherm attributes object
              • value number
              • unit string
              • temperature string
            • HPBL object Required
              Hide HPBL attributes Show HPBL attributes object
              • value number
              • unit string
            • precipitation object Required
              Hide precipitation attributes Show precipitation attributes object
              • total object
                Hide total attributes Show total attributes object
                • value number
                • unit string
              • convective object
                Hide convective attributes Show convective attributes object
                • value number
                • unit string
              • probability object
                Hide probability attributes Show probability attributes object
                • value number
                • unit string
            • temperature object Required
              Hide temperature attributes Show temperature attributes object
              • isInversion integer

                Values are 0 or 1.

              • surface object
                Hide surface attributes Show surface attributes object
                • value number
                • unit string
                • color object
                  Hide color attributes Show color attributes object
                  • background string
                  • text string
                • localStation string

                  This field is defined only when there is local data available

              • min object
                Hide min attributes Show min attributes object
                • value number
                • unit string
                • color object
                  Hide color attributes Show color attributes object
                  • background string
                  • text string
              • max object
                Hide max attributes Show max attributes object
                • value number
                • unit string
                • color object
                  Hide color attributes Show color attributes object
                  • background string
                  • text string
              • felt object
                Hide felt attributes Show felt attributes object
                • value number
                • unit string
                • color object
                  Hide color attributes Show color attributes object
                  • background string
                  • text string
            • wind object Required
              Hide wind attributes Show wind attributes object
              • speed object
                Hide speed attributes Show speed attributes object
                • value number
                • unit string
              • gust object
                Hide gust attributes Show gust attributes object
                • value number
                • unit string
              • direction object
                Hide direction attributes Show direction attributes object
                • value number
                • unit string
                • icon integer

                  Values are 0, 45, 90, 135, 180, 225, 270, or 315.

            • pressure object Required
              Hide pressure attributes Show pressure attributes object
              • value number
              • unit string
              • level string
            • heatIndex string Required

              Values are 1/4, 2/4, 3/4, 4/4, or .

  • 400 application/json

    Bad input parameter

    Hide response attributes Show response attributes object
    • status string(string) Required

      Value is error.

    • code integer Required
    • message string Required
  • 401 application/json

    Authorization failed

    Hide response attributes Show response attributes object
    • status string(string) Required

      Value is error.

    • code integer Required
    • message string Required
  • 503 application/json

    Service Temporarily Unavailable

    Hide response attributes Show response attributes object
    • status string(string) Required

      Value is error.

    • code integer Required
    • message string Required
GET /weather/point/2/json
curl \
 --request GET 'https://api.geoapi.me/weather/point/2/json?lat=42.0&lon=42.0' \
 --header "X-Api-Key: $API_KEY"
Response examples (200)
{
  "status": "OK",
  "code": 200,
  "content": {
    "weather": [
      {
        "<pattern:YYYY-MM-DD>": [
          {
            "<pattern:HH:II>": {
              "clouds": {
                "total": {
                  "value": 76,
                  "unit": "%",
                  "localData": 1
                },
                "high": {
                  "value": 76,
                  "unit": "%",
                  "localData": 1
                },
                "middle": {
                  "value": 76,
                  "unit": "%",
                  "localData": 1
                },
                "low": {
                  "value": 76,
                  "unit": "%",
                  "localData": 1
                },
                "convective": {
                  "value": 76,
                  "unit": "%",
                  "localData": 1
                },
                "boundary": {
                  "value": 76,
                  "unit": "%",
                  "localData": 1
                }
              },
              "reltiveHumidity": {
                "value": 76,
                "unit": "%"
              },
              "liftedIndex": {
                "value": 7.41,
                "unit": "index"
              },
              "isotherm": {
                "value": 1134,
                "unit": "m",
                "temperature": "0 C"
              },
              "HPBL": {
                "value": 1134,
                "unit": "m"
              },
              "precipitation": {
                "total": {
                  "value": 11.3,
                  "unit": "mm"
                },
                "convective": {
                  "value": 11.3,
                  "unit": "mm"
                },
                "probability": {
                  "value": 76,
                  "unit": "%"
                }
              },
              "temperature": {
                "isInversion": 1,
                "surface": {
                  "value": 11,
                  "unit": "C",
                  "color": {
                    "background": "#ff9900",
                    "text": "#ffffff"
                  },
                  "localStation": "Salzburg Airport"
                },
                "min": {
                  "value": 11,
                  "unit": "C",
                  "color": {
                    "background": "#ff9900",
                    "text": "#ffffff"
                  }
                },
                "max": {
                  "value": 11,
                  "unit": "C",
                  "color": {
                    "background": "#ff9900",
                    "text": "#ffffff"
                  }
                },
                "felt": {
                  "value": 11,
                  "unit": "C",
                  "color": {
                    "background": "#ff9900",
                    "text": "#ffffff"
                  }
                }
              },
              "wind": {
                "speed": {
                  "value": 23,
                  "unit": "km/h"
                },
                "gust": {
                  "value": 23,
                  "unit": "km/h"
                },
                "direction": {
                  "value": 47,
                  "unit": "bearing",
                  "icon": 45
                }
              },
              "pressure": {
                "value": 1019,
                "unit": "mb",
                "level": "mean sea level"
              },
              "heatIndex": "1/2"
            }
          }
        ]
      }
    ]
  }
}
Response examples (400)
{
  "code": 400,
  "status": "error",
  "message": "Latitude range error"
}
Response examples (401)
{
  "code": 401,
  "status": "error",
  "message": "Latitude range error"
}
Response examples (503)
{
  "code": 503,
  "status": "error",
  "message": "[Geo]: DB Driver loading failed"
}