Hi, Community.
I’m currently trying to import the data of some boards into databricks. All of them have the same structure, and I wanted to get all the columns (if possible).
Is there a way to make only one request and get the data of all the boards?
I’ll put down here the script of the first step, which is the one we define the boards’ ID.
%python
apiKey = "censored" ## API Key
apiUrl = "https://api.monday.com/v2"
headers = {"Authorization" : apiKey}
query = '''query {
boards(ids:s1272092066,1615564124]) {
items {
id
name
column_values {
title
text
} } } }'''
data = {'query' : query}
r = requests.post(url=apiUrl, json=data, headers=headers) # make request
data = r.json()
I tried putting the IDs separated by commas, but at the end it only got the data of one of these boards.
Am I missing something? To be honest, I’ve never worked with APIs, so all of this is really new to me. I couldn’t find a part on the documentation that specified this type of integration.
If anyone that’s willing to help need more informations, just let me know!
Thanks a lot!