This article is related to the PurpleAir API. If you are unfamiliar with it, check out our API Landing Page to get started.
PurpleAir devices use Plantower laser counters to estimate the number of particles that pass through them. They also make estimations regarding the size of these particles, allowing us to find the volume that these particles occupy in any given space. However, the calculation of mass concentration (which is the standard global measurement for particulate matter) requires values for both volume and density. This is where _cf_1, _atm, and _alt are utilized.
CF=1 and ATM
CF=1 and ATM (appearing as _cf_1 and _atm in the PurpleAir API) are mass concentration (i.e. µg/m3) direct outputs of the Plantower laser counters. CF1 and ATM data are shown by default on the PurpleAir Map as follows:
- Indoor* sensors display CF1 data
- Outdoor* sensors display ATM data
*Indoor and outdoor sensors, in this context, are determined by how the sensor is registered. Thus, a PurpleAir Classic, while typically being used outdoors, can be registered as an indoor sensor, and the data from the sensor will be CF1 data on the map.
While this use aligns with the manufacturer’s guidelines for indoor/outdoor data, we have seen the research community use CF1 in both indoor and outdoor contexts to great success.
It should be noted that both the CF1 and ATM algorithms are unknown to us; the manufacturer, Plantower, considers these formulas to be proprietary and hasn’t provided them to us. However, a researcher named Lance Wallace (@Lance) performed a study to recreate the CF1 algorithm. You can learn more about that study here: API Fields Descriptions - #6 by Lance.
ALT cf=3.4
Speaking of Lance Wallace, ALT cf=3.4, or ALT-CF3.4 is an alternate formula that he created. The data generated by this formula has been found, in various situations, to be more accurate than data using the previous two formulas. More information on the ALT cf=3.4 algorithm can be found in this community article.
Additionally, you can use the ALT-CF3.4 formula on the Map by choosing the ALT cf=3.4 option in the Apply conversion field of the configuration menu.
The screenshot shows the Apply conversion dropdown menu.
Retrieving Alt-CF3.4 via the API
Note that the pm2.5_alt fields in the API do not provide Alt-CF3.4 by default. Rather, these fields provide Alt-CF3 data, which is an older version of the formula. Alt-CF3.4 can be retrieved by adding “|3.4” to the end of the field name. Here’s an example:
https://api.purpleair.com/v1/sensors/[sensor_index]?api_key=[api_key]&fields=pm2.5_alt_a|3.4,pm2.5_alt_b|3.4
Here are a couple of papers that reference the new Alt-CF3.4 formula:
Learn More
PurpleAir Map Guide
Making API Calls
SD Card File Headers
What Do PurpleAir Sensors Measure and How Do They Work?

