Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm glad to see https://isevenapi.xyz/ made the list.


I love their pricing options include larger ranges of numbers, and enterprise class also includes negative numbers. ha ha.

Best part is that 'sign up' links to https://archive.org/donate/


I think their ad placement is even better than their pricing.

API Result:

GET https://api.isevenapi.xyz/api/iseven/6/

{"ad":"Buy isEvenCoin, the hottest new cryptocurrency!","iseven":true}


    {"ad":"Looking for someone to do yard work. Must have a hoolahoop. 760-555-7562","iseven":true}
    {"ad":"FOR SALE - collection of old people call 253-555-7212","iseven":true}
    {"ad":"Auto Repair Service: Free pick-up and delivery. Try us once, you'll never go anywhere again. Email dave57@qotmail.com","iseven":true}

    $ curl https://api.isevenapi.xyz/api/iseven/9999999
    {"error":"Number out of range. Upgrade to isEven API Premium or Enterprise."}

    $ curl https://api.isevenapi.xyz/api/iseven/2e21
    {"error":"what is this I don't even"}


What I really want is isoddapi.xyz.

Just like the npm package, all it should do is call isevenapi.xyz and invert the result.


I'd like to see isfizzbuzz.xyz.

Ideally, before 11:30 AM ET this Friday.



Awesome but seem to fail on some numbers e.g.

https://api.isfizzbuzz.xyz/api/15000000000000000000000000000...

BTW, there are neat divisibility rules which can give you the answer in practically linear time when the number is in decimal: https://en.wikipedia.org/wiki/Divisibility_rule


Clever! I found another simple alternative though.


The error response telling me to upgrade to a paid plan isn't in json.

Also, I broke something, maybe in the caching logic. I tried 99999999 then 999999 then 99999 and down, and now I'm currently getting.

    ~$ curl https://api.isfizzbuzz.xyz/api/9
    Invalid number. Please upgrade to a paid plan to use imaginary, non-real, or non-numeric numbers.
also fails on 8.


Whoops, fixed and fixed! And regression tests added.

I had made a silly, silly mistake when I went to restrict numbers longer than 7 digits from the "free plan", I had at the same time disallowed digits larger than 7 as being "valid digits", so anything with an 8 or a 9 had been "invalid".


so many coding interviews will change forever


Putting the 'micro' into microservices one bit of logic at-a-time :)


And then isevenapi.xyz should call isoddapi.xyz and invert the result to offload all the work to them.


isprimeapi.xyz would be helpful.



I hope someone sets up isthirteenapi.xyz.


I Seven API vs is Even API. Can't say I saw it the right way at first.


that makes me want to make an is seven API.


I feel like one of the categories they are missing is 'APIs that can be done in one line of JavaScript"

I'm not saying these shouldn't exist, I think they're pretty funny, but everything in its place.


These come in handy in an instructional context—being able to have a simple predictable API that you can point students at so they can learn how to call an API and process its data.


This made my day..


But what do I do if I need to know if a number is odd?


Launch a startup!


> If a number isn't even, you can easily tell that it's odd.


Yeah that's a hole in the market, I'm stealing it


It was the first one I searched for. What a silly tool: Parity as a Service.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: