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_coordinate=true 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