• 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

This Article Has Been Shared 272 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • Cloud Computing Abbreviations : List of Commonly Used Abbreviations

    Cloud Computing Abbreviations are most commonly used on Internet Blog and News related websites than in Books. Here is a guide on Cloud Computing Abbreviations.

  • Installing WordPress on Rackspace Cloud Sites : Tips with Video

    Installing WordPress on Rackspace Cloud Sites Guide this time reloaded with easy tips to install within 15 minutes and a guided video also included as a part.

  • Virtualization : Essential Before Moving to Cloud Computing

    Virtualization is the most important part before adopting cloud computing solutions as at least for basic IT services deployment of virtualization is important.

  • Cloud Based App RESTful API Testing with CocoaRestClient

    Cloud Based App RESTful API Testing can be done with a free App named CocoaRestClient. It is designed for testing and debugging HTTP Restful services.

  • Cloud Computing in Home Care Scenarios : Opportunities and Risks

    Cloud Computing in Home Care Scenarios is based on real-world scenarios to analyze the opportunities and risks, as well as the practicality of such systems.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (21K Followers)
  • Twitter (5.3k 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

  • Why Not to Use Your Host for Email Marketing March 5, 2021
  • What You Need to Know About the Microservices March 4, 2021
  • Fix Missing/Bad FileProvider for Freshchat (Android error code 354) March 3, 2021
  • Basics of Data Protection on the Internet March 2, 2021
  • What is Standard Software February 28, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Fetch Drugs’ Details with cURL via API," in The Customize Windows, November 2, 2015, March 6, 2021, https://thecustomizewindows.com/2015/11/fetch-drugs-details-with-curl-via-api/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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