Is there any problem with the Notion API or is it failing?
I wanted to try some code that I programmed few weeks ago and it worked well and now it does not work. Also, it does not recognize any changes that I made. Let me show you an example.
The code I am using for this is:
def queryWithFilter():
url = f'https://api.notion.com/v1/databases/{database_id}/query'
filters = {
"page_size": 100,
"filter": {
"or": [
{
"property": "title",
"rich_text": {
"contains": "The One Thing"
}
}
]
}
}
headers={
"Authorization": f"Bearer {token}",
"Notion-Version": "2021-05-13",
"Content-Type": "application/json"
}
r = requests.post(url, json=filters, headers=headers)
res = r.json()
print(res)
Is there anything that maybe I am doing wrong? This code worked amazing few weeks ago.