Live data from Hacker News

Building an API in 60 seconds, without any server setup

api.blockspring.com

21–30 of 72 posts

Re: Building an API in 60 seconds, without any server setup

#22

This looks like a great service! Is there a way to sign up for a paid account or a credit system? I don't want to burden you guys with the costs of my API requests.

We should do an Ask HN about this :). Would love your feedback on what makes most sense.

People have messaged me asking for pricing tiers based on rate limits / usage, or purchasing company machines to run all apis from, or even paying for extra privacy (like on github).

What's most fair / makes most sense for you?

Re: Building an API in 60 seconds, without any server setup

#25
post #19

Earlier quoted context omitted.

I personally like the google reverse image search hack :). I used to just run that python script manually on my computer. Now I can just call it from my front-end js when users upload images and return back some text about the image. https://api.blockspring.com/users/pkpp1233/blocks/5a1b66ef20... But you can do just about anything. Users have done r statistics from js. Or python sentiment analyses (lots of good libra…

Was just looking today if google had an api for reverse image search, which they don't, so thank you :)

I imagine they have an undocumented api for reverse image search. The team at Google has released this extension[1] for adding reverse image search to the context menu, which is currently the only extension that enables reverse image search for images only accessible while logged in (think if you want to reverse image search a preview of an image someone emailed to you).

I was thinking about intercepting the requests it makes and making an open source extension that does the same thing, but I haven't had the time yet.

[1] https://chrome.google.com/webstore/detail/search-by-image-by...

Re: Building an API in 60 seconds, without any server setup

#26

This looks like a great service! Is there a way to sign up for a paid account or a credit system? I don't want to burden you guys with the costs of my API requests.

We should do an Ask HN about this :). Would love your feedback on what makes most sense. People have messaged me asking for pricing tiers based on rate limits / usage, or purchasing company machines to run all apis from, or even paying for extra privacy (like on github). What's most fair / makes most sense for you?

To be completely honest, I'm not sure. I would say charge by the total amount of time the VMs have run, but I have no idea how the costing will work out.

Good luck!

Re: Building an API in 60 seconds, without any server setup

#27

Earlier quoted context omitted.

We should do an Ask HN about this :). Would love your feedback on what makes most sense. People have messaged me asking for pricing tiers based on rate limits / usage, or purchasing company machines to run all apis from, or even paying for extra privacy (like on github). What's most fair / makes most sense for you?

To be completely honest, I'm not sure. I would say charge by the total amount of time the VMs have run, but I have no idea how the costing will work out. Good luck!

That's a great point. And since people aren't running dedicated machines, only paying for the requests that happen, it could even be cheaper than spinning up your own server. Interesting!

Re: Building an API in 60 seconds, without any server setup

#29
I'm not sure I understand what this is. Free hosted PaaS for single files, essentially? I know nothing about where the code is running? Is it performant? Is it reliable? How are they covering server costs / at what point would I be asked to pay, and how much?

Re: Building an API in 60 seconds, without any server setup

#30
post #28

So my buddy Sean (@tilmonedwards) just built something pretty similar as a command-line app, just for yucks: https://github.com/seanedwards/svcizer

"The request body will be passed to stdin."

"STDOUT and STDERR from cmd will be dumped to the response body."

"HTTP headers and query parameters will be passed as environment variables."

Uhhh, your friend just reinvented CGI: https://en.wikipedia.org/wiki/Common_Gateway_Interface

Post reply on HN