Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production Use #50

Open
nicholasviscomi opened this issue Oct 20, 2020 · 8 comments
Open

Production Use #50

nicholasviscomi opened this issue Oct 20, 2020 · 8 comments
Labels

Comments

@nicholasviscomi
Copy link

Is there any way I can pay for unlimited/really high usage rates? I have a cool iOS app and want it to be fully funcitonal

@akionsight
Copy link
Contributor

You can generate multiple API keys, one for each user. This will reduce the server load too.

WARNING: I am not the staff here, refer to the staff's guidelines before making any decisions

@nicholasviscomi
Copy link
Author

@akionsight Would you be able to tell me how I can generate a key for each user?

@akionsight
Copy link
Contributor

I wouldn't do this without permission from the staff but you can do that with something like a puppeteer or selenium script running on the server-side that generates API keys by accessing the nasa open API's website. the generated API key can be sent to the app for use.

Warning: Do not do this without permission from the staff.

@akionsight
Copy link
Contributor

or generate one key, and use that key once a day to refresh the content on your server and send back data from your server instead of each user accessing it from the apod-api server

@nwunderly
Copy link
Contributor

nwunderly commented Oct 21, 2020

You can also host the API backend yourself. All it does is scrape apod.nasa.gov anyway. In fact, the README seems to recommend doing this when you need reliable access to APOD data.

@akionsight
Copy link
Contributor

I won't recommend scraping because the scrapers might get blocked, hence generating a fairly large failure for the app

@nwunderly
Copy link
Contributor

It's possible, but considering both the fact that the official APOD API is in fact scraping the APOD site, and that the readme recommends hosting your own if you need "an extremely reliable version of this API", I suspect the site isn't too harsh against scrapers.

@hemangshah
Copy link

Hi @nicholasviscomi , you can follow steps provided by Pawel and use deploy the modified API work to your server/heroku and use it. https://github.com/PawelPleskaczynski/apod_api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants