Hi Saksham, As you mentioned, there's an API that returns paragraph result in JSON format [1]. Types of result can be TEXT, HTML, TABLE, IMG etc [2].
I assume you meant download TABLE data as csv/tsv format programmatically, right? One reason we don't have such API is that the csv/tsv conversion is done on front-end side [3]. To provide an API, we'll need to move these routines from front-end to back-end side. Thanks, moon [1] https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java#L486 [2] https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/InterpreterResult.java#L50 [3] https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js#L749 On Wed, Aug 30, 2017 at 12:19 AM Saksham Srivastava <saksham1...@outlook.com> wrote: > Hi, > > > My previous mail did not get much love so I am trying again :) > > > Is there any API to download the response of a paragraph? > > > I know there is a synchronous run API which will wait for the completion > of execution and will return the result. > > > http://zeppelin.apache.org/docs/0.7.2/rest-api/rest-notebook.html#run-a-paragraph-synchronously > > > But in case a user is trying to run a paragraph asynchronously, he/she > cannot get the results through the API > > I know there is status API to check the status of paragraph (it will not > have the result set info AFAIK) > > > https://zeppelin.apache.org/docs/0.7.2/rest-api/rest-notebook.html#get-the-status-of-a-single-paragraph > > > And finally, there is paragraph-information API > > > https://zeppelin.apache.org/docs/0.7.2/rest-api/rest-notebook.html#get-a-paragraph-information > > > The result set can be viewed in the response JSON of this as > body.results.msg.data > > > My expectation is to have an API which can return the result set which is > seen in the notebook itself. We have the option to view/download the > results in multiple formats in Notebook but there is no such way through > APIs. > > We have APIs to clear the result too. > > > Why do we need such an API? > > To allow the user to get/download the result set programmatically. > > > Is this a relevant requirement? > > > Thanks, > > Saksham >