skip navigation

Skip Nav

Mobile Resources & Tools

AIDSinfo APIs

Drug API


Description

This is a RESTful API for accessing drug information (English and Spanish) from the AIDSinfo drug database. It is implemented using HTTP and can be thought of as a collection of resources, specified as URIs.

  • The service returns data in either XML or JSON format.
    • Data is returned in XML by default.
    • For data in JSON format, add ?json=true to the end of URI.

All Drugs

To return data for all drugs, use the base URI:

http://aidsinfo.nih.gov/api/drugs

Specific Drug

To return data for one drug, append the drug ID to the end of the URI:

http://aidsinfo.nih.gov/api/drugs/{id}