GET /weather/SYNOP/2/json

Get local weather data from the specified station

Query parameters

  • id string Required

    SYNOP Station Id

Responses

  • 200 application/json

    Decoded weather data from SYNOP station

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

      Values are OK or error.

    • code integer Required
    • content object
      Hide content attribute Show content attribute object
      • SYNOP object
        Hide SYNOP attributes Show SYNOP attributes object
        • message string | null

          This field is defined only when there is no local data available

        • latest object | null

          This field is defined only when there is local data available

          Hide latest attributes Show latest attributes object | null
          • wid string
          • visibility number
          • temperature number
          • cloudCover number
          • cloudTypes object
            Hide cloudTypes attributes Show cloudTypes attributes object
            • cloudHigh number
            • cloudMiddle number
            • cloudLow number
          • precipitation number
          • precipitationConvective number
          • timestamp number
        • history object | null

          This field is defined only when there is local data available

          Hide history attribute Show history attribute object | null
          • <pattern:UNIXTimestamp> object | null

            This field is defined only when there is local data available

            Hide <pattern:UNIXTimestamp> attributes Show <pattern:UNIXTimestamp> attributes object | null
            • wid string
            • visibility number
            • temperature number
            • cloudCover number
            • cloudTypes object
              Hide cloudTypes attributes Show cloudTypes attributes object
              • cloudHigh number
              • cloudMiddle number
              • cloudLow number
            • precipitation number
            • precipitationConvective number
            • timestamp number
  • 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/SYNOP/2/json
curl \
 --request GET 'https://api.geoapi.me/weather/SYNOP/2/json?id=string' \
 --header "X-Api-Key: $API_KEY"
Response examples (200)
{
  "status": "OK",
  "code": 200,
  "content": {
    "SYNOP": {
      "message": "string",
      "latest": {
        "wid": "001030",
        "visibility": 10000,
        "temperature": 22.3,
        "cloudCover": 87,
        "cloudTypes": {
          "cloudHigh": 66,
          "cloudMiddle": 36,
          "cloudLow": 53
        },
        "precipitation": 1.8,
        "precipitationConvective": 1.1,
        "timestamp": 1548237600
      },
      "history": {
        "<pattern:UNIXTimestamp>": {
          "wid": "001030",
          "visibility": 10000,
          "temperature": 22.3,
          "cloudCover": 87,
          "cloudTypes": {
            "cloudHigh": 66,
            "cloudMiddle": 36,
            "cloudLow": 53
          },
          "precipitation": 1.8,
          "precipitationConvective": 1.1,
          "timestamp": 1548237600
        }
      }
    }
  }
}
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"
}