openapi: 3.1.0
info:
title: SoundStat Genres Stats API
description: API for accessing music track audio analysis, features (tempo, key, mode, energy, danceability, valence, instrumentalness, acousticness, loudness), search, and recommendations. SoundStat is an independent audio-analysis alternative to the deprecated Spotify audio-features endpoints.
version: 1.0.0
servers:
- url: https://soundstat.info
description: SoundStat production API
security:
- ApiKeyAuth: []
tags:
- name: Stats
paths:
/api/v1/stats:
get:
summary: Get Analysis Stats
description: "Get comprehensive statistics about analyzed tracks.\n\nParameters:\n----------\nx_api_key : str (API key for authentication)
\n\nReturns:\n-------\nDict
\n general: Dict (Overall statistics)
\n - total_tracks: int
\n - analyzed_tracks: int
\n - unique_genres: int
\n - avg_popularity: float
\n top_genres: List[Dict] (Most common genres)
\n audio_characteristics: Dict (Average audio features)
\n\nNotes:\n-----\nProvides a statistical overview of the analyzed music database."
operationId: get_analysis_stats_api_v1_stats_get
parameters:
- name: x-api-key
in: header
required: false
schema:
type: string
title: X-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Stats
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: API key issued after registration at https://soundstat.info/auth.html. Passed in the x-api-key request header.