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

    Invalid request

    Windy API v4
    1
    1
    103
    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.
    • L
      leoapertum
      last edited by

      I'm trying the API for the first time. I have created a request that is almost identical to the one in the docs:

      {
      "lat": 49.809,
      "lon": 16.787,
      "model": "gfs",
      "parameters": ["wind", "dewpoint", "rh", "pressure"],
      "levels": ["surface"],
      "key": "Gk7LmFfd9aULH1vZd3XvwN9cvdCTBool"
      }

      When posting this to the API with curl:

      curl --data-binary @fetch.json https://api.windy.com/api/point-forecast/v2

      I'm getting "Invalid request - "key", "model", "lat", "lon" or "parameters" are missing." as the response.

      Can anyone spot the problem?

      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