Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API re-introduced
#1
I added again the API interface on Hashes.org to do simple hash search requests. You can read here how to use it: https://hashes.org/api_howto.php

It is not the same API as before, some changes in requests structures were made and the output format is always JSON now.
Reply
#2
Looks really nice, but what if you request more then 25 every minute? will it like just give you a forbidden message or will it just ignore til the next minute?
Reply
#3
It will give you this reply when you reach the limit:<br/>

Code:
{
  "ERROR":"LIMIT REACHED!"
}
Reply
#4
Great job s3in!c as usual.

Thx a lot! Wink
Reply
#5
Ahh okay, but does the 1 minute counter stop when you keep hitting it with requests? Like I hitted my 25 max but I just keep hitting it til the minute is over, will it still count that minute or will it like start counting down when you stop hitting the api
Reply
#6
Currently it is programmed to stop when the limit is reached and it doesn't count if you make requests which give you the limit message.

Theoretically you can just ask further and then when the minute is over it will again give results. But it would be really good, if your script (or whatever you use to ask the API) would recognize when the limit is reached and wait some time to try again then. Best solution would be to requesting 20 hashes, then wait until the minute is completed without any request and then send the next 20 requests.

EDIT: corrected limit per minute from 25 to 20
Reply
#7
http://hashes.org/api_howto.php:
The usage is limited to 20 requests per minute and there is no guarantee that this speed can be privided at all time.

Why you are talking about 25 hashes/min?
What is real limits here? Smile
Reply
#8
I'm sorry, I just used what UberStrike wrote since his first message, but of course the limit is 20 per minute
Reply
#9
Well, I was planning on making a program for it and releasing it (with that it is made possible by hashes. Org) just a small python code nothing special Smile. Is that OK with you?</r>
Reply
#10
Btw, I just checked, when you put in a invalid hash, then it doesn't count it towards the counter next to your api key, does that mean that you can request like more then 20 hashes per minute if they are all invalid?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)