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

    No image found in API response.

    Scheduled Pinned Locked Moved Webcams API
    1 Posts 1 Posters 1.5k Views 1 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.
    • VeStopě.cz *V Offline
      VeStopě.cz *
      last edited by

      Hello Windy team,

      I am currently using the Windy API to integrate webcam images into my website hosted on Wix. The API call successfully retrieves data about the webcam, but the images object in the response seems incomplete or unavailable. Here are the details:

      Problem Description:
      I am using the endpoint:

      ruby
      Copy code
      https://api.windy.com/webcams/api/v3/webcams/1261059416?lang=en&include=images
      with the correct API key in the headers.

      The API response includes information about the webcam, such as title, status, and view count, but the images object does not contain the current.preview URL for the webcam image. Here’s a sample of the response I am getting:

      json
      Copy code
      {
      "webcamId": 1261059416,
      "title": "Finsterau: bei Langlaufstadion",
      "status": "active",
      "viewCount": 32192,
      "images": {
      "current": {},
      "daylight": {}
      }
      }
      Despite including images in the query parameters, the current.preview or any similar key with an image URL is not present.

      I have verified that the webcam is active and correctly identified. When I visit the webcam page on Windy.com, I can see the image, so I assume the data exists but isn’t being returned via the API.

      Steps Taken:
      Verified the API key and domain restrictions in the API dashboard. My domain is authorized.
      Used both lang=en and include=images in the query string.
      Tried other webcams, and the issue persists.
      Question:
      How can I retrieve the current.preview or similar URL for the webcam image via the API? Is there a known limitation for this specific webcam or the API functionality in general?

      Thank you for your help!

      9f00c81d-c207-458e-94cf-5e5645c3e4a1-image.png 7fb47530-5901-4842-816c-13abb61fb477-image.png

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