Search listed pharmacies
curl --request POST \
--url https://api.clinikehr.com/v1/listings/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"item": {
"q": "Paracetamol"
},
"near": {
"lat": 6.5244,
"lng": 3.3792,
"radius_km": 20
},
"limit": 25
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
item: {q: 'Paracetamol'},
near: {lat: 6.5244, lng: 3.3792, radius_km: 20},
limit: 25
})
};
fetch('https://api.clinikehr.com/v1/listings/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.clinikehr.com/v1/listings/search"
payload = {
"item": { "q": "Paracetamol" },
"near": {
"lat": 6.5244,
"lng": 3.3792,
"radius_km": 20
},
"limit": 25
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": [
{
"clinic_id": "45715198-88e4-498c-8271-57e652c60246",
"display_name": "SANDBOX Pharmacy 01",
"item_id": "9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02",
"match": "text",
"band": "in_stock",
"distance_km": 1.2,
"as_of": "2026-09-20T10:00:00.000Z"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}Pharmacy listings
Search listed pharmacies
Permission: listing.availability:read Search by medicine identity across every listed pharmacy this key’s workspace can reach. A clinic-owned key always gets an empty result. For a workspace TEST key this searches the workspace’s own seeded fictional items instead. Fail-closed allow-list — an unlinked or excluded item never appears, code or text search alike. Never an exact quantity; band only. Capped at 50 results.
POST
/
v1
/
listings
/
search
Search listed pharmacies
curl --request POST \
--url https://api.clinikehr.com/v1/listings/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"item": {
"q": "Paracetamol"
},
"near": {
"lat": 6.5244,
"lng": 3.3792,
"radius_km": 20
},
"limit": 25
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
item: {q: 'Paracetamol'},
near: {lat: 6.5244, lng: 3.3792, radius_km: 20},
limit: 25
})
};
fetch('https://api.clinikehr.com/v1/listings/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.clinikehr.com/v1/listings/search"
payload = {
"item": { "q": "Paracetamol" },
"near": {
"lat": 6.5244,
"lng": 3.3792,
"radius_km": 20
},
"limit": 25
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": [
{
"clinic_id": "45715198-88e4-498c-8271-57e652c60246",
"display_name": "SANDBOX Pharmacy 01",
"item_id": "9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02",
"match": "text",
"band": "in_stock",
"distance_km": 1.2,
"as_of": "2026-09-20T10:00:00.000Z"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
OK.
Show child attributes
Show child attributes