halodoc api
Unofficial API and Web Scraping from halodoc.com
Treat me a cup of coffee in here
1. Node.js has installed on your machine
2. NPM has installed on your machine
Use the package manager npm to install dependencies.
npm install
npm start
server will running on port 3000
Get list of articles
GET /articles-trending
Get list of articles
GET /articles/page/1
Get article content
GET /article-content/ini-10-makanan-sumber-vitamin-d-bantu-cegah-osteoporosis/a338dbd3-75c0-4051-a550-e4366a4e26fa
Get similar article
GET /article/similar/a338dbd3-75c0-4051-a550-e4366a4e26fa
Get list of medicine categories
GET /medicine/categories
Get detail category of medicine
GET /medicine/categories/produk-susu/page/1
Get medicine product
GET /medicine/detail/nutrilon-royal-3-madu-susu-pertumbuhan-bubuk-400-gr
Get similar product of medicine product
GET /medicine/similar/nutrilon-royal-3-madu-susu-pertumbuhan-bubuk-400-gr
Get location suggestion Max count is 500
PUT /doctor/specialities/:count/
Get doctor profile
GET /doctor/dr-andry-ganesha-rombe
Get hospital profile
GET /hospital/rsup-dr-sardjito
Get hospital departments
GET /hospital/departments/rsup-dr-sardjito
Get location suggestion
PUT /doctor/search
{
region: "jakarta",
speciality: "" // Value must be from slug of /doctor/specialities request,
page: 1
}
Get location suggestion
PUT /hospital/locations-sugestion
{
search: "jakarta"
}
Get hospital location
PUT /hospital/location
{
district: "" // "Value must be from name of district key from /hospital/locations-sugestion response",
region: "" // "Value must be from name of region key from /hospital/locations-sugestion response",
city: "" // "Value must be from name of city key from /hospital/locations-sugestion response",
search: "jakarta"
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.