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

361
Views
I want to download API response( JSON file format) using JavaScript or C#

I am working on a C# project.
I get data from a third-party API in JSON format. I further use JSON output in my C# project. But third party API owners update their data every 30 minutes. I need to re-download that file every 30 minutes then use it in my C# project. I want to do this programmatically.

Issues: How can I download that API response( JSON file) programmatically into my project folder?

Confusion: Can I download the API response JSON file using C# or JavaScript?

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

0

Yes you can. I don't know C# but in Javascript you can do this..

for example if you are using axios to fetching api data,

const fs = require('fs')
const axios = require('axios')

axios.get('/api').then(res => 
fs.writeFile('file.json', res.data, err =>{
if(err){
console.log(err)
}else{
console.log('success')
}
})
)
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!