Digitail API
Public Clinics
Retrieve Clinic by slug
1min
code examples curl location globoff 'https //developer digitail io/api/v1/public/clinics/{slug}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //developer digitail io/api/v1/public/clinics/{slug}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));import requests import json url = "https //developer digitail io/api/v1/public/clinics/{slug}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) \<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //developer digitail io/api/v1/public/clinics/{slug}', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'get', curlopt httpheader => array( 'accept application/json', 'content type application/json' ), )); $response = curl exec($curl); curl close($curl); echo $response; responses // successful operation { "data" { "id" 1, "name" "animal hospital of all pets", "address" "yigal alon st 126, tel aviv yafo, 6744332, israel", "phone" "555 555 5555", "email" "clinic\@example com", "city" "", "street" "yigal alon street", "street number" 126, "region" "tel aviv district", "timezone" "asia/jerusalem", "zip" 6744332, "country" { "id" 6, "name" "united states", "iso code" "us", "code" "usa", "language" { "id" 6, "name" "english (us)", "short name" "en us", "code" "en us" } }, "services" \[ { "id" 208, "category id" 208, "label" "general checkup", "translation slug" "services checkups general checkup", "service details" { "id" 0, "clinic id" 0, "service id" 0, "duration" 0, "visible" 0, "color" "#467626", "description" "", "order" 0, "printable files" \[ { "id" 0, "title" "" } ], "service packages" \[ { "id" 0, "name" "", "description" "", "unit price" "", "price" "", "price includes tax" false, "tax" "" } ] }, "task templates" \[ { "id" 0, "name" "" } ] } ], "services categories" \[ "" ], "public notice" "", "logo" "" } }// the request was invalid or contained data that was not allowed { "message" "requested filter(s) `filter1` are not allowed allowed filter(s) are date, query, " }// the user has sent too many requests in a given amount of time ("rate limiting") max 200 requests per minute