Parse Data from Monday.com API – FAQs – GraphQL API
I need to first extract all the data using Python from a specific board and parse it so that each item from the board is on a different line.
Here is my code->
import requests
import json
apiKey = “my api key”
apiUrl = “api.monday.com/v2”
headers = {“Authorization” : apiKey}
query2 = ‘{boards (ids: 2257165976) { 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())
Now, I do get all the items in the output but I’m not sure how to put each of them in different lines. Could someone please modify my code so that I get the desired output please?
Read more here: Source link