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

229
Views
How to access 7 day and per hour OpenWeatherMap data?

I'm creating a weather app using the openweathermap API.

If the user enters the site then show the weather data of 7 days in the form of cards.

But if the user clicks on one card of weather then show the data of the particular day per hour.

To get 7 days of data I'm using this code:

axios
    .get(
        "https://api.openweathermap.org/data/2.5/forecast?q={CITY_NAME},{COUNTRY_CODE}&appid={API_KEY}&cnt=7"
    )
    .then((data) => {
        console.log(data.data);
    });

From this I'm getting the 7 day data. But how can I get per day/hour data using this API?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Looking at the docs you need to call the endpoint at forecast/hourly to get hourly weather data.

about 4 years ago · Juan Pablo Isaza Report
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!