Lurker News

Comments (147) 35 threads

Earlier comments
dylan6042 replies#
I like the UI generating the URL to send to the API vs just a PDF of all of the possible key/value pairs to generate manually. A little above&beyond for most APIs I've used personally. Its effort not lost on me.
zestyping#
Yeah, this is a really nice touch!
meteo-jeff4 replies#
Glad you like it! Bootstrap v5 helped a lot :)

I hope to improve the UX a bit further with a city-search for example. Unfortunately I am lacking a good geocoding API for that.

wasmitnetzen1 reply#
You could export Wikidata objects if it is good enough for you to cover 99% of all places.
meteo-jeff1 reply#
I was thinking to use the geonames location database and build a simple fuzzy search engine around it.

What wikidata objects are you referring to?

Continue this thread — 1 reply

classichasclass3 replies#
I respect and appreciate no API key being needed, but how will you prevent excessive usage? I'll just say that it's been a battle on my end to stop people abusing APIs I deploy. It's why we can't have nice things.
Wowfunhappy1 reply#
Limit per IP address?
ianlevesque3 replies#
CGNAT has made the blast radius of that technique really large.
Wowfunhappy#
Idk, Github's API does it, seems to be working. You can always offer an API key as an alternative option.
Arnavion#
Websites being unusable for CGNAT'd users is good for persuading said carriers to start using IPv6 already.
cube00#
The API responded to me over IPv6 so while the consumer market will take time to get over to full IPv6 you can still setup your server today to offer IPv4/6 to your users and connect to this API via IPv6 which will eliminate you getting blocked in a CGNAT blast radius.
stavros1 reply#
For a data point, as a user, I think requiring an API key is fine if the process to create and use a key is simple. Having to use one to prevent abuse is fair enough.
Wowfunhappy#
It's a problem if the code runs client-side and so there's no way to hide the key. I've run into this problem making widgets for the old OS X dashboard, and Javascript Pebble apps.
meteo-jeff#
This is indeed a concern to me.

As others pointed out, blocking IP addresses is an option. Blocking access based on the HTTP Origin header is also possible.
I hope I can go on for some time without being to restrictive. With a fairly quick API that can scale with cheap VMs it should be feasible to keep it running at low expenses even at higher utilisation.

arthurcolle1 reply#
You weather guys on here might also want to talk to the oikolab dude who posted on HN 9 months ago - I was thinking of incorporating weather data into my trading models so he graciously granted an API key but haven't had time much to use it viably as you kind of have to know what you're doing/how you intend to map trading outcomes and causal first-order effects on the climate grid to actual events that can be traded on. Didn't put it to much use amidst a bunch of competing priorities but the API seems extremely high resolution.

site: oikolab.com
HN user: a_square_peg

meteo-jeff1 reply#
Thanks for the hint. I did not know them yet
a_square_peg#
Hello. Fantastic project! My focus is on providing historical data (I do have forecasts but is more secondary focus). Would be happy to chat.
robmiller#
This was my first thought of application too.

Load more comments