IDigBio API v1 Examples: Difference between revisions

Line 1,092: Line 1,092:
If on the other hand we wanted to search for these specimens via a software program, we could use the iDigBio Elasticsearch interface.
If on the other hand we wanted to search for these specimens via a software program, we could use the iDigBio Elasticsearch interface.


<pre># EXAMPLE GOES HERE</pre>
I happen to know that this specimen was collected in New Jersey, so we search for records of Family Curculionidae in New Jersey that have associated images. Note the special encoding of the query string (space becomes %20, quotation becomes %22) required when using curl vs. a browser (the browser would do this encoding for you).


'''''The following example may not be correct yet...'''''
<pre>$ curl -s 'http://search.idigbio.org/idigbio/records/_search?q=hasImage:true+AND+family:curculionidae+AND+stateprovince:%22new%20jersey%22'</pre>


==== Genus: Acallodes - Search Example ====
==== Genus: Acallodes - Search Example ====
1,554

edits