> ## Documentation Index
> Fetch the complete documentation index at: https://docs.statusstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get source analytics

> Retrieve analytics data for a specific source



## OpenAPI

````yaml /openapi/api-docs.yaml get /v1/sources/{source}/analytics
openapi: 3.0.3
info:
  title: StatusStack API
  description: >
    API for managing status monitoring, incidents, stacks, and website
    monitoring.


    You can import this specification directly into Postman, Insomnia or any
    other

    OpenAPI-compatible client.


    Only the operations documented here are part of the supported public API.
    Any other

    endpoint is unstable and may change without a version bump.
  version: 1.4.0
  contact:
    name: StatusStack Support
    url: https://statusstack.com/support
servers:
  - url: https://statusstack.com/api
    description: Production server
security: []
paths:
  /v1/sources/{source}/analytics:
    parameters:
      - name: source
        in: path
        required: true
        schema:
          type: string
          format: uuid
    get:
      tags:
        - Analytics
      summary: Get source analytics
      description: Retrieve analytics data for a specific source
      responses:
        '200':
          description: Source analytics data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsData'
      security:
        - bearerAuth: []
components:
  schemas:
    AnalyticsData:
      type: object
      properties:
        uptime_percentage:
          type: number
        incident_count:
          type: integer
        average_response_time:
          type: number
        data_points:
          type: array
          items:
            type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        StatusStack authenticates requests with API keys, created via the
        dashboard with

        granular permissions (read, write, delete, admin, *).


        API keys support version compatibility:

        - v1 keys: Can only access v1 endpoints

        - v2 keys: Can access both v1 and v2 endpoints


        Available permissions:

        - `read`: View resources (GET requests)

        - `write`: Create and update resources (POST, PUT requests)

        - `delete`: Delete resources (DELETE requests)

        - `admin`: Administrative access to all resources

        - `*`: Wildcard permission (all actions allowed)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.