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

Downloading data within range of dates #1

Closed
zmonteith opened this issue Jan 17, 2018 · 2 comments
Closed

Downloading data within range of dates #1

zmonteith opened this issue Jan 17, 2018 · 2 comments

Comments

@zmonteith
Copy link
Member

When I try to download seagrass data between dates (ie . sgEndpoint = sprintf("%s/%s", client$api_root, "eims/views/output/mg_seagrass_habitat?date>=2016-01-01&date<2019-01-01") ), only a subset of the data (20 of 667 records) is loaded.

If instead I try to load the last 1000 records (ie. sgEndpoint = sprintf("%s/%s", client$api_root, "eims/views/output/mg_seagrass_habitat?limit=1000")), all the records work.

Am I misunderstanding how to use this function, or is this a bug?

Thanks!

@finnshort
Copy link

Hi Zach, this is the intended behaviour. The default limit is 20 to prevent users from accidentally returning a huge number of results from their query. It's in the tl;dr of the simplified API documentation here, or you can read the full query docs here. Let me know if you have any follow up questions!

@zmonteith
Copy link
Member Author

Awesome thanks Finn. I must have missed that, but I see it now!

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