arcos

The Washington Post published a significant portion of a database that tracks the path of every opioid pain pill, from manufacturer to pharmacy, in the United States between 2006 and 2012. We have reported a number of stories using this data set, but we believe there are more stories to be told.

We are making this data accessible as an API for everyone to download and use in their reporting or research to promote a deeper understanding of the regional and local effects of the opioid crisis.

This ARCOS package is a wrapper to utilize the ARCOS API.


To install the development version from GitHub, issue the following command in R:

devtools::install_github('wpinvestigative/arcos')

library(arcos)

Tips on how to use the API in R

Guidelines for using this data

About this data

Alternate ways to download summarized data

Download the raw data


Available datasets (Read the reference page for more info):

Function What Type Years available
buyer_addresses() Get DEA designated addresses for each pharmacy Raw
buyer_details() Get monthly summarized pill totals by county Summarized 2006, 2007, 2008, 2009, 2010, 2011, 2012
combined_buyer_annual() Get annual total pills for each buyer (pharmacy, etc) in a county Summarized 2006, 2007, 2008, 2009, 2010, 2011, 2012
combined_buyer_monthly() Get annual total pills for each buyer (pharmacy, etc) in a county Summarized 2006, 2007, 2008, 2009, 2010, 2011, 2012
county_population() Get annual population for counties between 2006 and 2012 Supplemental 2006, 2007, 2008, 2009, 2010, 2011, 2012
county_raw() Download raw prescription data for specified county (by state and county names) Raw
county_raw_fips() Download raw prescription data for specified county (by county FIPS code) Raw
not_pharmacies() Get list of misidentified pharmacies by BUYER_DEA_NOs Supplemental
pharm_cbsa() Get the core-based statistical area GEOID for each pharmacy Supplemental
pharm_counties() Get county GEOID for each pharmacy Supplemental
pharm_latlon() Get latitude and longitude data for each pharmacy Supplemental
pharm_tracts() Get census tract GEOID for each pharmacy Supplemental
pharmacy_raw() Download raw prescription data for specified pharmacy into R Raw
raw_data() Download raw ARCOS data Raw
reporter_addresses() Get DEA designated addresses for each Reporter Raw
state_population() Get annual population for states between 2006 and 2012 Supplemental 2006, 2007, 2008, 2009, 2010, 2011, 2012
summarized_county_annual() Get annual summarized pill totals by county Summarized 2006, 2007, 2008, 2009, 2010, 2011, 2012
summarized_county_monthly() Get monthly summarized pill totals by county Summarized 2006, 2007, 2008, 2009, 2010, 2011, 2012
total_distributors_county() Get total pills for each distributor in a county Summarized
total_distributors_state() Get total pills for each distributor in a state Summarized
total_manufacturers_county() Get total pills for each manufacturer in a county Summarized
total_manufacturers_state() Get total pills for each manufacturer in a state Summarized
total_pharmacies_county() Get total pills for each pharmacy in a county Summarized
total_pharmacies_state() Get total pills for each pharmacy in a state Summarized