Using the asynchronous download service
![](https://secure.gravatar.com/avatar/55fdf98e985cc7302800217563e44f1c.jpg?s=120&d=mm&r=g)
Hi all, I'm trying to retrieve the latitude and longitude for some specific organisms. I'm trying to use the synchronous download service. I used the 'equals' predicate to filter by the hasCoordinate value. But the curl query just returns a warning saying that it returns an empty post. I hope that someone can help.
Thanks, Akshat
![](https://secure.gravatar.com/avatar/59c89a3fe205c7ba9a7025e0f9b4f657.jpg?s=120&d=mm&r=g)
Hi Akshat,
You caught us between Christmas and New Year, when many people were on holiday.
A synchronous query would be like this: https://api.gbif.org/v1/occurrence/search?taxon_key=2280097&has_coordina... so I'll assume you mean the asynchronous download service.
This curl request has worked for me, producing this download on the test system: https://www.gbif-uat.org/occurrence/download/0000143-171108114045140 or https://api.gbif-uat.org/v1/occurrence/download/0000143-171108114045140
query.json:
{ "creator": "MattBlissett", "notification_address": [ "mblissett@gbif.org" ], "predicate": { "type": "and", "predicates": [ { "type": "equals", "key": "TAXON_KEY", "value": "2280097" }, { "type": "equals", "key": "HAS_COORDINATE", "value": "true" } ] }, "format": "DWCA" }
curl -i --user MattBlissett:XXXXX -H "Content-Type: application/json" -X POST -d @query.json 'https://api.gbif-uat.org/v1/occurrence/download/request'
If you still have trouble, please send the Curl request you used.
Thanks,
Matthew Blissett
On 26/12/17 01:51, Akshat Pant wrote:
Hi all, I'm trying to retrieve the latitude and longitude for some specific organisms. I'm trying to use the synchronous download service. I used the 'equals' predicate to filter by the hasCoordinate value. But the curl query just returns a warning saying that it returns an empty post. I hope that someone can help.
Thanks, Akshat
API-users mailing list API-users@lists.gbif.org https://lists.gbif.org/mailman/listinfo/api-users
participants (2)
-
Akshat Pant
-
Matthew Blissett