cbanack

This user has not updated recently.

124 199 0 19
Forum Posts Wiki Points Following Followers

cbanack's forum posts

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

19

Followers

Reviews: 0

User Lists: 0

#1  Edited By cbanack

@cbanack: Hey.. just as a reminder last I was told callouts in the first post don't work.

Thanks for letting me know! I'll guess I'll try a second callout to @mrpibb then, in case he didn't get the first one. :)

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

19

Followers

Reviews: 0

User Lists: 0

A few of the users of my app have started reporting a new error code, "code 107: Rate limit exceeded. Slow down cowboy."

Looks like you guys have implemented a good way to stop people from abusing the web API.

That means it's time for me to make some changes to my app, like throttling API hits so users don't accidentally exceed their rate limit, or providing sensible rate limit error messages so that users know what is expected of them. But I can't do those things effectively without some more details.

Could someone in the know (@mrpibb, perhaps?) please tell us more about how this all works?

  • what exactly causes a user to exceed the rate limit? is it based on the speed that API requests come in? or the total number of request per day?
  • once a user loses access because they've exceeded their rate limit, how long does it take before they have access again?
  • does the API key used have anything to do with the rate limit count, or is it just based on the number of hits from a users IP address?

Thanks!

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

19

Followers

Reviews: 0

User Lists: 0

#3  Edited By cbanack

Hi,

My comicvine-based app just stopped working, and when I check the logs it says that my API key is invalid. I haven't changed anything on my end, and that API key has been working for years.

Even more strangely, when I go to www.comicvine.com/api, right at the top of the page (under the heading "Grab an API Key") it says "We donated your API key to charity"...?

Can someone please tell me what this means, and more importantly, how I can get my API key working again?

Thanks,

Cory

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

19

Followers

Reviews: 0

User Lists: 0

@jslack: Sure, I just ran a few tests of the web api's "search" resource. It doesn't seem like anything has changed, though?

For example, I tried searching for "batman arkham asylum". First I used this regular, unmodified query:

http://www.comicvine.com/api/search/?api_key=MY-API-KEY&format=xml&limit=100&resources=volume&field_list=name&query=batman%20arkham%20unhinged

I get back 825 results (basically any volume that has "batman", "arkham" or "asylum" in its name.)

Then I tried it again, but inserted "AND" into the string:

http://comicvine.com/api/search/?api_key=MY-API-KEY&format=xml&limit=100&resources=volume&field_list=name&query=batman%20AND%20arkham%20AND%20unhinged

I get 3 results: the three volumes named "Batman: Arkham Asylum". I think this is the ideal behaviour, so last week I modified my app to insert "AND" into all its search queries. I haven't heard any complaints about the search feature in the latest version of my app, so I can say pretty confidently that searching with "AND" is working well.

However, I think the regular search (without "AND") is returning far too many results. Perhaps it's possible to make it automatically treat the search expression as though there was an "AND" between each word? That's how the web API's search resource behaved up until last month.

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

19

Followers

Reviews: 0

User Lists: 0

@jslack said:

I'd like to keep working with you in your test case to get the best results, while maintaining quality results elsewhere.

No problem. My app has around 1000 active/semi-active users and they are NOT shy about letting me know when there's a problem, so I tend to be pretty well-informed about issues with the web API. Let me know when you've pushed, and I'll give things a try.

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

19

Followers

Reviews: 0

User Lists: 0

@jslack: Thanks for the detailed response! I'm happy to help in whatever way I can.

I'm trying to get my own app (which uses the ComicVine web API) working again. It relies heavily on searching, but it still needs the search terms to be ANDed together. Sounds like this isn't going to be the default behaviour for the web API anymore, but I discovered that I can still get the results I want by "ANDing" the search terms manually. For example, if I change the search string "batman arkham asylum" to "batman AND arkham AND asylum", the search once again behaves the way it used to.

Can you tell me if it is "safe" for my app to rely on that "AND" syntax working in this way? That capability seems to be undocumented right now, so I'm worried that it might not be intended as a permanent feature.

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

19

Followers

Reviews: 0

User Lists: 0

#7  Edited By cbanack

@rorie: @jslack: Hey guys, any word on this issue yet (see comment 4)? Is this change to the behaviour of the web API going to be permanent?

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

19

Followers

Reviews: 0

User Lists: 0

#8  Edited By cbanack

@rorie: Hi, it looks like you must have reported and/or fixed this bug, because the search results are much better now!

Unfortunately, I think in the process of fixing the search, a bug from a few weeks ago has popped up again. When using the web API 'search' resource, the search terms are once again being "OR"d together instead of "AND"ed together. So when I search for "batman arkham asylum", instead of getting back just the three issues that contain "batman" AND "arkham" AND "asylum" in their names, I get back hundreds of issues, basically everything that contains "batman" OR "arkham" OR "asylum".

This problem first popped up a few weeks ago, and I reported it here. The problem was fixed shortly thereafter. But it has returned as of this afternoon, at roughly the same time that the general search started working again. Is this new behaviour (ANDing instead of ORing) intentional?

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

19

Followers

Reviews: 0

User Lists: 0

#9  Edited By cbanack

@rorie: Cool, thanks for that. There's more examples of the same problem here, if you need (see comment 45).

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

19

Followers

Reviews: 0

User Lists: 0

If you try to search for a volume by typing it into the search bar on the top of the page, you get a "dropdown" that previews your search results. You can then hit enter to complete the search and get the full search results.

Unfortunately, the dropdown preview contains (many) volumes that do not appear in the complete search results. For example, search for "batman and robin". The 2011 Volume (33 issues) appears in the dropdown preview, but once you hit "enter" it is no where to be found. (It's easier to prove this if you search only for "volumes" in the search bar options.)

This problem of missing volumes extends to the results returned by the web API's "search" resource, too.

I can provide many more examples, if desired.