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

354
Views
How to get property from API Response in Node JS?

I have an API in node JS that calls another API - openWeatherMap. This is my postman response when i call the weather API: enter image description here

But this response brings every parameters in the API and I want to show the user for example the temp.min. How can I do this?

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

0

you can access to json Object values with thier keys, for example:

response.body.list[0].main.temp_min
about 4 years ago · Juan Pablo Isaza Report

0

You should use 'Dot Notation' to access the required object property. Refer to the MDN Docs or a resource like W3 for more information on how to use this.

In your case, you could declare a variable equal to the property you wish to access:

minTemp = response.body.list[0].main.temp_min
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!