Live data from Hacker News

Ask HN: What API do you wish you had while building your product?

news.ycombinator.com

41–50 of 151 posts

Re: Ask HN: What API do you wish you had while building your product?

#42
post #25

Earlier quoted context omitted.

Can't you use the /raw/ URL for that? E.g. https://pastebin.com/raw/AC3FGHBX

Works for pastebin.com, but not dpaste.com, sprunge.us, ix.io, fpaste.org, ideone.com, paste.fedoraproject.org, hastebin.com, termbin.com, paste.debian.net, gist.github.com, bpaste.net, lpaste.net, pastee.com, irccloud.com, codepad.org or susepaste.org. I currently have ~40 lines of regex for this, plus some custom logic for a few that don't have raw URLs at all. A service would be very convenient.

Some would say you're half way to building what you want... Launch and sell!

Re: Ask HN: What API do you wish you had while building your product?

#44

An API for handling image processing/uploading to S3: Use 1: Send a high-res image in any format (like, say, tiff), the original, a web-optimal jpg at full resolution, and any sizes that might be needed in various contexts (thumbnail, inline display at any screen density) are put into the right place in my S3 bucket. Use 2: Using ids or original file names, point the API to an image or array of images, uploaded via U…

Thank you all! Will investigate! Maybe we need an api for finding apis??

Re: Ask HN: What API do you wish you had while building your product?

#45

Instagram API that didn't require approval for basic things like downloading the image for a given Instagram URL. :P They've made it incredibly restrictive now.

Well, this is web scraping, not necessary an API problem (depends on their tos as well, of course)

Re: Ask HN: What API do you wish you had while building your product?

#46

Earlier quoted context omitted.

So a "Low cost" billing API, everyone's dream!

"Low cost" could be 5% of charges. Use stripe under the hood, so you make 2.1%. Not too bad for a stripe wrapper.

Stripe's pricing is 2.9% + 30¢, so the fee for a $2 payment would be 36¢, effectively 18%.

Re: Ask HN: What API do you wish you had while building your product?

#47

Easy way to get geo from ip. I hate a lot of the options: downloading binarys or using google's that just regulates you.

Easiest solution is to put Cloudflare in front of your site for free and they'll pass in the geo data in the request header. Agreed that playing with binaries that you have to periodically download is horrible.

Re: Ask HN: What API do you wish you had while building your product?

#48
post #46

Earlier quoted context omitted.

"Low cost" could be 5% of charges. Use stripe under the hood, so you make 2.1%. Not too bad for a stripe wrapper.

Stripe's pricing is 2.9% + 30¢, so the fee for a $2 payment would be 36¢, effectively 18%.

We're paying the 18% already for our $2 transaction... Another 5% on that sounds doable.

Re: Ask HN: What API do you wish you had while building your product?

#49

An API for handling image processing/uploading to S3: Use 1: Send a high-res image in any format (like, say, tiff), the original, a web-optimal jpg at full resolution, and any sizes that might be needed in various contexts (thumbnail, inline display at any screen density) are put into the right place in my S3 bucket. Use 2: Using ids or original file names, point the API to an image or array of images, uploaded via U…

Yeah, dealing with images are usually the worst.
Post reply on HN