Skip to content

Commit

Permalink
Merge pull request #3 from floweb/fix-urlparams
Browse files Browse the repository at this point in the history
Add some params in the API URL
  • Loading branch information
NullDev committed Oct 9, 2018
2 parents 82f06db + f5f75bb commit f2c9fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/qwant-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ let ParseBody = class {
}
};

function getURL(keyword, count, offset, query, lang) { return `https://api.qwant.com/api/search/${keyword}?count=${count}&q=${query}&offset=${offset}&locale=${lang}`; }
function getURL(keyword, count, offset, query, lang) { return `https://api.qwant.com/api/search/${keyword}?count=${count}&q=${query}&t=${query}&f=&offset=${offset}&locale=${lang}&uiv=4`; }

function isInt(n){ return n % 1 === 0; }

Expand Down

0 comments on commit f2c9fe5

Please sign in to comment.