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

how to download Worldbank dataset with an api-call #138

Open
marboe123 opened this issue Aug 24, 2022 · 2 comments
Open

how to download Worldbank dataset with an api-call #138

marboe123 opened this issue Aug 24, 2022 · 2 comments

Comments

@marboe123
Copy link

Thank you for the great package since this is exactly what I am looking for.

In the package there is an example dataset from the Worldbank.
Can you provide a link to the specific Worldbank api directory so I can download the dataset directly with an api-call?

I would like to import the data in Postman with an api-call in order compare it with the lay-out in tidyjson.

Thanks a lot!

@colearendt
Copy link
Owner

Howdy @marboe123 ! Glad to hear tidyjson has been useful for you!

Unfortunately, it looks like the source for the worldbank data (jsonstudio.com) now has its domain for sale, so it seems to be a bit of a dead end. As a result, I'm not sure that there is another source for this data? (It also predates me as the maintainer of the package, so there is no telling where it came from).

That said, I suspect you could write the data from the package as a JSON blob and then host that somewhere to retrieve? i.e. on a GitHub gist, S3 bucket, etc. You could even run a little webserver locally to retrieve the file as JSON - with plumber or otherwise. In fact, that may be the easiest - write a little plumber API that can return the worldbank data directly from the package.

I'm not in a place that I can write the example code for how to do that right now, but I can take a look later if that would be helpful!

@marboe123
Copy link
Author

marboe123 commented Aug 24, 2022 via email

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