Diabetes Type 2 Prevention Tips API

This featured Application Programming Interface (API) page serves as a reference for developers who are building tools that interact with the data on Health Data NY. The page provides examples on how to retrieve data from each of the fields within the dataset. A description of each field is also provided. This specific API page is for the Diabetes Type 2 Prevention Tips dataset. The dataset is a compilation of easy tips to prevent type 2 diabetes. They were compiled from several documents produced by the National Diabetes Education Program (NDEP). NDEP is a partnership of the National Institutes of Health, the Centers for Disease Control and Prevention, and more than 200 public and private organizations. B25. This data set is available at: https://health.data.ny.gov/Health/Diabetes-Type-2-Prevention-Tips/bb49-98mq. For more information about the dataset, go to the dataset and look in the "About" section.

Getting Started

All communication with the API is done through HTTPS, and errors are communicated through HTTP response codes. Available response types include JSON, XML, and CSV, which are selectable by the "extension" on API requests or by HTTP Accepts headers.

This documentation also includes inline, runable examples. Click on any link that contains a gear symbol next to it to run that example live against the Diabetes Type 2 Prevention Tips API API.

App Tokens

All requests should include an app token that identifies your application, and each application should have its own unique app token. A limited number of requests can be made without an app token, but they are subject to much lower throttling limits than request that do include one. If you don't have an app token yet, click the button to the right to sign up for one.

Once you have an app token, you can include it with your request either by using the X-App-Token HTTP header, or by passing it via the $app_token parameter on your URL.