Amazon Athena Table Metadata API

Operations for listing and getting table metadata

Operations 2

POST /?Action=ListTableMetadata Amazon Athena List Table Metadata #
POST /?Action=GetTableMetadata Amazon Athena Get Table Metadata #

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-athena-table-metadata-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-athena-table-metadata-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Amazon Athena Data Catalogs Table Metadata API
  description: Amazon Athena is an interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL. Athena is serverless, so there is no infrastructure to manage, and you pay only for the queries that you run.
  version: '2017-05-18'
  contact:
    name: AWS Support
    url: https://aws.amazon.com/premiumsupport/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://athena.us-east-1.amazonaws.com
  description: Amazon Athena API endpoint
security:
- sigv4: []
tags:
- name: Table Metadata
  description: Operations for listing and getting table metadata
paths:
  /?Action=ListTableMetadata:
    post:
      operationId: listTableMetadata
      summary: Amazon Athena List Table Metadata
      description: Lists the metadata for the tables in the specified data catalog database.
      tags:
      - Table Metadata
      x-microcks-operation:
        delay: 100
        dispatcher: QUERY_MATCH
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListTableMetadataInput'
            examples:
              default:
                x-microcks-default: true
                value:
                  CatalogName: AwsDataCatalog
                  DatabaseName: my_database
                  MaxResults: 10
      responses:
        '200':
          description: Table metadata listed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTableMetadataOutput'
              examples:
                default:
                  x-microcks-default: true
                  value:
                    TableMetadataList:
                    - Name: my_table
                      TableType: EXTERNAL_TABLE
                      Columns:
                      - Name: id
                        Type: int
                      - Name: name
                        Type: string
                    NextToken: ''
  /?Action=GetTableMetadata:
    post:
      operationId: getTableMetadata
      summary: Amazon Athena Get Table Metadata
      description: Returns table metadata for the specified catalog, database, and table.
      tags:
      - Table Metadata
      x-microcks-operation:
        delay: 100
        dispatcher: QUERY_MATCH
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetTableMetadataInput'
            examples:
              default:
                x-microcks-default: true
                value:
                  CatalogName: AwsDataCatalog
                  DatabaseName: my_database
                  TableName: my_table
      responses:
        '200':
          description: Table metadata retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTableMetadataOutput'
              examples:
                default:
                  x-microcks-default: true
                  value:
                    TableMetadata:
                      Name: my_table
                      TableType: EXTERNAL_TABLE
                      Columns:
                      - Name: id
                        Type: int
                      - Name: name
                        Type: string
                      Parameters:
                        classification: parquet
                        location: s3://my-bucket/my_table/
components:
  schemas:
    ListTableMetadataInput:
      type: object
      required:
      - CatalogName
      - DatabaseName
      properties:
        CatalogName:
          type: string
        DatabaseName:
          type: string
        Expression:
          type: string
          description: A regex filter that pattern-matches table names
        NextToken:
          type: string
        MaxResults:
          type: integer
    Column:
      type: object
      properties:
        Name:
          type: string
        Type:
          type: string
        Comment:
          type: string
    GetTableMetadataInput:
      type: object
      required:
      - CatalogName
      - DatabaseName
      - TableName
      properties:
        CatalogName:
          type: string
        DatabaseName:
          type: string
        TableName:
          type: string
    ListTableMetadataOutput:
      type: object
      properties:
        TableMetadataList:
          type: array
          items:
            $ref: '#/components/schemas/TableMetadata'
        NextToken:
          type: string
    TableMetadata:
      type: object
      properties:
        Name:
          type: string
        CreateTime:
          type: string
          format: date-time
        LastAccessTime:
          type: string
          format: date-time
        TableType:
          type: string
        Columns:
          type: array
          items:
            $ref: '#/components/schemas/Column'
        PartitionKeys:
          type: array
          items:
            $ref: '#/components/schemas/Column'
        Parameters:
          type: object
          additionalProperties:
            type: string
    GetTableMetadataOutput:
      type: object
      properties:
        TableMetadata:
          $ref: '#/components/schemas/TableMetadata'
  securitySchemes:
    sigv4:
      type: apiKey
      name: Authorization
      in: header
      description: AWS Signature Version 4