From 4750f310108b00aa93b6c6daa92bc5a21533f551 Mon Sep 17 00:00:00 2001 From: Rowan Oulton Date: Sat, 8 Mar 2014 10:32:30 +1300 Subject: [PATCH] Adjust API endpoint --- lib/xeno-canto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {