Search code examples
pythonapiqlikviewqliksense

Extract Data from Qlik API using Python


I have a requirement where I need to fetch data from Qlik API in JSON format (just as we did in Power BI dataset) and parse it in CSV format.

Essentially, attached is kind of data I'm trying to extract from Qlik Engine/QRS API.

Image Excel

Anyway of achieving this requirement ?


Solution

  • Communication with Qlik Engine is done via web sockets (JSON-PRC)

    Please, have a look at the official documentation

    In your case the workflow should be:

    • establish communication channel with the Engine
    • connect to the app that contains the data
    • contruct table object and provide the required measures/dimensions in the definition
    • get the layout of the table/object
    • extract the data from the layout (if the data is more than 10 000 data cells then you'll have to implement paging)
    • once have all the data - do whatever you want with it

    There a few basic exmples how to, at least, connect with Python. For example Qlik Sense: call Qlik Sense Engine API with Python