Struggling with the API

Avatar image for possiblyalan
PossiblyAlan

2

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Hi folks,

Just signed up to use the API with a view to building an app. I've been playing with the API in CURL in the absence of some examples.

curl -v http://www.comicvine.com/api/characters/?api_key=KEY&format=json&limit=100

this seems to work fine and dumps out a bunch of characters, so I think my APIKEY is right.

Every attempt to use the search API results in:

<?xml version="1.0" encoding="utf-8"?>

<response>

<error><![CDATA[Object Not Found]]></error>

<limit>0</limit>

<offset>0</offset>

<number_of_page_results>0</number_of_page_results>

<number_of_total_results>0</number_of_total_results>

<status_code>101</status_code><results/>

</response>

(even if I specify format=json I get an XML result).

I've tried pasting in a few of the queries I found on the forum, e.g..

http://www.comicvine.com/api/search/?api_key=KEY&query=Kitten&resources=character,volume

http://www.comicvine.com/api/search/?api_key=KEY&resources=character&query=silver

http://www.comicvine.com/api/search/?api_key=KEY&format=json&limit=100&resource_type=publisher&query=DC

and I always just get the same result. Am I doing something wrong? Is there some trick to searching "all known comics"? Do I need a special account or something ?

Any help appreciated as I'm tearing my hair out.

Alan

Avatar image for donnrri
donnrri

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Hi

Did you find out how to do this. I am in the same situation , how do you search for a specific character using the search call ?????

Avatar image for donnrri
donnrri

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@donnrri:

I found it

http://www.comicvine.com/api/search/?api_key=your-key&query=your-character&format=json