Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. Getting data from openweather API

Getting data from openweather API

Scheduled Pinned Locked Moved Help
3 Posts 2 Posters 545 Views
  • 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 Offline
    J Offline
    Jasper Leung
    wrote on last edited by
    #1

    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!

    CreatiCodeI 1 Reply Last reply
    0
    • J Jasper Leung

      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!

      CreatiCodeI Offline
      CreatiCodeI Offline
      CreatiCode
      wrote on last edited by
      #2

      @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
      0
      • CreatiCodeI CreatiCode

        @jasperleung-python-717f6cde

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

        J Offline
        J Offline
        Jasper Leung
        wrote on last edited by
        #3

        @info-creaticode

        Here’s the project link:

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

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • CreatiCode