<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I don't see a specific endpoint for location by barcode, but I think you could hit the generic search endpoint with the following. It's going to show all locations that match that particular string, so not guaranteed that you'll only get one result.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<pre class="highlight shell" style="display:block"><code><span class="s2">/search/repositories?</span></code>filter_term[]={"primary_type"%3A"location"}&q={MY_BARCODE}&sort=score+desc<br></pre>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<pre style="display:block"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">This is across all repos, so you could also limit to a specific repo by</span><code><span class="s2"><br><br>/repositories/{REPO_ID}/search?</span></code>filter_term[]={"primary_type"%3A"location"}&q={MY_BARCODE}&sort=score+desc</pre>
Joshua<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Matthew Adair
 <mladair@umich.edu><br>
<b>Sent:</b> Monday, December 13, 2021 3:27 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> [Archivesspace_Users_Group] ASpace API - Query by Location Barcode?</font>
<div> </div>
</div>
<div>
<div dir="ltr">Maybe I just haven't figured it out yet, but is there a way in the API to return information about a Location by searching by it's barcode?
<div><br>
<div>Thanks,</div>
<div>- Matt<br>
</div>
<div>
<div>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><br>
----<b><br>
Matthew Adair</b><br>
</div>
<div>Lead Archivist for Digital Imaging and Infrastructure</div>
<div><i><font color="#0000ff">[Due to working remotely, email is the best method to reach me.]<br>
</font></i></div>
<div><i><br>
</i></div>
<div dir="ltr"><img width="200" height="15" src="https://docs.google.com/uc?export=download&id=1OAXggdOikJu9Gk1yHxKSXoZJ99A4RAqz&revid=0Bw_nuz0O5gALekV3cHNpMWkrd0dYSWQ1Vyt4Mzc2cU43YmpZPQ"><br>
</div>
Bentley Historical Library<br>
1150 Beal Avenue<br>
Ann Arbor, Michigan 48109-2113<br>
734-647-3537<br>
<a href="https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbentley.umich.edu%2F&data=04%7C01%7Cjoshua.d.shaw%40dartmouth.edu%7C0d909a4cafd749bc1ec008d9be770004%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C637750241320782135%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=HsbWnZDSfbVbZHsQoicCre7kZm0QtUipumpoG026T2s%3D&reserved=0" originalsrc="http://bentley.umich.edu/" shash="XeiVHWuIiI6nd9mwLQxZh3HDK3FHEdnQmqzOnSi369Anc++RQYSxNXn4iEmHNxp+3ha3b53fC8TnbUl8s+N5IbHwWHY+u8FSVeVggEu1cD+ESdVS0Qmo5QY6a9hBgaSzHfBpNQsZGYC7O8Ck0kYrW+paJYfxMny5mdMg1+4v6zQ=" target="_blank">http://bentley.umich.edu<br>
</a>@UmichBentley </div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><font color="#666666"><i>The Bentley Historical Library acknowledges that coerced cessions of land by the Anishnaabeg and Wyandot made the University of Michigan possible, and we seek to reaffirm the ancestral and contemporary ties of these peoples
 to the lands where the University now stands.</i></font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>