Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

148
Views
How to fetch Open Weather Map Api

My Open Weather Map API working fine on Postman but I'm getting errors while fetching it on the browser.

Postman ss

//fetching weather api
    async getWeather() {
        console.log("efsfs");
        const response = await fetch('api.openweathermap.org/data/2.5/weather?q=London&appid=3f071776be6f7ccd417bfb1da2910---');
        const responseData = await response.json();

        return responseData;
    }
//Using it
weather.getWeather()
    .then(results => {
        console.log(results)
    })
    .catch(err => console.error(err));
//Error
weather.js:11 GET http://127.0.0.1:5500/api.openweathermap.org/data/2.5/weather?q=London&appid=3f071776be6f7ccd417bfb1da2910859 404 (Not Found)
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!