Saving query data to file

Hi,

How can I save a Python query to a file?

import requests
import json

apiKey = “”
apiUrl = “https://api.monday.com/v2
headers = {“Authorization” : apiKey}

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

r = requests.post(url=apiUrl, json=data, headers=headers) # make request
print(r.json())

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:

Cheers,
Matias