Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

232
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda