Example of an API call for getting series that include the queried issue

Avatar image for limmie
limmie

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

First off, thanks for this great resource. Rate-limiting notwithstanding, I think this is such an amazing API that you can build on top of.

I had some questions around how to structure my query so that:

1. I have the name of an issue, and it could be part of a series, what fields should I include in the response to get this information?

Currently, my query is structured this way:

http://localhost:6050/api/comicbookinfo/search?format=json&query=Superman%20-%20Kal%20%281995%29.cbr&limit=10&offset=5&sort=name%3Aasc&resources=issue

My query params are:

format: json
query: Superman%20-%20Kal%20%281995%29.cbr
limit: 10
offset: 5
sort: name%3Aasc
resources: issue

My intention is to find out the series or a list of series that this issue is a part of.

Can anyone point me in the right direction?

Avatar image for herrdoktorbd
herrdoktorbd

38

Forum Posts

125821

Wiki Points

0

Followers

Reviews: 0

User Lists: 10

@limmie:

Let's say you're looking for an issue called Feynman.

Query:

https://comicvine.gamespot.com/api/search/?api_key= api_key&format=json&limit=1&offset=0&field_list=id,name,deck,volume&sort=name:asc&resources=issue&query=Feynman

Response:

{"error":"OK","limit":100,"offset":0,"number_of_page_results":1,"number_of_total_results":1,"status_code":1,"results":[{"deck":null,"id":344202,"name":"GN","volume":{"api_detail_url":"https:\/\/comicvine.gamespot.com\/api\/volume\/4050-50171\/","id":50171,"name":"Feynman","site_detail_url":"https:\/\/comicvine.gamespot.com\/feynman\/4050-50171\/"},"resource_type":"issue"}],"version":"1.0"}

So now you have an issue id 344202, and a volume id 50171. Let's get the volume's info.

Query:

https://comicvine.gamespot.com/api/volume/4050-50171/?api_key= api_key&format=json&limit=1&offset=0&field_list=id,name,deck,api_detail_url

Response:

{"error":"OK","limit":1,"offset":0,"number_of_page_results":1,"number_of_total_results":1,"status_code":1,"results":{"api_detail_url":"https:\/\/comicvine.gamespot.com\/api\/volume\/4050-50171\/","deck":"A comic biography of the physicist Richard Feynman, one of the smartest men of the past century. His mark on history can be felt from the Manhattan Project to the investigation of the Challenger shuttle accident. He also cracked a safe or two and played a mean bongo drum. Learn why Richard Feynman is one of science's most colorful characters.","id":50171,"name":"Feynman"},"version":"1.0"}

I hope this helps.

Regards.

Avatar image for limmie
limmie

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0