<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Akshat,</p>
<p>You caught us between Christmas and New Year, when many people
were on holiday.</p>
<p>A synchronous query would be like this:
<a class="moz-txt-link-freetext" href="https://api.gbif.org/v1/occurrence/search?taxon_key=2280097&has_coordinate=true">https://api.gbif.org/v1/occurrence/search?taxon_key=2280097&has_coordinate=true</a>
so I'll assume you mean the asynchronous download service.<br>
</p>
This curl request has worked for me, producing this download on the
test system:
<a class="moz-txt-link-freetext" href="https://www.gbif-uat.org/occurrence/download/0000143-171108114045140">https://www.gbif-uat.org/occurrence/download/0000143-171108114045140</a>
or
<a class="moz-txt-link-freetext" href="https://api.gbif-uat.org/v1/occurrence/download/0000143-171108114045140">https://api.gbif-uat.org/v1/occurrence/download/0000143-171108114045140</a><br>
<p>query.json:<br>
</p>
<p>{<br>
"creator": "MattBlissett",<br>
"notification_address": [ <a class="moz-txt-link-rfc2396E" href="mailto:mblissett@gbif.org">"mblissett@gbif.org"</a> ],<br>
"predicate": {<br>
"type": "and",<br>
"predicates": [<br>
{<br>
"type": "equals",<br>
"key": "TAXON_KEY",<br>
"value": "2280097"<br>
},<br>
{<br>
"type": "equals",<br>
"key": "HAS_COORDINATE",<br>
"value": "true"<br>
}<br>
]<br>
},<br>
"format": "DWCA"<br>
}</p>
<p>curl -i --user MattBlissett:XXXXX -H "Content-Type:
application/json" -X POST -d @query.json
'<a class="moz-txt-link-freetext" href="https://api.gbif-uat.org/v1/occurrence/download/request">https://api.gbif-uat.org/v1/occurrence/download/request</a>'<br>
</p>
<p>If you still have trouble, please send the Curl request you used.</p>
<p>Thanks,</p>
<p>Matthew Blissett<br>
</p>
<br>
<div class="moz-cite-prefix">On 26/12/17 01:51, Akshat Pant wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOcT4c9-gbTxj47Poe4jNoHE9k10KGpAgE=fmE8_By-EF6_VrA@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="auto">
<div style="font-family:sans-serif;font-size:12.8px" dir="auto">
<div style="margin:16px 0px">
<div>
<div dir="ltr">Hi all,
<div>I'm trying to retrieve the latitude and longitude
for some specific organisms.</div>
<div>I'm trying to use the synchronous download service.</div>
<div>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.</div>
<div>I hope that someone can help.</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Akshat</div>
</div>
</div>
</div>
</div>
<div style="font-family:sans-serif;font-size:12.8px" dir="auto"><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
API-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:API-users@lists.gbif.org">API-users@lists.gbif.org</a>
<a class="moz-txt-link-freetext" href="https://lists.gbif.org/mailman/listinfo/api-users">https://lists.gbif.org/mailman/listinfo/api-users</a>
</pre>
</blockquote>
<br>
</body>
</html>