Using Python to make an API call to data.cms.gov

import json,urllib.request
response = urllib.request.urlopen("https://data.cms.gov/resource/qsk8-thmv.json?PRVDR_NUM=01D0026356").read()
obj = json.loads(response.decode('utf-8'))
print (obj[0]['fac_name'])

Here is how to get a response from CMS on a specific CLIA record. Here is the actual table you’re querying. CMS is actually pretty awesome to give access to all of this.

Leave a Reply

Your email address will not be published. Required fields are marked *