◐ Shell
clean mode source ↗

GitHub - feardarkness/nih-client: Client for the National Institutes of Health - Office of dietary Supplements API

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

API Client

Client for the National Institutes of Health - Office of dietary Supplements API https://ods.od.nih.gov/api/.

Install

How to use

Just import the library and require any available Vitamin.

const nihClient = require('nih-client');

const options = {
  resourceName: 'Calcium',
  readingLevel: 'Health Professional',
};

nihClient
      .get(options)
      .then(response => {
        // do something with response.data
      })
      .catch(err => {
        done(err);
      });

Available options

  • outputFotmat: XML or HTML
  • resourceName: any resource name
  • readingLevel: Consumer, Health Professional or Datos en español

About

Client for the National Institutes of Health - Office of dietary Supplements API

Resources

Readme

License

MIT license

Code of conduct

Code of conduct

Activity

Stars

1 star

Watchers

1 watching

Forks

1 fork