Retrieve a database
Retrieves a database object — a container for one or more data sources — for a provided database ID. The response adheres to any limits to an integration’s capabilities.
The most important fields in the database object response to highlight:
data_sources: An array of JSON objects with theidandnameof every data source under the database- These data source IDs can be used with the Retrieve a data source, Update a data source, and Query a data source APIs
parent: The direct parent of the database; generally apage_idorworkspace: true
To find a database ID, navigate to the database URL in your Notion workspace. The ID is the string of characters in the URL that is between the slash following the workspace name (if applicable) and the question mark. The ID is a 32 characters alphanumeric string.

Refer to the Build your first integration guide for more details.
Errors
Each Public API endpoint can return several possible error codes. See the Error codes section of the Status codes documentation for more information.
Additional resources
Path parameters
database_id
ID of a Notion database, a container for one or more data sources. This is a UUIDv4, with or without dashes.
Response
200
object
id
title
parent
is_inline
in_trash
created_time
last_edited_time
data_sources
icon
cover
developer_survey
request_id
Errors
400
Bad Request Error