Skip to content

bakunya/halodoc-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unofficial API and Web Scraping from halodoc.com

Support creator & developer

Treat me a cup of coffee in here

Terms of Service

This software is only used for educational.

Any responsibility beyond the responsibility of the developer.

Pre-request

1. Node.js has installed on your machine

2. NPM has installed on your machine

Installation

Use the package manager npm to install dependencies.

npm install

Usage

npm start

server will running on port 3000

Routing

GET /articles-trending

Get list of articles

GET /articles-trending

GET /articles/page/:count

Get list of articles

GET /articles/page/1

GET /article-content/:slug/:external_id

Get article content

GET /article-content/ini-10-makanan-sumber-vitamin-d-bantu-cegah-osteoporosis/a338dbd3-75c0-4051-a550-e4366a4e26fa

GET /article/similar/:external_id

Get similar article

GET /article/similar/a338dbd3-75c0-4051-a550-e4366a4e26fa

GET /medicine/categories

Get list of medicine categories

GET /medicine/categories

GET /medicine/categories/:slug/page/:count

Get detail category of medicine

GET /medicine/categories/produk-susu/page/1

GET /medicine/detail/:slug

Get medicine product

GET /medicine/detail/nutrilon-royal-3-madu-susu-pertumbuhan-bubuk-400-gr

GET /medicine/similar/:slug

Get similar product of medicine product

GET /medicine/similar/nutrilon-royal-3-madu-susu-pertumbuhan-bubuk-400-gr

GET /doctor/specialities

Get location suggestion Max count is 500

PUT /doctor/specialities/:count/

GET /doctor/:slug

Get doctor profile

GET /doctor/dr-andry-ganesha-rombe

GET /hospital/:slug

Get hospital profile

GET /hospital/rsup-dr-sardjito

GET /hospital/departments/:slug

Get hospital departments

GET /hospital/departments/rsup-dr-sardjito

PUT /doctor/search

Get location suggestion

PUT /doctor/search
{
  region: "jakarta",
  speciality: "" // Value must be from slug of /doctor/specialities request,
  page: 1
}

PUT /hospital/locations-sugestion

Get location suggestion

PUT /hospital/locations-sugestion
{
  search: "jakarta"
}

PUT /hospital/location

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"
}

Source

halodoc.com

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

unofficial api and web scraping from halodoc.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published