Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    /list?show=regions returns empty regions array

    Webcams API
    2
    4
    640
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lukoss
      last edited by

      Hello, I am trying to access the list of all regions, in the docs it says use "/list?show=regions" endpoint to retrieve a list of all available regions. I get this response:

      {
          "status": "OK",
          "result": {
              "offset": 0,
              "limit": 10,
              "total": 53825,
              "regions": []
          }
      }
      

      Is there some kind of error in the system or am I doing something wrong?

      KorinaK 1 Reply Last reply Reply Quote 0
      • KorinaK
        Korina @lukoss
        last edited by

        @lukoss Hello, did you insert the code for the region?

        Korina

        L 1 Reply Last reply Reply Quote 0
        • L
          lukoss @Korina
          last edited by

          @korina hello, thanks for reply. What code do you mean? I get this response when I am trying to make a request from postman app. I type in this url - https://api.windy.com/api/webcams/v2/list?show=regions (api key is in headers). For example https://api.windy.com/api/webcams/v2/list?show=countries works like this (i get and array inside countries of all the available countries):

          {
              "status": "OK",
              "result": {
                  "offset": 0,
                  "limit": 10,
                  "total": 53838,
                  "countries": [
                      {
                          "id": "CH",
                          "name": "Switzerland",
                          "count": 1510
                      },
                      {
                          "id": "DE",
                          "name": "Germany",
                          "count": 3200
                      },.... and the list goes on
          

          and for https://api.windy.com/api/webcams/v2/list?show=regions, all I get is "regions": [], with empty array. I want to get an array with all of the available regions. In the docs it says that this should work. docs.PNG

          KorinaK 1 Reply Last reply Reply Quote 0
          • KorinaK
            Korina @lukoss
            last edited by

            @lukoss Hello, it seems as a bug, our developers will try to fix it as soon as they can. Thank you for report.

            Korina

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
            NodeBB & contributors, OSM & contributors, HERE maps
            Terms of Use     Privacy Policy