Navigation

    CreatiCode Scratch Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Getting data from openweather API

    Help
    2
    3
    34
    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.
    • J
      Jasper Leung last edited by

      Hi,

      I’m currently trying to make a weather app and I need to get data from openweathermap.org 's API.

      Here’s my current code:
      Screenshot 2025-12-26 at 8.46.06 AM.png

      First, it fetches the users cords and stores it in 2 different vars.Then, it fetches data from the api using the "fetch web page as"block. Lastly, it asks chatGPT to gen a weather report.

      Problem:
      The fetch block always returns an error even though the api is up.

      Is there a way to fix it/another way to fetch from an api?

      Thanks!

      info-creaticode 1 Reply Last reply Reply Quote 0
      • info-creaticode
        CreatiCode @jasperleung.python-717f6cde last edited by

        @jasperleung-python-717f6cde

        Can you please share the project link? We will check why there is an error. Thank you

        J 1 Reply Last reply Reply Quote 0
        • J
          Jasper Leung @info-creaticode last edited by

          @info-creaticode

          Here’s the project link:

          https://play.creaticode.com/projects/694b937608b890c381af93e0

          1 Reply Last reply Reply Quote 0
          • First post
            Last post