Search Filter Not working

Avatar image for synsagar
synsagar

6

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Hi,

First of all, thank you for beautiful APIs.

I am trying to search within different comic categories like characters, volumes, videos, issues etc...

I am firing below query, however every time I get mixed result though I want to filter result based on 'resources' type I provide.

Search url:-

http://www.comicvine.com/api/search/?api_key=<>&limit=30&format=json&query=spiderman&resources:video

This above url gives result with different resource_type including characters, issues etc. even if I am specifically mentioning for only video as resources in filter.

Please advice. Thank you.

Regards,

Sagar S.

Avatar image for nekorename
nekorename

4

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

You are using a colon : character when specifying the resources part of your query. Instead, you use an equals sign = and separate the types of resource you want to search for with commas.

http://www.comicvine.com/api/search/?api_key=X&query=Kitten&resources=volume

This will return the four volumes that contain the word 'kitten'.

http://www.comicvine.com/api/search/?api_key=X&query=Kitten&resources=character,volume

This will return the four volumes that contain the word 'kitten' and all characters containing the word 'kitten'.

Avatar image for synsagar
synsagar

6

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Avatar image for synsagar
synsagar

6

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@nekorename: Hi again,

I am again facing the issue with resources when I am trying to search through movies with below query:-

http://www.comicvine.com/api/search/?api_key=MyApiKey&format=json&limit=50&offset=0&query=Superman&resources=movie

But it returns zero records though it has Superman as movie listed in 'Movies' list

I get below response:-

{"error": "OK","limit": 50,"offset": 0,"number_of_page_results": 609,"number_of_total_results": 6233,"status_code": 1,"results": [],"version": "1.0"}

Please suggest. If movie as resource_type not supported?