Search Facility
curl --request GET \
--url https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId}")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"address": "<string>",
"districtLGDCode": "<string>",
"districtName": "<string>",
"facilityId": "<string>",
"facilityName": "<string>",
"facilityStatus": "<string>",
"facilityType": "<string>",
"facilityTypeCode": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"ownership": "<string>",
"ownershipCode": "<string>",
"pincode": "<string>",
"stateLGDCode": "<string>",
"stateName": "<string>",
"subDistrictLGDCode": "<string>",
"subDistrictName": "<string>",
"systemOfMedicine": "<string>",
"systemOfMedicineCode": "<string>",
"villageCityTownLGDCode": "<unknown>",
"villageCityTownName": "<unknown>"
},
"error": "<unknown>",
"success": true
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}HFR
Search HFR
Search Facility
GET
/
abdm
/
nhpr
/
v1
/
hfr
/
search
/
{hfrId}
Search Facility
curl --request GET \
--url https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId}")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/nhpr/v1/hfr/search/{hfrId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"address": "<string>",
"districtLGDCode": "<string>",
"districtName": "<string>",
"facilityId": "<string>",
"facilityName": "<string>",
"facilityStatus": "<string>",
"facilityType": "<string>",
"facilityTypeCode": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"ownership": "<string>",
"ownershipCode": "<string>",
"pincode": "<string>",
"stateLGDCode": "<string>",
"stateName": "<string>",
"subDistrictLGDCode": "<string>",
"subDistrictName": "<string>",
"systemOfMedicine": "<string>",
"systemOfMedicineCode": "<string>",
"villageCityTownLGDCode": "<unknown>",
"villageCityTownName": "<unknown>"
},
"error": "<unknown>",
"success": true
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}Used in
Authorizations
The API requires a Bearer token (JWT) for authentication.
Headers
Eka User ID (OID)
Partner User ID
Partner HIP ID
Path Parameters
Hfr ID
Was this page helpful?

