diff --git a/lib/xeno-canto.js b/lib/xeno-canto.js index 563bc30..0cd6004 100644 --- a/lib/xeno-canto.js +++ b/lib/xeno-canto.js @@ -20,7 +20,7 @@ function XenoCanto(){ /** Search for name of advanced options*/ XenoCanto.prototype.search = function(query, success){ if (!!query) { - var url = 'http://www.xeno-canto.org/api/recordings.php?query='; + var url = 'http://www.xeno-canto.org/api/2/recordings?query='; // Duck-typing args if (typeof(query) === 'string') {