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

    Not able to access API ...

    Developers
    3
    6
    975
    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 RodotF
      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 !!

      SutyS 1 Reply Last reply Reply Quote 0
      • SutyS
        Suty 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 RodotF 1 Reply Last reply Reply Quote 0
        • Florian Ruf RodotF
          Florian Ruf Rodot @Suty
          last edited by

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

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

          SutyS 1 Reply Last reply Reply Quote 0
          • SutyS
            Suty 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 RodotF 1 Reply Last reply Reply Quote 0
            • Florian Ruf RodotF
              Florian Ruf Rodot @Suty
              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...

              SutyS 1 Reply Last reply Reply Quote 0
              • SutyS
                Suty 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 of Use     Privacy Policy