<div dir="ltr"><div>Hi Don,</div><div><br></div><div>For one-at-a-time lookup, the total lifetime circulation count for an item, given the item's internal item ID, can be retrieved via the
open-ils.circ.circulation.count API method.<br></div><div><br></div><div>As a concrete example, if the item of interest has an internal ID of 123456, the following request</div><div><br></div><div><a href="https://EVERGREEN_SERVERS//osrf-gateway-v1?service=open-ils.circ&method=open-ils.circ.circulation.count¶m=123456">https://EVERGREEN_SERVERS//osrf-gateway-v1?service=open-ils.circ&method=open-ils.circ.circulation.count¶m=123456</a></div><div><br></div><div>will return a response of something like this:</div><div><br></div><div>{"payload":[{"total":{"when":"total",<span style="color:rgb(255,0,0)">"count":"41"</span>}}],"status":200}</div><div><br></div><div>The count includes renewals.<br></div><div><br></div><div>If the application has the item barcode but not the item's internal ID, that internal ID can be retrieved via this API call:<br><br><a href="https://EVERGREEN_SERVERS/osrf-gateway-v1?service=open-ils.pcrud&method=open-ils.pcrud.id_list.acp¶m=%22ANONYMOUS%22¶m={%22barcode%22:%22">https://EVERGREEN_SERVERS/osrf-gateway-v1?service=open-ils.pcrud&method=open-ils.pcrud.id_list.acp¶m=%22ANONYMOUS%22¶m={%22barcode%22:%22</a><span style="color:rgb(255,0,0)">THE_BARCODE_VALUE</span>%22}</div><div><br></div><div>This will return something like this:</div><div><br></div><div>{"payload":[<span style="color:rgb(255,0,0)">13492008</span>],"status":200}</div><div><br></div><div>Regards,</div><div><br></div><div>Galen<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 15, 2022 at 10:14 AM Donald Butterworth via Evergreen-catalogers <<a href="mailto:evergreen-catalogers@list.evergreen-ils.org">evergreen-catalogers@list.evergreen-ils.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi All,</div><div><br></div><div>I have a technical question from a programmer who is trying to find a way to pull checkout data for us. The question is above my head, so I will pass back to him all above my head responses. <br></div><div><br></div><div>"Is the total number of checkouts, for a copy/item, available through any of the APIs such as opensearch, unapi, etc? If so, an example would be appreciated."</div><div><br></div><div>Many thanks!</div><div><br></div><div>Don <br> </div><div><br>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Don Butterworth<br>Director of Strategic Collections Services /<br>Faculty Associate<br>B.L. Fisher Library<br>Asbury Theological Seminary<br><a href="mailto:don.butterworth@asburyseminary.edu" target="_blank">don.butterworth@asburyseminary.edu</a><br>(859) 858-2227<br></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Evergreen-catalogers mailing list<br>
<a href="mailto:Evergreen-catalogers@list.evergreen-ils.org" target="_blank">Evergreen-catalogers@list.evergreen-ils.org</a><br>
<a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-catalogers" rel="noreferrer" target="_blank">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-catalogers</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Galen Charlton<br>Implementation and IT Manager<br>Equinox Open Library Initiative<br><a href="mailto:gmc@equinoxOLI.org" target="_blank">gmc@equinoxOLI.org</a><br><a href="https://www.equinoxOLI.org" target="_blank">https://www.equinoxOLI.org</a> <br>phone: 877-OPEN-ILS (673-6457)<br>direct: 770-709-5581<br><a href="http://evergreen-ils.org" target="_blank"></a></div></div>