How is it possible to export data using Json?

Muy buenas tardes. Me gustaría saber si es posible exportar a JSON los datos obtenidos mediante mi proyecto. Agradezco mucho que me puedan indicar cómo hacerlo ya que me gustaría utilizar la información recolectada de forma local y adaptarla a mis necesidades.

Welcome to the community, @nataocampo! Pinging in @Josh for the support.

Hi @nataocampo, yes that’s possible :slightly_smiling_face: you can have a look at the documentation seen at https://{kf_url}/api/v2/assets and if you’re wanting the data from a particular project in JSON format, you can see that at https://{kf_url}/api/v2/assets/{asset_uid}/data.json.

You can store this data locally (for example in data.json) by doing the following:

curl -X GET https://KF_URL/api/v2/assets/ASSET_UID/data.json \
-H "Authorization: Token TOKEN" > data.json

Where KF_URL, ASSET_UID and TOKEN are replaced with your values.

1 Like

Gracias por responder, no entiendo muy bien este lenguaje de programación por lo que buscaré ayuda para lograrlo.

Hi @nataocampo, you could also visit the URL in your browser and then save the result to a file from there. This is in Firefox:

Screen Shot 2021-04-30 at 10.16.34 AM

1 Like