ctgarry / api.comics.org

api.comics.org demo
GNU General Public License v3.0
1 stars 0 forks source link

GET by Upc/barcode #1

Open jaymarvels opened 3 years ago

jaymarvels commented 3 years ago

Just wondering if support to query (read-only) a upc or barcode search is going to be added?

ctgarry commented 3 years ago

This is implemented now: https://www.comiccover.org/api/v1/issue/?barcode=76194120001990111 ... and partial matches will return multiple comics.

jaymarvels commented 3 years ago

Wow! Amazing fast turn around! Thanks! No image url on the the response though, is this a WIP or by design?

ctgarry commented 3 years ago

By design. If you go to the GCD website and right-click to copy the image URL and then try to use it directly, the site will reject the request. The URL is not in the GCD data. I could link to the comiccover.org version of the image, because that is a derived URL, based on the GCD issue ID, but the same thing would happen if referenced offsite.

ctgarry commented 3 years ago

My understanding is that GCD is sticky about making image access easy.

jaymarvels commented 3 years ago

Ahh understood. Was trying to find an Api where someone could scan a comic book barcode and retrieve the comic book information as well as cover art and came across this! Maybe not quite what I need!

jaymarvels commented 3 years ago

I guess I could use this Api to query via the barcode and then use the results to query marvels own api to get the cover art..