Issue Detail Workflow

Avatar image for zengei
zengei

12

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

#1  Edited By zengei

So I'm trying to come up with a good workflow for fetching the details of an issue given a <volume title>, <issue number>, and (optionally) , <year of issue>.

My first instinct is to do a query on the search resource with the resources parameter set to "issue" to filter by issues and the query string being "<volume title> <issue number>", however it appears no issues are ever returned by a query on the search resource. Is this an issue to be fixed?

Alternatively I would do:

1. Query on the search resource, filtered by volume, with the query string being <volume title>
2. If <year of issue> is provided, filter out volumes that have a start year after <year of issue>, I would also like to filter out volumes whose count_of_issues is less than the <issue number>, but that's not currently provided in the search results of a volume.
3. If the number of volumes after filtering is >1 then present info to the user so they can select the right one.
4. I would now have a volume ID, so I could query the volume resource for that specific ID
5. The volume resource would provide a list of issues, but selecting the right one would be a problem. The issue numbers are not provided in the response so I would have to iterate through the issues, getting their details until I found one with issue number = <issue number>. If the volume is say... Fantastic Four, in the worse case that would mean 563 GETs to find the correct issue.

So it would probably be best to provide the issue number in the issue list in the volume resource. Although it would be great if doing a search for "<volume title> <issue number> <year of issue>" and filtering by issue could return the possible issue IDs directly.

EDIT: Even better if I could do explicit filtering on the issues resource :)

Avatar image for andy
andy

70

Forum Posts

85

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By andy

I'll add a volume filter on the issue resource for ya in the next day or so.  Sorry for the delay, just trying to wrap another project up first.

Avatar image for zengei
zengei

12

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

#3  Edited By zengei
Lord Sedrik said:
"I'll add a volume filter on the issue resource for ya in the next day or so.  Sorry for the delay, just trying to wrap another project up first."
Excellent, thanks.
Avatar image for kobric
Hardartist

916

Forum Posts

2925

Wiki Points

0

Followers

Reviews: 30

User Lists: 6

#4  Edited By Hardartist
Lord Sedrik said:
"I'll add a volume filter on the issue resource for ya in the next day or so.  Sorry for the delay, just trying to wrap another project up first."

He is right that i am confused with evrything about API Davelopers.
Avatar image for LordAndrew
LordAndrew

154

Forum Posts

951

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

#5  Edited By LordAndrew

Are you developing an application that makes use of Comic Vine's API? If not, then you really don't need to worry about it.

Avatar image for darksbane
Darksbane

11

Forum Posts

39729

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#6  Edited By Darksbane
@Lord Sedrik said:
" I'll add a volume filter on the issue resource for ya in the next day or so.  Sorry for the delay, just trying to wrap another project up first. "
Did this ever happen?
Avatar image for zengei
zengei

12

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

#7  Edited By zengei

Any word on this?

Avatar image for macmanja
macmanja

1

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#8  Edited By macmanja

Bump

Avatar image for comicvine12345
comicvine12345

3

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#9  Edited By comicvine12345

I'd certainly like to see this - searching for an issue seems fundamental to a comic book database.

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#10  Edited By cbanack

Yes, this would probably cut down a lot of unnecessary load on the comicvine servers.
  
A simple solution (among many possibilities) would be to include the issue number as one of the details that appears in the list of issues when you query for details about a series.   That way, api users could create a mapping of issue numbers <-> issue IDs without having to do a separate query for every single issue, and then search through them all!
 
Such a mapping is essential to most of the kinds of ComicVine API-using applications that I can imagine (including my own, of course), which is why I suspect much of the load on the ComicVine servers could already be coming from a bunch of these (fundamentally unnecessary) extra queries.
 
(On the other hand, if there IS a way to get a mapping of issue numbers to issue IDs WITHOUT having to query each issue individually, I'd be delighted to hear about it...?)

Avatar image for pewpewrawr
Pewpewrawr

2

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#11  Edited By Pewpewrawr

Is this possible yet? I just started writing a plugin for MeediOS to scrape comic info and being able to search for volume + issue number would make it easier to develop, and cut down on a lot of API queries.

Avatar image for mabster
mabster

27

Forum Posts

5

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#12  Edited By mabster

I suspect that this still isn't working, a year later. If I try to query /issues/?api_key={key}&volume=3857 (to just get the issues in Silver Surfer volume 3) I get a result with over 230,000 issues (presumably every issue in CV's database). 
 
I know I can ask for a list of issue on the /volume/ resource, but that only gets me issue-number and name. If I want more details than that (with paged results) I'm outta luck. 
 
Matt