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

Feature Request: get info as API? #28

Closed
MaxPowerWasTaken opened this issue May 29, 2022 · 5 comments
Closed

Feature Request: get info as API? #28

MaxPowerWasTaken opened this issue May 29, 2022 · 5 comments

Comments

@MaxPowerWasTaken
Copy link

I'd like pull this information programmatically (to e.g. select a machine type based on user requested vCPU, RAM, etc). Do you have any interest in supporting an API for this info, or would the API just be to scrape it? Thanks for an awesome resource!

@Burekasim
Copy link
Collaborator

Hi @MaxPowerWasTaken ,

I thought about it, and consulted internally with colleagues and at the moment, I don't think we will build an API for gcpinstances.info.

But, if you are willing to write an API, we can provide the hosting for that API.

@MaxPowerWasTaken
Copy link
Author

ok thanks for the response Burekasim. I'll try and find some time to take a swing at it; I think you all have done the hardest part already by pulling all the relevant info together into one place.

@MaxPowerWasTaken
Copy link
Author

Hey so as I start to think about how I'd design the API, I first thought about how often I want to pull fresh data from gcpinstances.info, which made me wonder how often the data on the underlying web page refreshes.

Right now on 6/6 the page says Last Update: 2022-06-01 05:00:00 UTC. Can you let me know if gcpinstances.info data refreshes weekly, monthly on the 1st, or on some other schedule?

Thanks!

@Burekasim
Copy link
Collaborator

I update the data manually, every 10 days on average. sometimes there are no updates and it can take 30-40 days until the next update (from Google).

I plan to automate this procedure and use google billing api instead of gcp calculator, it will happen in a few months.

@MaxPowerWasTaken
Copy link
Author

Thanks for the response @Burekasim. I think it sounds to me now like since there is already a gcp billing api, there's probably not much to be added by my writing a new API on top of the existing manually-updated website. So unless I'm missing something, I'll probably not do this after all. But thanks again for maintaining such a cool resource and for the answers here.

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

No branches or pull requests

2 participants