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

    Webcams appear multiple times in results!

    Webcams API
    1
    2
    868
    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.
    • P
      pigsnuck
      last edited by

      When returning all webcams via the API, webcams are duplicated on multiple pages of results. Page size is 50.

      Eg: The webcam with ID 1632513064 appears on the following pages of results: 20, 21, 22, 24, 24, etc.

      In fact, only 1124 unique webcams are returned in the entire 1077 pages of results!

      Here is the URL I am using. What am I doing wrong?

      https://api.windy.com/api/webcams/v2/list/limit=50,20?show=webcams:statistics,location,image,url,category,property&key=[API_KEY]

      P 1 Reply Last reply Reply Quote 0
      • P
        pigsnuck @pigsnuck
        last edited by

        UPDATE: Problem solved. The second parameter should be an offset, not a page number.

        1 Reply Last reply Reply Quote 1
        • 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