qwant-api icon indicating copy to clipboard operation
qwant-api copied to clipboard

Error code 9

Open LohithArcot opened this issue 6 years ago • 3 comments

What does the error code 9 mean? get request URL : https://api.qwant.com/api/search/images?q=stackoverflow response: {"status":"success","data":{"result":{"items":[]},"error_code":9}} What does the error_code 9 mean ?

LohithArcot avatar Apr 02 '19 09:04 LohithArcot

@lohithpro I think this is related to this issue. I guess you need to pass some more params to your query.

floweb avatar Jun 26 '19 12:06 floweb

got rid of the error by adding a Mozilla user-agent to the request. You also have to add some parameters to the request. I Don't kwow what they all do. https://api.qwant.com/api/search/images?count=10&offset=0&q=test&t=images&uiv=1 exemple for my python script :

headers = {
		'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0',
	}

with a home made user-agent i was stuck with error 9

kokmok avatar Sep 13 '19 19:09 kokmok

@kokmok My god, &uiv=1 stops error 9 ! Definitely need a lil rewrite of my program now. THANK YOU

pekempy avatar Nov 11 '19 16:11 pekempy