🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 85 (from laksa178)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

đź“„
INDEXABLE
âś…
CRAWLED
4 days ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0.2 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html
Last Crawled2026-04-18 15:51:07 (4 days ago)
First Indexed2018-05-05 10:59:55 (7 years ago)
HTTP Status Code200
Content
Meta TitleCauses of Insomnia | Stanford Health Care
Meta DescriptionOne of the common causes of insomnia is stress related to family or work situations, with differences in how people react to stress likely playing a role.
Meta Canonicalnull
Boilerpipe Text
What causes insomnia? The everyday stresses of life—your job, your family or relationships, money problems, jet lag—can keep you from sleeping well. It's also common to have trouble sleeping when you have a fever or an injury. These stresses are often temporary. Your habits and activities before bedtime, such as drinking coffee, watching TV, or using the computer, can also affect how well you sleep. And some medical conditions, medicines, and other substances can cause sleep problems that last a long time. These include: Sleep apnea. Sleep apnea is breathing that stops during sleep. The problem can be mild or severe, based on how often your lungs don't get enough air. People with sleep apnea often have sleep problems. They also have a higher risk of high blood pressure. Restless legs syndrome. This is a problem that produces strong discomfort, aching, or twitching deep in the toes, ankles, knees, or hips—often during sleep. The symptoms can wake you up. Heart failure. Many people with heart failure have trouble sleeping. This may be because of trouble breathing or because of depression or anxiety. Many people with heart failure also have sleep apnea. Ongoing (chronic) pain. Pain can make it hard to sleep, and chronic pain can lead to sleep deprivation, or sleep debt. Chronic pain has many causes, such as back problems or arthritis. Mental health problems. Anxiety, depression, and mania can cause sleep problems. Medicines and other substances. Many medicines can cause sleep problems. Examples include antidepressants, cold medicines, steroids, and nonprescription diet aids. Alcohol, caffeine, nicotine, and illegal drugs can also interfere with your sleep. If you have an illness that's keeping you from sleeping, it can sometimes become a bad cycle. The illness keeps you from sleeping well. And without enough sleep, your body can't fight the illness as well.
Markdown
[Skip to main content](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html#main-container) **Notice:** Users may be experiencing issues with displaying some pages on stanfordhealthcare.org. We are working closely with our technical teams to resolve the issue as quickly as possible. Thank you for your patience. [Menu](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) [![Stanford Health Care](https://stanfordhealthcare.org/etc/clientlibs/shc/main/img/stanfordHealthcareLogo.svg)](https://stanfordhealthcare.org/) [Search](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) [Menu](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) [![Stanford Health Care](https://stanfordhealthcare.org/etc/clientlibs/shc/main/img/stanfordHealthcareLogo.svg)](https://stanfordhealthcare.org/) [Search](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) [Home](https://stanfordhealthcare.org/) [Close](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) [Doctors](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_phy&q1=true&page=1) [Clinics & Locations](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_clinic&q1=true&page=1) [Conditions & Treatments](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_type&q1=%2520&page=1) [Clinical Trials](https://stanfordhealthcare.org/application/ct.html) [MyHealth Login](https://myhealth.stanfordhealthcare.org/) *** [Patients & Visitors](https://stanfordhealthcare.org/for-patients-visitors.html) [Billing](https://stanfordhealthcare.org/for-patients-visitors/billing.html) [Insurance](https://stanfordhealthcare.org/for-patients-visitors/health-insurance-plans.html) [Financial Assistance](https://stanfordhealthcare.org/for-patients-visitors/financial-assistance.html) [Medical Records](https://stanfordhealthcare.org/for-patients-visitors/medical-records.html) [Contact Us](https://stanfordhealthcare.org/about-us/contact.html) [Video Visits](https://stanfordhealthcare.org/for-patients-visitors/video-visits/scheduling-a-video-visit.html) [Get a Second Opinion](https://stanfordhealthcare.org/second-opinion/overview.html) [COVID-19 Resource Center](https://stanfordhealthcare.org/discover/covid-19-resource-center.html) [Healthcare Professionals](https://stanfordhealthcare.org/health-care-professionals.html) [Referring Physicians](https://stanfordhealthcare.org/health-care-professionals/physician-referral-center.html) [Nursing](https://stanfordhealthcare.org/health-care-professionals/nursing.html) [Allied Healthcare](https://stanfordhealthcare.org/health-care-professionals/allied-healthcare.html) [About Us](https://stanfordhealthcare.org/about-us.html) [Quality & Safety](https://stanfordhealthcarequality.com/) [Facilities Services & Planning](https://stanfordhealthcare.org/about-us/facilities-services-and-planning.html) [Sustainability](https://stanfordhealthcare.org/sustainability-program-office/sustainability-program-office.html) [Careers](https://careers.stanfordhealthcare.org/) [Newsroom](https://stanfordhealthcare.org/newsroom.html) [Make a Donation](http://medicalgiving.stanford.edu/) [Stanford Health Care – Now](https://stanfordhealthcare.org/stanford-health-care-now.html) - [Doctors & Providers](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_phy&q1=true&page=1) - [Clinics & Locations](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_clinic&q1=true&page=1) - [Conditions & Treatments](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_type&q1=condition&page=1) - [Patients & Visitors](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) - [MyHealth](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) - [Billing](https://stanfordhealthcare.org/for-patients-visitors/billing.html) - [Insurance](https://stanfordhealthcare.org/for-patients-visitors/health-insurance-plans.html) - [Medical Records](https://stanfordhealthcare.org/for-patients-visitors/medical-records.html) - [Support Groups](https://stanfordhealthcare.org/for-patients-visitors/support-groups.html) - [Help Paying Your Bill](https://stanfordhealthcare.org/for-patients-visitors/financial-assistance.html) - [COVID-19 Resource Center](https://stanfordhealthcare.org/discover/covid-19-resource-center.html) - [Community Health](https://stanfordhealthcare.org/about-us/community-partnerships.html) - [Locations and Parking](https://stanfordhealthcare.org/for-patients-visitors/locations-and-parking.html) - [Visitor Policy](https://stanfordhealthcare.org/discover/covid-19-resource-center/patient-care/visitor-policy.html) - [Hospital Check-in](https://stanfordhealthcare.org/for-patients-visitors/hospital-check-in.html) - [Video Visits](https://stanfordhealthcare.org/for-patients-visitors/video-visits/scheduling-a-video-visit.html) - [International Patients](https://stanfordhealthcare.org/for-patients-visitors/international-services.html) - [Contact Us](https://stanfordhealthcare.org/about-us/contact.html) [View All Information for Patients & Visitors](https://stanfordhealthcare.org/for-patients-visitors.html) We are available to assist you 24/7. 650-498-3333 [GuestServices@stanfordhealthcare.org](mailto:GuestServices@stanfordhealthcare.org) [View the changes to our visitor policy](https://stanfordhealthcare.org/stanford-health-care-now/2020/novel-coronavirus/updated-visitor-policy.html) [View information for Guest Services](https://stanfordhealthcare.org/for-patients-visitors/guest-services.html) ## New to MyHealth? **Manage Your Care From Anywhere.** Access your health information from any device with MyHealth. You can message your clinic, view lab results, schedule an appointment, and pay your bill. #### ALREADY HAVE AN ACCESS CODE? [Activate Account](https://myhealth.stanfordhealthcare.org/#/activation/lookup=true) #### DON'T HAVE AN ACCESS CODE? [Create a New Account](https://myhealth.stanfordhealthcare.org/#/activate-create) *** #### NEED MORE DETAILS? [Learn More about MyHealth](https://stanfordhealthcare.org/for-patients-visitors/myhealth.html) [Learn More about Video Visits](https://stanfordhealthcare.org/for-patients-visitors/video-visits/connecting-to-a-video-visit.html) #### MyHealth for Mobile [Get the iPhone MyHealth app](https://itunes.apple.com/us/app/stanford-health-care-myhealth/id922978966?mt=8)[Get the Android MyHealth app](https://play.google.com/store/apps/details?id=org.stanfordhealthcare.myhealth) #### WELCOME BACK [Forgot Username](https://myhealth.stanfordhealthcare.org/?linksource=webSHC#/forgot-username) or [Password?](https://myhealth.stanfordhealthcare.org/?linksource=webSHC#/forgot-password) [Need Help?](https://myhealth.stanfordhealthcare.org/ContactHelpDesk) # Causes of Insomnia - [About](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html#about) - [About](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html#about) [Overview](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia.html) [Causes](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) - [Biological factors](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/biological-factors.html) - [Environmental factors](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/environmental-factors.html) - [Who is at risk?](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/who-is-at-risk.html) [Types](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/types.html) [Diagnosis](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis.html) - [Polysomnogram](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis/polysomnogram.html) - [Actigraphy](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis/actigraphy.html) [Treatments](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments.html) - [Cognitive behavioral therapy for insomnia (CBTI)](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments/coginitive-behavioral-therapy-insomnia.html) - [Treating insomnia with medications](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments/treating-insomnia-with-medications.html) [Overview](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia.html) [Causes](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) - [Biological factors](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/biological-factors.html) - [Environmental factors](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/environmental-factors.html) - [Who is at risk?](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes/who-is-at-risk.html) [Types](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/types.html) [Diagnosis](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis.html) - [Polysomnogram](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis/polysomnogram.html) - [Actigraphy](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/diagnosis/actigraphy.html) [Treatments](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments.html) - [Cognitive behavioral therapy for insomnia (CBTI)](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments/coginitive-behavioral-therapy-insomnia.html) - [Treating insomnia with medications](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/treatments/treating-insomnia-with-medications.html) ### What causes insomnia? The everyday stresses of life—your job, your family or relationships, money problems, jet lag—can keep you from sleeping well. It's also common to have trouble sleeping when you have a fever or an injury. These stresses are often temporary. Your habits and activities before bedtime, such as drinking coffee, watching TV, or using the computer, can also affect how well you sleep. And some medical conditions, medicines, and other substances can cause sleep problems that last a long time. These include: Sleep apnea. Sleep apnea is breathing that stops during sleep. The problem can be mild or severe, based on how often your lungs don't get enough air. People with sleep apnea often have sleep problems. They also have a higher risk of high blood pressure. Restless legs syndrome. This is a problem that produces strong discomfort, aching, or twitching deep in the toes, ankles, knees, or hips—often during sleep. The symptoms can wake you up. Heart failure. Many people with heart failure have trouble sleeping. This may be because of trouble breathing or because of depression or anxiety. Many people with heart failure also have sleep apnea. Ongoing (chronic) pain. Pain can make it hard to sleep, and chronic pain can lead to sleep deprivation, or sleep debt. Chronic pain has many causes, such as back problems or arthritis. Mental health problems. Anxiety, depression, and mania can cause sleep problems. Medicines and other substances. Many medicines can cause sleep problems. Examples include antidepressants, cold medicines, steroids, and nonprescription diet aids. Alcohol, caffeine, nicotine, and illegal drugs can also interfere with your sleep. If you have an illness that's keeping you from sleeping, it can sometimes become a bad cycle. The illness keeps you from sleeping well. And without enough sleep, your body can't fight the illness as well. [Previous Section](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) [Next Section](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) ## Condition Spotlight [![]()](https://stanfordhealthcare.org/stanford-health-care-now/health-library-videos/manber-sleep.html) [Dr. Rachel Manber Discusses Sleeping Well as We Age Watch Video](https://stanfordhealthcare.org/stanford-health-care-now/health-library-videos/manber-sleep.html) ## Clinical Trials Clinical trials are research studies that evaluate a new medical approach, device, drug, or other treatment. As a Stanford Health Care patient, you may have access to the latest, advanced clinical trials. Open trials refer to studies currently accepting participants. Closed trials are not currently enrolling, but may open in the future. [Closed Trials](https://stanfordhealthcare.org/medical-conditions/sleep/insomnia/causes.html) [Medication and behavioral/psychological treatments for insomnia Insomnia](https://stanfordhealthcare.org/trials/manual/medication-behavioral-psychological-treatments-insomnia.html) [TRIAD - Treatment of Insomnia and Depression Insomnia](https://stanfordhealthcare.org/trials/t/NCT00767624.html) - [Find a Doctor or Provider](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_phy&q1=true&page=1) - [Find Conditions & Treatments](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_type&q1=%2520&page=1) - [Find a Stanford clinic](https://stanfordhealthcare.org/directory/guided-search.html#x1=sp_spec_care_clinic&q1=true&page=1) - [For Patients & Visitors](https://stanfordhealthcare.org/for-patients-visitors.html) - [Billing](https://stanfordhealthcare.org/for-patients-visitors/billing.html) - [Help Paying Your Bill](https://stanfordhealthcare.org/for-patients-visitors/financial-assistance.html) - [Protections Against Surprise Medical Bills](https://stanfordhealthcare.org/for-patients-visitors/no-surprises-act.html) - [Price Transparency](https://stanfordhealthcare.org/for-patients-visitors/price-transparency.html) - [Insurance](https://stanfordhealthcare.org/for-patients-visitors/health-insurance-plans.html) - [Hospital Check-in](https://stanfordhealthcare.org/for-patients-visitors/hospital-check-in.html) - [Contact Us](https://stanfordhealthcare.org/about-us/contact.html) - [Video Visits](https://stanfordhealthcare.org/for-patients-visitors/video-visits/scheduling-a-video-visit.html) - [Send a Greeting Card](https://stanfordhealthcare.org/Ecard/ecard-intro-page.html) - [Get a Second Opinion](https://stanfordhealthcare.org/second-opinion/overview.html) - [COVID-19 Resource Center](https://stanfordhealthcare.org/discover/covid-19-resource-center.html) - [Behavioral Standards](https://stanfordhealthcare.org/for-patients-visitors/behavioral-standards.html) - [Patient Privacy Policy](https://stanfordhealthcare.org/for-patients-visitors/guest-services/patient-privacy.html) - [Make a Gift](http://medicalgiving.stanford.edu/) - [About Us](https://stanfordhealthcare.org/about-us.html) - [Quality & Safety](https://stanfordhealthcarequality.com/) - [Annual Report](https://stanfordhealthcare.org/about-us/annual-report.html) - [300 Pasteur Drive Renewal Program](https://stanfordhealthcare.org/about-us/300-pasteur-renewal-program.html) - [Sustainability](https://stanfordhealthcare.org/sustainability-program-office/sustainability-program-office.html) - [Stanford Health Care – Now](https://stanfordhealthcare.org/stanford-health-care-now.html) - [For Healthcare Professionals](https://stanfordhealthcare.org/health-care-professionals.html) - [Referring Physicians](https://stanfordhealthcare.org/health-care-professionals/physician-referral-center.html) - [Nursing](https://stanfordhealthcare.org/health-care-professionals/nursing.html) - [Allied Healthcare Professionals](https://stanfordhealthcare.org/health-care-professionals/allied-healthcare.html) [First Responders](https://stanfordhealthcare.org/content/shc/en-tools/modals/first-responders.html) - [Newsroom](https://stanfordhealthcare.org/newsroom.html) - [Careers](https://careers.stanfordhealthcare.org/) - [Volunteering](https://stanfordhealthcare.org/for-patients-visitors/volunteering.html) - [Vendors](https://stanfordhealthcare.org/for-vendors/vendors.html) - [Stanford Medicine Partners](https://stanfordmedicinepartners.org/) - [Stanford Health Care Tri-Valley](https://stanfordhealthcare.org/tri-valley) - [Stanford Medicine](http://med.stanford.edu/) - [Stanford Medicine Children's Health](http://www.stanfordchildrens.org/) - [Stanford University](http://www.stanford.edu/) [![Stanford Medicine Health Care](https://stanfordhealthcare.org/etc/clientlibs/shc/main/svg/shc-white-horiz-lg.svg)](https://stanfordhealthcare.org/) [Website Terms of Use](https://stanfordhealthcare.org/about-us/legal-disclaimer.html) [Website Privacy Policy](https://stanfordhealthcare.org/about-us/website-privacy-policy.html) [Code of Conduct](https://stanfordhealthcare.org/about-us/conduct.html) [Notice of Nondiscrimination](https://stanfordhealthcare.org/about-us/notice-of-nondiscrimination.html) © 2026 Stanford Health Care. All Rights Reserved. Close
Readable Markdown
### What causes insomnia? The everyday stresses of life—your job, your family or relationships, money problems, jet lag—can keep you from sleeping well. It's also common to have trouble sleeping when you have a fever or an injury. These stresses are often temporary. Your habits and activities before bedtime, such as drinking coffee, watching TV, or using the computer, can also affect how well you sleep. And some medical conditions, medicines, and other substances can cause sleep problems that last a long time. These include: Sleep apnea. Sleep apnea is breathing that stops during sleep. The problem can be mild or severe, based on how often your lungs don't get enough air. People with sleep apnea often have sleep problems. They also have a higher risk of high blood pressure. Restless legs syndrome. This is a problem that produces strong discomfort, aching, or twitching deep in the toes, ankles, knees, or hips—often during sleep. The symptoms can wake you up. Heart failure. Many people with heart failure have trouble sleeping. This may be because of trouble breathing or because of depression or anxiety. Many people with heart failure also have sleep apnea. Ongoing (chronic) pain. Pain can make it hard to sleep, and chronic pain can lead to sleep deprivation, or sleep debt. Chronic pain has many causes, such as back problems or arthritis. Mental health problems. Anxiety, depression, and mania can cause sleep problems. Medicines and other substances. Many medicines can cause sleep problems. Examples include antidepressants, cold medicines, steroids, and nonprescription diet aids. Alcohol, caffeine, nicotine, and illegal drugs can also interfere with your sleep. If you have an illness that's keeping you from sleeping, it can sometimes become a bad cycle. The illness keeps you from sleeping well. And without enough sleep, your body can't fight the illness as well.
ML Classification
ML Categories
/Health
99.9%
/Health/Mental_Health
78.1%
/Health/Mental_Health/Anxiety_and_Stress
72.1%
Raw JSON
{
    "/Health": 999,
    "/Health/Mental_Health": 781,
    "/Health/Mental_Health/Anxiety_and_Stress": 721
}
ML Page Types
/Article
98.3%
/Article/Definitions
77.2%
Raw JSON
{
    "/Article": 983,
    "/Article/Definitions": 772
}
ML Intent Types
Informational
99.9%
Raw JSON
{
    "Informational": 999
}
Content Metadata
Languageen
Authornull
Publish Timenot set
Original Publish Time2018-05-05 10:59:55 (7 years ago)
RepublishedNo
Word Count (Total)830
Word Count (Content)302
Links
External Links18
Internal Links76
Technical SEO
Meta NofollowNo
Meta NoarchiveNo
JS RenderedNo
Redirect Targetnull
Performance
Download Time (ms)87
TTFB (ms)72
Download Size (bytes)35,966
Shard85 (laksa)
Root Hash2589037388098715685
Unparsed URLorg,stanfordhealthcare!/medical-conditions/sleep/insomnia/causes.html s443