Get Doctor services
curl --request GET \
--url https://api.eka.care/dr/v1/doctor/service/{doctor_id} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/dr/v1/doctor/service/{doctor_id}"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/dr/v1/doctor/service/{doctor_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/dr/v1/doctor/service/{doctor_id}")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/dr/v1/doctor/service/{doctor_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/dr/v1/doctor/service/{doctor_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"data": {
"services": {
"appointment_type": "REGULAR",
"archive": false,
"book_ahead_days": 111,
"created_at": 1752230657,
"currency": "INR",
"duration": 15,
"mode": [
"in-clinic"
],
"pre_pay": false,
"price": 459,
"service_name": "Tele Consulation",
"conf_id": "25e4acd4eb5fbc0b8523d8de315555a9ee7b5700b0b89a07879daff1be1510e6"
}
}
}Doctor and clinic API
Get Doctor services
This API response returns a list of medical services offered by a specific doctor, including details like service name, duration, booking options, and fees. Each service specifies whether it supports pre-pay or post-pay, along with the delivery mode (e.g., in-clinic or teleconsultation). The data helps configure or display available appointment types for patient booking.
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| data | object | Response data object |
| data.services | array | List of services offered |
| data.services[].appointment_type | string | Type of appointment (e.g., REGULAR, FOLLOW_UP) |
| data.services[].archive | boolean | Service active or archived on doc tool |
| data.services[].book_ahead_days | integer | Service bookability from today |
| data.services[].created_at | integer | Epoch time |
| data.services[].currency | string | Currency of Price |
| data.services[].duration | integer | Duration of service booked in minutes |
| data.services[].mode | array | Mode of consultation |
| data.services[].pre_pay | boolean | Payment to be taken at the time of booking an appointment or not |
| data.services[].price | number | Price of Service |
| data.services[].service_name | string | Service Name |
| data.services[].conf_id | string | Configuration ID for the service |
GET
/
dr
/
v1
/
doctor
/
service
/
{doctor_id}
Get Doctor services
curl --request GET \
--url https://api.eka.care/dr/v1/doctor/service/{doctor_id} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/dr/v1/doctor/service/{doctor_id}"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/dr/v1/doctor/service/{doctor_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/dr/v1/doctor/service/{doctor_id}")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/dr/v1/doctor/service/{doctor_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/dr/v1/doctor/service/{doctor_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"data": {
"services": {
"appointment_type": "REGULAR",
"archive": false,
"book_ahead_days": 111,
"created_at": 1752230657,
"currency": "INR",
"duration": 15,
"mode": [
"in-clinic"
],
"pre_pay": false,
"price": 459,
"service_name": "Tele Consulation",
"conf_id": "25e4acd4eb5fbc0b8523d8de315555a9ee7b5700b0b89a07879daff1be1510e6"
}
}
}Was this page helpful?

