Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Not able to access API ...

    Developers
    3
    6
    81
    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.
    • Florian Ruf Rodot
      Florian Ruf Rodot last edited by Korina

      Hello, unfortunately I am not able to use the Windy API. An Error 404 is returning every time.

      I read the documentation but can't find my solution...

      This is my current implementation :

      async componentDidMount() {
      const body = {
      lat: 49.809,
      lon: 16.787,
      model: "gfs",
      parameters: "wind",
      levels: "surface",
      key: "",
      };
      const response = await axios.post(
      "https://api.windy.com/api/point-forecast/v2",
      { body }
      );

      Thank you in advance for your help !!

      Ondřej Šutera 1 Reply Last reply Reply Quote 0
      • Ondřej Šutera
        Ondřej Šutera Administrator @Florian Ruf Rodot last edited by Korina

        Hi @Florian-Ruf-Rodot, can you change parameters and levels to fields like this:

        const body = {
        lat: 49.809,
        lon: 16.787,
        model: "gfs",
        parameters: ["wind"],
        levels: ["surface"],
        key: "",
        };
        
        Florian Ruf Rodot 1 Reply Last reply Reply Quote 0
        • Florian Ruf Rodot
          Florian Ruf Rodot @Ondřej Šutera last edited by

          @Ondřej-Šutera Thank you for answering !

          I have done it but still receive an error...

          Ondřej Šutera 1 Reply Last reply Reply Quote 0
          • Ondřej Šutera
            Ondřej Šutera Administrator @Florian Ruf Rodot last edited by

            @Florian-Ruf-Rodot We tested our functionality, and it standardly works on our end. Please fix the body element as well. It should be without those curly braces.

            According to your API key, did you share yours or there is a typo or change, so you keep yours for yourself (as you should)? I am asking because we checked that and it is not active.

            Florian Ruf Rodot 1 Reply Last reply Reply Quote 0
            • Florian Ruf Rodot
              Florian Ruf Rodot @Ondřej Šutera last edited by

              @Ondřej-Šutera No I did not share it...

              Removed the curly braces and it still does not work. Tried with Meteomatics and other APIs and my implementation is working...

              Ondřej Šutera 1 Reply Last reply Reply Quote 0
              • Ondřej Šutera
                Ondřej Šutera Administrator @Florian Ruf Rodot last edited by

                @Florian-Ruf-Rodot can you share detailed info at support@windy.com, please?

                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 and Conditions     Privacy Policy