Avatar image for nalston
#1 Posted by nalston (2 posts) - - Show Bio

Hello, I am new to coding and just started messing around with APIs. Right now I am just trying to query all the data in the API. The URL is:

http://www.comicvine.com/api/?api_key=xxx

when I console log the response I get an error that says the API failed to load and I do not have access to the API. What am I doing wrong??

Avatar image for jl7897
#2 Edited by jl7897 (3 posts) - - Show Bio

Hello! I'm somewhat new to coding as well and have been having a tough time getting this API to work in the way I want, however I think I can help you. I think the problem here is that this API wants you to specify a resource to search. So it would need to look like :

http://www.comicvine.com/api/volumes/?api_key=xxx

or http://www.comicvine.com/api/characters/?api_key=xxx

Something like that. This blog post was somewhat helpful when I started messing around with the API.

http://josephephillips.com/blog/how-to-use-comic-vine-api-part1