# Searching using the API

**URL:** <https://forum.loinc.org/t/searching-using-the-api/1130>\
**Category:** loinc-fhir-ts\
**Created:** [October 29, 2021, 1:02pm UTC](https://forum.loinc.org/t/searching-using-the-api/1130 "2021-10-29T13:02:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![quinnmccourtrev](https://forum.loinc.org/letter_avatar_proxy/v4/letter/q/a587f6/32.png) [@quinnmccourtrev](https://forum.loinc.org/u/quinnmccourtrev)\
**Post date:** [October 29, 2021, 1:02pm UTC](https://forum.loinc.org/t/searching-using-the-api/1130/1 "2021-10-29T13:02:12Z")

</div>

I have a use case where we would want to provide a user suggestions for LOINC codes derived from a non-standard LOINC. I would like to use the API to return all LOINC codes that include words from the “long common name” field of a LOINC, but cannot figure out how to write the query, or if this is even currently possible with the API. Some guidance here would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![quinnmccourtrev](https://forum.loinc.org/letter_avatar_proxy/v4/letter/q/a587f6/32.png) [@quinnmccourtrev](https://forum.loinc.org/u/quinnmccourtrev)\
**Post date:** [October 29, 2021, 1:04pm UTC](https://forum.loinc.org/t/searching-using-the-api/1130/2 "2021-10-29T13:04:15Z")

</div>

Forgot to provide an example, and can’t seem to edit my op:

I would want to look up by the word “blood” and have returned a list of LOINCs that have the word blood in them.

---

<div class="post-metadata">

**Author:** ![aerts](https://forum.loinc.org/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@aerts](https://forum.loinc.org/u/aerts)\
**Post date:** [October 29, 2021, 1:29pm UTC](https://forum.loinc.org/t/searching-using-the-api/1130/3 "2021-10-29T13:29:36Z")

</div>

I have developed something like that already some time ago. You can find the API description at:  
[http://xml4pharmaserver.com/WebServices/LOINC\_webservices.html#SearchLOINC](http://xml4pharmaserver.com/WebServices/LOINC_webservices.html#SearchLOINC)

---

<div class="post-metadata">

**Author:** ![system](https://forum.loinc.org/uploads/default/original/1X/dbab97ce9b2987d788a376e254fcaae249f3b672.png) [@system](https://forum.loinc.org/u/system)\
**Post date:** [June 23, 2023, 3:36pm UTC](https://forum.loinc.org/t/searching-using-the-api/1130/4 "2023-06-23T15:36:49Z")

</div>

Closed on June 23, 2023, 3:36pm UTC


