All templates
Productivity
Mock the Notion API
Query a database and read pages without an integration token.
3 routes · live immediately · no account needed
Notion's API wraps every list in the same pagination envelope — object, results, next_cursor, has_more — and that envelope is usually what your code actually has to handle. These routes return it faithfully, so you can build the fetching, cursor-following, and empty-state paths before you create an integration or share a single database with it.
What you get
POST
/v1/databases/{database_id}/query200 OKGET
/v1/pages/{page_id}templated200 OKPATCH
/v1/pages/{page_id}templated200 OKExample response
POST /v1/databases/{database_id}/query
{
"object": "list",
"results": [
{
"object": "page",
"id": "59833787-2cf9-4fdf-8782-e53db20768a5",
"created_time": "2022-03-01T19:05:00.000Z",
"last_edited_time": "2022-07-06T20:25:00.000Z",
"url": "https://www.notion.so/Tuscan-Kale-598337872cf94fdf8782e53db20768a5",
"properties": {
"Name": {
"id": "title",
"type": "title",
"title": [
{
"type": "text",
"plain_text": "Tuscan Kale"
}
]
}
}
}
],
"next_cursor": null,
"has_more": false,
"type": "page_or_database"
}Good for
- Build against a Notion database before setting up an integration
- Test cursor pagination handling with a stable, fixed dataset
- Develop offline without an integration token
Response payloads are representative examples using this API's real field names and object shapes, not an exhaustive replica of its schema. MockBase is an independent tool and is not affiliated with, endorsed by, or sponsored by Notion.