152 points · by nantes · 14y ago · 64 comments
This looks remarkably easy to use. Just a small tip: On opencname's home page, you suggest users try the following API call:
$ curl https://api.opencnam.com/v1/phone/2024561111
US GOVERNMENT
I tried it and received a different result: $ curl https://api.opencnam.com/v1/phone/2024561111
DIST OF COLUMBI
Perhaps you should update your home page to reflect this?"Sorry, not implemented yet. Please append "?format=json" to your URL."
When I did that it worked.
So far, I've tested my number, and a few others, that I know have CNAM data that this service only provides a STATE for. Hopefully it will get better but it's not there yet for me.
Basically, we'll only return a result if we have a caller ID in our cache. So, if you get a 404 (no output), then try again a few seconds later after we've had time to do the lookup via our backend.
Sorry about that! Realtime lookups are currently restricted to API key users only.
And you should have made this MUCH more visible on your website. I initially tried your service, got zero results and dismissed it as a failure.
Only after reading here did I realize your service actually does work, I just have to try each query twice.
Sorry for the confusion, but thanks again for the feedback. I greatly appreciate it.
It took me five minutes on the website ... and I had to come back to HN and read the comments to get this working. Don't want to be discouraging, but maybe you should provide this information in the blog/website otherwise you have failed (for me atleast).
Appreciate the feedback.
HTTP code 202 Accepted seems appropriate for this (http://en.wikipedia.org/wiki/List_of_HTTP_status_codes)
But I think that sort of performance would make the free tier essentially worthless. “All you have to do is hit our API endpoint, and BAM, you get results back.” Except you really don't. Analogy: a caching DNS resolver that returned an instant SERVFAIL if the results weren't already in memory wouldn't be considered acceptable even for demo purposes anywhere that I've seen.
After all the feedback here, I realize how crazy it is to be returning a 404.
Thanks for checking us out, and thanks for the feedback!
Not sure if this is the better way.
Personally, I think the Canadian system of including the name in the IAM works a lot better than having to do a DB lookup.
As somehow it pulls up my (not) apparently unlisted home phone; also, it pulls up family members names for cellphones which are under my name on the contract.
So I am definitely interested in finding out where this data is being taken from?