New api, not letting me do searches properly

Avatar image for xstefanx
xstefanx

37

Forum Posts

153

Wiki Points

0

Followers

Reviews: 9

User Lists: 2

Yesterday, this url would result with two volumes being returned, the issues and then the TPB.

http://api.comicvine.com/search/?api_key=XXXXXXXXXXXXXXXXXXXXXXX&query=who_is_jake_ellis&format=xml

Starting around 4~ CST Yesterday that link started returning nothing. I can however get the volumes to come up if I change query to just ellis, like this

http://api.comicvine.com/search/?api_key=XXXXXXXXXXXXXXXXXXXXXXX&query=ellis&format=xml

But, in terms of the project I'm working on, that doesn't really help me. Is there something I am doing wrong?

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By cbanack

Looks like the new API does not interpret "_" characters as spaces. You should put actual spaces in the URL.

Depending on how you're constructing the URLs, you might be able to just use spaces instead of "_", and they will be automatically encoded into "%20"s. Otherwise, you might have to encode them yourself:

http://api.comicvine.com/search/?api_key=XXXXXXXXXXXXXXXXXXXXXXX&query=who%20is%20jake%20ellis&format=xml

More info here.

Avatar image for xstefanx
xstefanx

37

Forum Posts

153

Wiki Points

0

Followers

Reviews: 9

User Lists: 2

#3  Edited By xstefanx

Much appreciated!