Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

359
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda