Amazon S3 S3 Analytics API

The S3 Analytics API from Amazon S3 — 3 operation(s) for s3 analytics.

GitHub OpenAPI

Operations 4

DELETE /{Bucket}?analytics Delete Bucket Analytics Configuration #
PUT /{Bucket}?analytics Put Bucket Analytics Configuration #
GET /{Bucket}?analytics&x-id=GetBucketAnalyticsConfiguration Get Bucket Analytics Configuration #
GET /{Bucket}?analytics&x-id=ListBucketAnalyticsConfigurations List Bucket Analytics Configurations #

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-s3:amazon-s3-analytics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

amazon-s3-analytics-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Simple Storage Service Analytics API
  version: '2006-03-01'
  description: Generated from AWS's published Smithy model for Amazon Simple Storage Service. 4 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://s3.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /{Bucket}?analytics:
    delete:
      operationId: DeleteBucketAnalyticsConfiguration
      summary: Delete Bucket Analytics Configuration
      description: 'This operation is not supported for directory buckets. Deletes an analytics configuration for the bucket
        (specified by the analytics configuration ID). To use this operation, you must have permissions to perform the s3:PutAnalyticsConfiguration
        action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For
        more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions
        to Your Amazon S3 Resources. For information about the Amazon S3 analytics feature, see Amazon S3 Analytics – Storage
        Class Analysis. The following operations are related to DeleteBucketAnalyticsConfiguration: GetBucketAnalyticsConfiguration
        ListBucketAnalyticsConfigurations PutBucketAnalyticsConfiguration You must URL encode any signed header values that
        contain spaces. For example, if your header value is my file.txt, containing two spaces after my, you must URL encode
        this value to my%20%20file.txt.'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                type: string
      parameters:
      - name: Bucket
        in: path
        required: true
        schema:
          type: string
        description: The name of the bucket from which an analytics configuration is deleted.
      - name: id
        in: query
        required: true
        schema:
          type: string
        description: The ID that identifies the analytics configuration.
      - name: x-amz-expected-bucket-owner
        in: header
        schema:
          type: string
        description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
          owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      tags:
      - Analytics
    put:
      operationId: PutBucketAnalyticsConfiguration
      summary: Put Bucket Analytics Configuration
      description: This operation is not supported for directory buckets. Sets an analytics configuration for the bucket (specified
        by the analytics configuration ID). You can have up to 1,000 analytics configurations per bucket. You can choose to
        have storage class analysis export analysis reports sent to a comma-separated values (CSV) flat file. See the DataExport
        request element. Reports are updated daily and are based on the object filters that you configure. When selecting
        data export, you specify a destination bucket and an optional destination prefix where the file is written. You can
        export the data to a destination bucket in a different account. However, the destination bucket must be in the same
        Region as the bucket that you are making the PUT analytics configuration to. For more information, see Amazon S3 Analytics
        – Storage Class Analysis. You must create a bucket policy on the destination bucket where the exported file is written
        to grant permissions to Amazon S3 to write objects to the bucket. For an example policy, see Granting Permissions
        for Amazon S3 Inventory and Storage Class Analysis. To use this operation, you must have permissions to perform the
        s3:PutAnalyticsConfiguration act
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                type: string
      parameters:
      - name: Bucket
        in: path
        required: true
        schema:
          type: string
        description: The name of the bucket to which an analytics configuration is stored.
      - name: id
        in: query
        required: true
        schema:
          type: string
        description: The ID that identifies the analytics configuration.
      - name: x-amz-expected-bucket-owner
        in: header
        schema:
          type: string
        description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
          owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      requestBody:
        content:
          application/xml:
            schema:
              $ref: '#/components/schemas/AnalyticsConfiguration'
      tags:
      - Analytics
  /{Bucket}?analytics&x-id=GetBucketAnalyticsConfiguration:
    get:
      operationId: GetBucketAnalyticsConfiguration
      summary: Get Bucket Analytics Configuration
      description: 'This operation is not supported for directory buckets. This implementation of the GET action returns an
        analytics configuration (identified by the analytics configuration ID) from the bucket. To use this operation, you
        must have permissions to perform the s3:GetAnalyticsConfiguration action. The bucket owner has this permission by
        default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions
        Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources in the Amazon
        S3 User Guide. For information about Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class Analysis
        in the Amazon S3 User Guide. The following operations are related to GetBucketAnalyticsConfiguration: DeleteBucketAnalyticsConfiguration
        ListBucketAnalyticsConfigurations PutBucketAnalyticsConfiguration You must URL encode any signed header values that
        contain spaces. For example, if your header value is my file.txt, containing two spaces after my, you must URL encode
        this value to my%20%20file.txt.'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/GetBucketAnalyticsConfigurationOutput'
      parameters:
      - name: Bucket
        in: path
        required: true
        schema:
          type: string
        description: The name of the bucket from which an analytics configuration is retrieved.
      - name: id
        in: query
        required: true
        schema:
          type: string
        description: The ID that identifies the analytics configuration.
      - name: x-amz-expected-bucket-owner
        in: header
        schema:
          type: string
        description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
          owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      tags:
      - Analytics
  /{Bucket}?analytics&x-id=ListBucketAnalyticsConfigurations:
    get:
      operationId: ListBucketAnalyticsConfigurations
      summary: List Bucket Analytics Configurations
      description: This operation is not supported for directory buckets. Lists the analytics configurations for the bucket.
        You can have up to 1,000 analytics configurations per bucket. This action supports list pagination and does not return
        more than 100 configurations at a time. You should always check the IsTruncated element in the response. If there
        are no more configurations to list, IsTruncated is set to false. If there are more configurations to list, IsTruncated
        is set to true, and there will be a value in NextContinuationToken. You use the NextContinuationToken value to continue
        the pagination of the list by passing the value in continuation-token in the request to GET the next page. To use
        this operation, you must have permissions to perform the s3:GetAnalyticsConfiguration action. The bucket owner has
        this permission by default. The bucket owner can grant this permission to others. For more information about permissions,
        see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.
        For information about Amazon S3 analytics feature, see Amazon S3 Analytics – Storage Class Analysis. The following
        operations are related to ListBucketAn
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ListBucketAnalyticsConfigurationsOutput'
      parameters:
      - name: Bucket
        in: path
        required: true
        schema:
          type: string
        description: The name of the bucket from which analytics configurations are retrieved.
      - name: continuation-token
        in: query
        schema:
          type: string
        description: The ContinuationToken that represents a placeholder from where this request should begin.
      - name: x-amz-expected-bucket-owner
        in: header
        schema:
          type: string
        description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
          owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      tags:
      - Analytics
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: s3
  schemas:
    AnalyticsAndOperator:
      type: object
      properties:
        Prefix:
          type: string
          description: 'The prefix to use when evaluating an AND predicate: The prefix that an object must have to be included
            in the metrics results.'
        Tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: The list of tags to use when evaluating an AND predicate.
    AnalyticsConfiguration:
      type: object
      properties:
        Id:
          type: string
          description: The ID that identifies the analytics configuration.
        Filter:
          $ref: '#/components/schemas/AnalyticsFilter'
        StorageClassAnalysis:
          $ref: '#/components/schemas/StorageClassAnalysis'
      required:
      - Id
      - StorageClassAnalysis
    AnalyticsExportDestination:
      type: object
      properties:
        S3BucketDestination:
          $ref: '#/components/schemas/AnalyticsS3BucketDestination'
      required:
      - S3BucketDestination
    AnalyticsFilter:
      type: object
      properties:
        Prefix:
          type: string
          description: The prefix to use when evaluating an analytics filter.
        Tag:
          $ref: '#/components/schemas/Tag'
        And:
          $ref: '#/components/schemas/AnalyticsAndOperator'
      description: Exactly one member is set.
    AnalyticsS3BucketDestination:
      type: object
      properties:
        Format:
          type: string
          enum:
          - CSV
          description: Specifies the file format used when exporting data to Amazon S3.
        BucketAccountId:
          type: string
          description: The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not
            validated before exporting data. Although this value is optional, we strongly recommend that you set it to help
            prevent problems if the destination bucket ownership changes.
        Bucket:
          type: string
          description: The Amazon Resource Name (ARN) of the bucket to which data is exported.
        Prefix:
          type: string
          description: The prefix to use when exporting data. The prefix is prepended to all results.
      required:
      - Format
      - Bucket
    GetBucketAnalyticsConfigurationOutput:
      type: object
      properties:
        AnalyticsConfiguration:
          $ref: '#/components/schemas/AnalyticsConfiguration'
    ListBucketAnalyticsConfigurationsOutput:
      type: object
      properties:
        IsTruncated:
          type: boolean
          description: Indicates whether the returned list of analytics configurations is complete. A value of true indicates
            that the list is not complete and the NextContinuationToken will be provided for a subsequent request.
        ContinuationToken:
          type: string
          description: The marker that is used as a starting point for this analytics configuration list response. This value
            is present if it was sent in the request.
        NextContinuationToken:
          type: string
          description: NextContinuationToken is sent when isTruncated is true, which indicates that there are more analytics
            configurations to list. The next request must include this NextContinuationToken. The token is obfuscated and
            is not a usable value.
        AnalyticsConfigurationList:
          type: array
          items:
            $ref: '#/components/schemas/AnalyticsConfiguration'
          description: The list of analytics configurations for a bucket.
    StorageClassAnalysis:
      type: object
      properties:
        DataExport:
          $ref: '#/components/schemas/StorageClassAnalysisDataExport'
    StorageClassAnalysisDataExport:
      type: object
      properties:
        OutputSchemaVersion:
          type: string
          enum:
          - V_1
          description: The version of the output schema to use when exporting data. Must be V_1.
        Destination:
          $ref: '#/components/schemas/AnalyticsExportDestination'
      required:
      - OutputSchemaVersion
      - Destination
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: Name of the object key.
        Value:
          type: string
          description: Value of the tag.
      required:
      - Key
      - Value
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/s3/service/2006-03-01/s3-2006-03-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)