# xeno-canto API

Category: [Audio](https://free-web-services.com/web-services/media/audio/)  
Page: https://free-web-services.com/web-services/media/audio/xeno-canto-api.html  
Documentation: https://xeno-canto.org/explore/api

The xeno-canto API searches a shared collection of wildlife sound recordings, mostly bird songs and calls, also bats and grasshoppers, for example for a nature app or for training species recognition. GET requests with search tags such as species, country or quality return JSON with audio file links, spectrograms, recordist and licence. Free with a free API key for registered members with a verified e-mail address. A User-Agent header is required, and each recording has its own Creative Commons licence, often non-commercial, so credit the recordist.

- API key: Needed, free
- Pricing: Free with a free API key for registered members with a verified e-mail address.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, HTTP-GET
- Provider: xeno-canto.org

Example request:

```sh
curl 'https://xeno-canto.org/api/3/recordings?query=sp:%22larus%20fuscus%22&key=YOUR_API_KEY' \
  -H 'User-Agent: YourApp/1.0'
```

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

