Query Options

Avatar image for dejbaba
Dejbaba

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

is it possible to get the list of characters for a particular publisher(for example, i want to fetch the list of DC Comic Characters only).

if this is possible, how do i go about it?

Avatar image for pysassin
Pysassin

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Characters endpoint has filter functionality and a Publisher data point. Would assume you can just pass the filter parameter for that field with the string you want to filter by.

Avatar image for dejbaba
Dejbaba

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@pysassin: please can you help with the full url sample? ... i have tried all i can.

seem not to be getting it.

Avatar image for pysassin
Pysassin

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Was wrong. You don't use the character API end point. Just use the publisher API endpoint and your will get a list of characters.

DC Comics is:
https://comicvine.gamespot.com/api/publisher/4010-10/?api_key={YOUR_API_KEY_HERE}&format=json

Avatar image for khael123khaelp
Khael123khaelp

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#5  Edited By Khael123khaelp

@pysassin: If you perform that query, inside results you get more than 19000 arrays, which makes the query very heavy. The ideal would be to make a query like this "https://comicvine.gamespot.com/api/characters/?api_key={your apikey}&format=json&filter=publisher.name:DC Comics&limit=10" with the parameter limit it could be regulated but this query does not work.