Browse our guides and interact with our API reference for more information about MEDSAPI DynaMed. Try MEDSAPI DynaMed and learn about core concepts.





Get Article by ID Code Samples (Deprecated)

This endpoint is deprecated.  Use /v2/content/articles/{id}.

Use the code samples below as examples to create an application in your desired language.  The following code samples use the /v1/articles/{articleId} endpoint which allows you to get an article by ID.  Get started and begin to understand the endpoint by following the examples below in the language of your choice. 


# Get Article by Id:

curl -X GET ""
  -H "accept: application/json"
  -H "authorization: Bearer TOKEN"
  -H "Content-Type: application/json"
// Articles by Id:

// Construct the client
OkHttpClient client = new OkHttpClient();

// Create the URL
HttpUrl url = new HttpUrl.Builder()
    .addQueryParameter("secure", "true")
    .addQueryParameter("imageSize", "small")
    .addQueryParameter("imageSize", "full")


// Build the request
Request request = new Request.Builder()
    .addHeader("Accept", "application/json")
    .addHeader("Authorization", "Bearer TOKEN")
    .addHeader("Content-Type", "application/json")

// Send the request
Response response = client.newCall(request).execute();
// Get Article by Id: 

const host = "";
const path = "/medsapi-dynamed/v1/articles/ARTICLEID?secure=true&imageSize=small&imageSize=full";

// Create the Request
const url = host + path;

const settings = {
    async: true,
    crossDomain: true,
    url: url,
    method: "GET",
    headers: {
        Accept: "application/json",
        Authorization: "Bearer TOKEN",
        Content-Type: "application/json"

// Send the Request
$.ajax(settings).done(function (response) {
# Get Article by Id:

# Form the URL 
urlstr = File.join('https://', '', 'medsapi-dynamed/v1/articles', ARTICLEID)
uri = URI.parse(urlstr)
params = { secure => "true", posterSize => "small"}

# Create the HTTP object
http =, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

# Create the request
request =
request["Accept"] = "application/json"
request["Authorization"] = "Bearer TOKEN"
request["Content-Type"] = "application/json"

# Send the request
response = http.request(request)
# Get Article by Id:

# Form the URL
url = "".join(["/medsapi-dynamed/v1","/articles/", ARTICLEID])

queryParams = {
   'secure': 'true',
   'imageSize': ['small', 'large']

# Create Connection Instance
conn = http.client.HTTPSConnection("")

# Create the Request Headers
headers = {
    "Authorization": "Bearer TOKEN",
    "Accept": "application/json",
    "Cache-Control": "no-cache"

# Send Request  
conn.request("GET", url, queryParams, headers)