You can only get a machine if you have been diagnosed with sleep apnea. Getting a diagnosis will likely require an appointment with a specialist sleep doctor. Sometimes the evaluation happens at a sleep clinic, but it may also be possible to do it at home. Snoring alone won’t be a good enough reason to undergo CPAP therapy. One of the things the study checks is the amount of oxygen in your blood. If the study results suggest you have sleep apnea, your doctor may prescribe a CPAP machine. APAP or BiPAP machines are two other possible options. Depending on the severity of your condition, the doctor may decide to go a simpler route and prescribe a mandibular advancement device instead.