GET /weather/id/2/json

The Weather API provides weather data for the specific point

Query parameters

  • id string Required

    GeoAPI Id to search for

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 attributes Show content attributes object
      • administrative object Required
        Hide administrative attributes Show administrative attributes object
        • continent object
          Hide continent attributes Show continent attributes object
          • name object Required
            Hide name attributes Show name attributes object
            • AR string Required
            • BG string Required
            • BR string Required
            • DA string Required
            • DE string Required
            • EL string Required
            • EN string Required
            • ES string Required
            • FR string Required
            • HR string Required
            • HU string Required
            • IT string Required
            • JA string Required
            • NL string Required
            • NO string Required
            • PL string Required
            • RO string Required
            • RU string Required
            • SL string Required
            • SR string Required
            • SV string Required
            • TR string Required
            • ZH string Required
          • code string Required
        • country object
          Hide country attributes Show country attributes object
          • ISO2 string Required
          • ISO3 string Required
          • name object Required
            Hide name attributes Show name attributes object
            • AR string Required
            • BG string Required
            • BR string Required
            • DA string Required
            • DE string Required
            • EL string Required
            • EN string Required
            • ES string Required
            • FR string Required
            • HR string Required
            • HU string Required
            • IT string Required
            • JA string Required
            • NL string Required
            • NO string Required
            • PL string Required
            • RO string Required
            • RU string Required
            • SL string Required
            • SR string Required
            • SV string Required
            • TR string Required
            • ZH string Required
          • capital string Required
          • count integer Required
        • administrative1 object
          Hide administrative1 attributes Show administrative1 attributes object
          • code string Required
          • id_admin integer Required
          • name string Required
          • count integer Required
        • timezone object
          Hide timezone attributes Show timezone attributes object
          • timezone string Required
          • GMT integer Required
          • UNIXTimestamp number Required
          • isDST integer Required
          • timeFormatted string Required
          • sunrise string Required
          • sunset string Required
      • point object Required
        Hide point attributes Show point attributes object
        • id string Required
        • name string Required
        • address array[string]
        • lat number Required
        • lon number Required
        • type string
        • ISO2 string(ISO2) Required
      • elevation object Required
        Hide elevation attributes Show elevation attributes object
        • value integer
        • unit string Required
      • weather object Required
        Hide weather attributes Show weather attributes object
        • current object
          Hide current attributes Show current attributes object
          • date string Required
          • hour string Required
        • daily array[object]
          Hide daily attribute Show daily attribute object
          • <pattern:YYYY-MM-DD> object
            Hide <pattern:YYYY-MM-DD> attributes Show <pattern:YYYY-MM-DD> 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

            • 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
              • 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
            • 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
            • liftedIndex object Required
              Hide liftedIndex attributes Show liftedIndex attributes object
              • value number
              • unit string
        • hourly array[object]
          Hide hourly attribute Show hourly 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/id/2/json
curl \
 --request GET 'https://api.geoapi.me/weather/id/2/json?id=string' \
 --header "X-Api-Key: $API_KEY"
Response examples (200)
{
  "status": "OK",
  "code": 200,
  "content": {
    "administrative": {
      "continent": {
        "name": {
          "AR": "أوروبا",
          "BG": "Европа",
          "BR": "Europa",
          "DA": "Europa",
          "DE": "Europa",
          "EL": "Ευρώπη",
          "EN": "Europe",
          "ES": "Europa",
          "FR": "Europe",
          "HR": "Evropa",
          "HU": "Európa",
          "IT": "Europa",
          "JA": "ヨーロッパ",
          "NL": "Europa",
          "NO": "Europa",
          "PL": "Europa",
          "RO": "Europa",
          "RU": "Европа",
          "SL": "Evropa",
          "SR": "Evropa",
          "SV": "Europa",
          "TR": "Avrupa",
          "ZH": "欧洲"
        },
        "code": "EU"
      },
      "country": {
        "ISO2": "AT",
        "ISO3": "AUT",
        "name": {
          "AR": "النمسا",
          "BG": "Австрия",
          "BR": "Áustria",
          "DA": "Østrig",
          "DE": "ÖSTERREICH",
          "EL": "Αυστρία",
          "EN": "Austria",
          "ES": "AUSTRIA",
          "FR": "AUTRICHE",
          "HR": "Austrija",
          "HU": "Ausztria",
          "IT": "Austria",
          "JA": "オーストリア",
          "NL": "Oostenrijk",
          "NO": "Østerrike",
          "PL": "Austria",
          "RO": "AUSTRIA",
          "RU": "Австрия",
          "SL": "Avstrija",
          "SR": "Austrija",
          "SV": "Österrike",
          "TR": "Avusturya",
          "ZH": "奥地利"
        },
        "capital": "Vienna",
        "count": "23443"
      },
      "administrative1": {
        "code": "AT10",
        "id_admin": 10,
        "name": "Salzburg",
        "count": 23221
      },
      "timezone": {
        "timezone": "Europe/Vienna",
        "GMT": 1,
        "UNIXTimestamp": 1549817169,
        "isDST": 1,
        "timeFormatted": "2019-01-18 18:12:49",
        "sunrise": "07:14",
        "sunset": "17:12"
      }
    },
    "point": {
      "id": "riomgiocex",
      "name": "Salzburg",
      "address": [
        "Salzburg",
        "Salzkammergut-Berge",
        "Alps"
      ],
      "lat": 47.8265734834002,
      "lon": 13.0367495820614,
      "type": "rail",
      "ISO2": "AT"
    },
    "elevation": {
      "value": 3227,
      "unit": "m"
    },
    "weather": {
      "current": {
        "date": "2019-12-23",
        "hour": "12:00"
      },
      "daily": [
        {
          "<pattern:YYYY-MM-DD>": {
            "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
              }
            },
            "precipitation": {
              "total": {
                "value": 11.3,
                "unit": "mm"
              },
              "convective": {
                "value": 11.3,
                "unit": "mm"
              },
              "probability": {
                "value": 76,
                "unit": "%"
              }
            },
            "temperature": {
              "min": {
                "value": 11,
                "unit": "C",
                "color": {
                  "background": "#ff9900",
                  "text": "#ffffff"
                }
              },
              "max": {
                "value": 11,
                "unit": "C",
                "color": {
                  "background": "#ff9900",
                  "text": "#ffffff"
                }
              }
            },
            "wind": {
              "speed": {
                "value": 23,
                "unit": "km/h"
              },
              "gust": {
                "value": 23,
                "unit": "km/h"
              }
            },
            "liftedIndex": {
              "value": 7.41,
              "unit": "index"
            }
          }
        }
      ],
      "hourly": [
        {
          "<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"
}