Not a bird download - GBIF Data Blog

Recently we were asked on GitHub whether there was a way to get all animal occurrences that are not a bird. This seems like an easy enough request, but unfortunately, there is currently no way to exclude groups from a download search and get everything but a certain group. A user can get all birds, but they can’t get no birds!


This is a companion discussion topic for the original entry at https://data-blog.gbif.org/post/not-a-bird/
2 Likes

The GBIF occurrence download API allows now for a “not” predicate. So there is now an other way to exclude birds from a download:

{'creator': '',
 'notificationAddresses': [''],
 'sendNotification': False,
 'format': 'SIMPLE_CSV',
 'predicate': {'type': 'not',
  'predicate': {'type': 'equals', 'key': 'TAXON_KEY', 'value': '212'}}}
1 Like