Saving query data to file


How can I save a Python query to a file?

import requests
import json

apiKey = “”
apiUrl = “
headers = {“Authorization” : apiKey}

query2 = ‘{boards(limit:2 ids: 1455154608) {name id description items { name column_values{title id type text } } } }’
data = {‘query’ : query2}

r =, json=data, headers=headers) # make request

Thanks in Advance!

Hello there @Qlik,

I am not sure I understand the question.

I see you have a script to query some data via API.

What is it you are trying to do exactly with it?

Looking forward to hearing from you :slightly_smiling_face: