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

    Transition to Webcams API v3

    Scheduled Pinned Locked Moved Webcams API
    4 Posts 3 Posters 1.5k Views 2 Watching
    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.
    • amonphiA Offline
      amonphi
      last edited by

      Hi,
      after receiving an email saying:
      "...As part of our ongoing commitment to improving our services, Webcams API v2 will be discontinued after December 31st this year. If you are currently using v2, it's imperative to transition to Webcams API v3 before the mentioned date to ensure uninterrupted service ...."

      From here https://api.windy.com/keys I generated a new API Key for Wbcam, I gave the authorization as indicated in point 2 here https://api.windy.com/webcams/api/v3/docs#/Webcams API V3/PublicApiController_getWebcams but, by filling in one of the various options at the bottom of the page, for example by sending the request https://api.windy.com/webcams/api/v3/webcams?lang=it&limit=10&offset=0&categoryOperation=and&sortKey=popularity&sortDirection=asc&nearby=42.45%2C12.15%2C5&include= I get the response "Missing Header 'x-windy-api-key' with API key".

      Again at point 2 here https://api.windy.com/webcams/api/v3/docs# it is indicated "For your own API requests, include the following header: "x-windy-api-key": "API_KEY"" but, honestly, I didn't understand how and where in the URL to insert the "x-windy-api-key" header: "API_KEY"".

      I apologize but I'm not an expert on this.

      Thank you

      kekertK 1 Reply Last reply Reply Quote 0
      • kekertK Offline
        kekert Windy Staff @amonphi
        last edited by

        Hello @amonphi, there is a lock icon in the upper right corner of each query, you can fill the key in there.76838801-d78f-4db4-ae98-915fa79851cd-image.png

        kekert

        amonphiA 1 Reply Last reply Reply Quote 0
        • amonphiA Offline
          amonphi @kekert
          last edited by

          @kekert said in Transition to Webcams API v3:

          Hello @amonphi, there is a lock icon in the upper right corner of each query, you can fill the key in there.

          Hi, in the meantime, thanks for the support .... yes yesterday I had followed that passage and to test the bee in that example of use everything seems to work.!

          However, not all the examples can make them respond correctly (maybe fill in some string incorrectly) and also I believed that I could also use the call through web browser with Request URL but, I continue to obtain the error message "Missing Header 'X- Windy-APi-Key 'with Api Key "as in the photo.
          url.jpg

          1 Reply Last reply Reply Quote 0
          • caldrjirC Offline
            caldrjir Windy Staff
            last edited by

            Hi @amonphi,
            since the API key has to be included in the request header, instead of the query parameter, the preferred way to test our API in the browser should be by using our documentation environment.

            But there are some other ways, which I would recommend for testing, like Posman which allows you to modify your headers and also generates code snippets in specified languages if needed.

            Snímek obrazovky 2023-10-02 v 17.17.59.png

            Windy.com webcams developer

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Windy Community  |  Powered by excellent NodeBB
            Terms of Use     Privacy Policy     Windy.com