Easy way to get geo from ip. I hate a lot of the options: downloading binarys or using google's that just regulates you.
Ask HN: What API do you wish you had while building your product?
41–50 of 151 posts
Re: Ask HN: What API do you wish you had while building your product?
#42Earlier 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.
Re: Ask HN: What API do you wish you had while building your product?
#43Re: Ask HN: What API do you wish you had while building your product?
#44An 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…
Re: Ask HN: What API do you wish you had while building your product?
#45Instagram 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.
Re: Ask HN: What API do you wish you had while building your product?
#46Earlier 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.
Re: Ask HN: What API do you wish you had while building your product?
#47Easy way to get geo from ip. I hate a lot of the options: downloading binarys or using google's that just regulates you.
Re: Ask HN: What API do you wish you had while building your product?
#48Earlier 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%.
Re: Ask HN: What API do you wish you had while building your product?
#49An 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…