• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Fetch Drugs’ Details with cURL via API

By Abhishek Ghosh November 2, 2015 4:25 am Updated on November 2, 2015

Fetch Drugs’ Details with cURL via API

Advertisement

If you are confused with an odd Brand Name of a Drug, instead of using web search, using our simple cURL can give good amount of information. We Can Use RxNorm API or GoodRx API to Fetch Any Drug Details with cURL on Command Line Interface. It is Helpful to Both Doctors & Patients. We are showing some basic examples.

 

Fetch Drugs’ Details with cURL via API : Service Providers

 

There are not less number of service providers at this moment. All data can be accessed free of cost, some even do not need registration for authentication at all. Here are some URLs to check from the browser :

Vim
1
2
3
4
http://rxnav.nlm.nih.gov/RxNormAPIs.html
http://www.goodrx.com/developer/documentation
https://open.fda.gov/drug/event/reference/
http://pillbox.nlm.nih.gov/developer.html#api

 

Fetch Drugs’ Details with cURL via API : Basic Example with cURL

 

We expect that the reader is using GNU/Linux or OS X. cURL for Windows is also available, but not preferred.

Advertisement

---

If the unknown drug’s name is Augmentin, we can compose the request URI for rxnav.nlm.nih.gov in this pattern :

Vim
1
https://rxnav.nlm.nih.gov/REST/drugs?name=augmentin

A simple cURL will fetch data in XML format :

Vim
1
curl https://rxnav.nlm.nih.gov/REST/drugs?name=augmentin

The result is here in this gist.

Fetch Drugs' Details with cURL via API

As it is impractical to read, use simple method to save it as xml file :

Vim
1
curl https://rxnav.nlm.nih.gov/REST/drugs?name=augmentin > ~/Desktop/augmentin.xml

~/Desktop/augmentin.xml is our preferred location and file name. It could be /path/to/foo.xml. If we drag and drop that file on Opera or Chrome browser, we can read it in somewhat in normal way. We are actually opening an url like this :

Vim
1
file://localhost/Users/abhishekghosh/Desktop/augmentin.xml

Pillbox and DailyMed has extensive support for the developers but need free registration :

Vim
1
http://pillbox.nlm.nih.gov/developer.html#data

The registration is difficult for eye blinding captcha.

Tagged With drugsdetails com , pharma api
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Fetch Drugs’ Details with cURL via API

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • OpenFDA API to Fetch Drug Details as JSON : Basics

    Sending cURL to OpenFDA Returns Drug Interaction to Side Effects. Here is Basics on OpenFDA API to Fetch Drug Details as JSON Response.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • How Affiliate Marketing WorksNovember 28, 2023
  • Phases of Product DevelopmentNovember 27, 2023
  • Sub-Areas of Direct MarketingNovember 27, 2023
  • Strengths and Weakness of Direct MarketingNovember 26, 2023
  • Bus Terminal BasicsNovember 26, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy