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));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eka.care/dr/v1/doctor/service/{doctor_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/dr/v1/doctor/service/{doctor_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eka.care/dr/v1/doctor/service/{doctor_id}")
.header("auth", "<auth>")
.asString();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));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eka.care/dr/v1/doctor/service/{doctor_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/dr/v1/doctor/service/{doctor_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eka.care/dr/v1/doctor/service/{doctor_id}")
.header("auth", "<auth>")
.asString();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?

