{
  "openapi": "3.1.0",
  "info": {
    "title": "BirdHear Public Bioacoustic & Taxonomy Data API",
    "version": "1.2.0",
    "description": "Public static JSON and audio endpoints for BirdHear (https://birdhear.com), an in-browser AI bird sound identifier and unattended 48 kHz clip vault by Putervision (https://putervision.com). Paired with BirdNoises (https://birdnoises.com).",
    "contact": {
      "name": "Putervision",
      "url": "https://putervision.com",
      "email": "contact@birdhear.com"
    }
  },
  "servers": [
    {
      "url": "https://birdhear.com",
      "description": "BirdHear Production Server"
    }
  ],
  "paths": {
    "/models/birdnet-v2.4/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 indexed 0..6521.",
        "responses": {
          "200": {
            "description": "Ordered array of species labels",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "example": "Turdus migratorius_American Robin"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/bioregions.json": {
      "get": {
        "operationId": "getBioregions",
        "summary": "Get curated global birding bioregions and hotspots",
        "description": "Returns curated global birding bioregions with geographic centroids and bounding boxes.",
        "responses": {
          "200": {
            "description": "Bioregions catalog",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": { "type": "string" },
                      "name": { "type": "string" },
                      "lat": { "type": "number" },
                      "lon": { "type": "number" },
                      "bbox": {
                        "type": "array",
                        "items": { "type": "number" },
                        "minItems": 4,
                        "maxItems": 4
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/gazetteer.json": {
      "get": {
        "operationId": "getGazetteer",
        "summary": "Get offline world gazetteer (countries, US states, Canadian provinces)",
        "description": "Returns offline geographic entries with centroids and bounding boxes for regional species filtering.",
        "responses": {
          "200": {
            "description": "Offline world gazetteer",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": { "type": "string" },
                      "name": { "type": "string" },
                      "type": { "type": "string" },
                      "lat": { "type": "number" },
                      "lon": { "type": "number" },
                      "bbox": {
                        "type": "array",
                        "items": { "type": "number" }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/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 BirdHear",
        "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" }
              }
            }
          }
        }
      }
    }
  }
}
