{
  "openapi": "3.1.0",
  "info": {
    "title": "BirdNoises Public Avian Soundboard & Taxonomy API",
    "version": "1.2.0",
    "description": "Public static JSON, audio, and deep-link endpoints for BirdNoises (https://birdnoises.com), an interactive 6,511-species bird soundboard, wild recording streamer, and Dawn Chorus studio by Putervision (https://putervision.com). Paired with BirdHear (https://birdhear.com).",
    "contact": {
      "name": "Putervision",
      "url": "https://putervision.com",
      "email": "contact@birdnoises.com"
    }
  },
  "servers": [
    {
      "url": "https://birdnoises.com",
      "description": "BirdNoises Production Server"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "openSoundboard",
        "summary": "Open BirdNoises Soundboard (optionally deep-linked to a specific bird species)",
        "parameters": [
          {
            "name": "species",
            "in": "query",
            "required": false,
            "description": "Scientific name (underscored or spaced) or common name of the bird species to select on load (e.g., `Gavia_immer`, `Cardinalis_cardinalis`).",
            "schema": {
              "type": "string",
              "example": "Gavia_immer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "BirdNoises Web Application HTML"
          }
        }
      }
    },
    "/data/labels.json": {
      "get": {
        "operationId": "getSpeciesLabels",
        "summary": "Get all 6,522 acoustic classification labels (6,511 bird species)",
        "description": "Returns the complete ordered array of `Scientific Name_Common Name` strings.",
        "responses": {
          "200": {
            "description": "Ordered array of species labels",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "example": "Cardinalis cardinalis_Northern Cardinal"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/audio/sample.wav": {
      "get": {
        "operationId": "getReferenceAudioSample",
        "summary": "Get reference 48 kHz mono WAV bird vocalization recording",
        "responses": {
          "200": {
            "description": "48,000 Hz mono PCM WAV audio file",
            "content": {
              "audio/wav": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsSummary",
        "summary": "Get LLM-optimized Markdown summary of BirdNoises",
        "responses": {
          "200": {
            "description": "Markdown summary following llmstxt.org specification",
            "content": {
              "text/markdown": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    },
    "/.well-known/agent.json": {
      "get": {
        "operationId": "getAgentCard",
        "summary": "Get A2A / Web Agent Card descriptor",
        "responses": {
          "200": {
            "description": "JSON Agent Card",
            "content": {
              "application/json": {
                "schema": { "type": "object" }
              }
            }
          }
        }
      }
    }
  }
}
