---
title: "POST /#X-Amz-Target=AmazonAthena.ListDatabases"
method: POST
path: "/#X-Amz-Target=AmazonAthena.ListDatabases"
---

# POST /#X-Amz-Target=AmazonAthena.ListDatabases

`POST /#X-Amz-Target=AmazonAthena.ListDatabases`

Lists the databases in the specified data catalog.

## Query parameters

- `MaxResults` string
- `NextToken` string

## Headers

- `X-Amz-Target` 'AmazonAthena.ListDatabases', required

## Request body

- ListDatabasesInput
  - `CatalogName` string, required — The name of the data catalog that contains the databases to return.
  - `NextToken` string — A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.
  - `MaxResults` integer — Specifies the maximum number of results to return.

## Response `200`

Success

- ListDatabasesOutput
  - `DatabaseList` Database[] — A list of databases from a data catalog.
    - `Name` string, required — The name of the database.
    - `Description` string — An optional description of the database.
    - `Parameters` object — A set of custom key/value pairs.
  - `NextToken` string — A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

## Other responses

- `480` — InternalServerException
- `481` — InvalidRequestException
- `482` — MetadataException

---

[API](https://skmtc.net/aws/apis/athena.md) · [All operations](https://skmtc.net/aws/apis/athena/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/athena/versions/0aec8c61283d/schema)
