Getting all results for a given search filter

Hi all, I'm trying to get all the years of occurrence for a specific organism. But I only get 20 results for each organism that I search. How do I get all the results ? Thanks, Akshat

You can do pagination with limit and offset parameters. For example; http://api.gbif.org/v1/occurrence/search?taxonKey=1&limit=25 Can set limit up to 300. Use offset parameter to get next set of results. Though if you want to get *A LOT* of data as it seems you do, using the async download service is better suited: https://www.gbif.org/developer/occurrence#download Best, Scott On Sat, Jan 13, 2018 at 4:13 AM Akshat Pant <akshat26@terpmail.umd.edu> wrote:
Hi all, I'm trying to get all the years of occurrence for a specific organism. But I only get 20 results for each organism that I search. How do I get all the results ?
Thanks, Akshat _______________________________________________ API-users mailing list API-users@lists.gbif.org https://lists.gbif.org/mailman/listinfo/api-users

Hi Scott, I did use the async download service. Is there a way to get only specific attributes like the only the year of occurrence instead of all the data ? Thanks, Akshat On Sat, Jan 13, 2018 at 3:39 PM, Scott Chamberlain <scott@ropensci.org> wrote:
You can do pagination with limit and offset parameters. For example;
http://api.gbif.org/v1/occurrence/search?taxonKey=1&limit=25
Can set limit up to 300. Use offset parameter to get next set of results.
Though if you want to get *A LOT* of data as it seems you do, using the async download service is better suited: https://www.gbif.org/ developer/occurrence#download
Best, Scott
On Sat, Jan 13, 2018 at 4:13 AM Akshat Pant <akshat26@terpmail.umd.edu> wrote:
Hi all, I'm trying to get all the years of occurrence for a specific organism. But I only get 20 results for each organism that I search. How do I get all the results ?
Thanks, Akshat _______________________________________________ API-users mailing list API-users@lists.gbif.org https://lists.gbif.org/mailman/listinfo/api-users
participants (2)
-
Akshat Pant
-
Scott Chamberlain