I am using Notion API to fetch data from Notio.
I am using
Notion-Version": "2022-06-28"
The code below is my request
readUrl = f"https://api.notion.com/v1/databases/{self.db_id}/query"
res = requests.request("POST", readUrl, headers=self.headers)
self.data = res.json()
Even though I have names in Sprints and Tickets, they don't send names.
The data looks like as below
{
id: 'Rv%5Cn',
type: 'rollup',
rollup: { type: 'array', array: [], function: 'show_original' }
}
and ID is the same for all of them.
I tried one trick, created a new column, and used the CONCAT function, but this time they send data as below
{'id': 'rGlG', 'type': 'formula', 'formula': {'type': 'string', 'string': None}}
even though they have a name.
Response
"Sprint (contact)":{
"id":"?`:a",
"type":"formula",
"formula":{
"type":"string",
"string":null
}
},
"Sprint":{
"id":"?}m;",
"type":"rollup",
"rollup":{
"type":"array",
"array":[
],
"function":"show_original"
}
}