Skip to main content

Saving query data to file

  • September 8, 2023
  • 1 reply
  • 182 views

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!

1 reply

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • September 10, 2023

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 🙂

Cheers,
Matias