01Introduction
To check if a website is down, test it from outside your own network. Open the service's official status page, then run a check from somewhere else: a website status checker, an API call, or curl from a server. If the site fails for everyone, it's down. If it only fails for you, the problem is your network, your DNS or your browser.
The check also tells you how it's down. A DNS error, a timeout and a 503 are three different problems with three different fixes. This guide shows how to tell which one you have, with real results from checks we ran, and how to monitor a site or API so you hear about the next outage before your users do.
02Step 1: Check the official status page
Most large services publish a status page, usually at status.<company>.com or a support URL. Check it first, and read the component list, not only the headline.
On November 30, 2026, people searched "is Apple Pay down" after payments and transfers started failing. Apple's notice put the start of an Apple Cash disruption at 4:00 PM PT, while Apple Pay itself was listed as operational (The PC Enthusiast, Apple System Status). From the outside it looked like one product was down. The status page showed it was a different component.
Status pages have limits. Companies update them by hand or after a delay, so an outage can be real for several minutes before the page says so. If the page says "operational" and the service is failing, keep checking.
03Step 2: Check from outside your network
If the status page says everything is fine, find out whether the problem is yours. Three quick ways:
- Use a different network. Switch your phone from Wi-Fi to mobile data and load the site. If it works there, your network or DNS is the problem.
- Use a status checker. Downdetector shows reports from other users. A checker that loads the site from its own servers tells you whether the site responds at all.
- Run the request yourself from a server:
curl -sS -o /dev/null -w "%{http_code} %{time_total}s\n" https://apyhub.comIt prints the status code and the total time in seconds. A status code and a time mean the site answered. An error from curl instead of a code means the request never got a response, and the error says why.
04Step 3: Check it with an API
To check if a website is down from code, or from many places at once, use an API that loads the site and reports what happened. We used the Check Website Status endpoint of the Domain Pricing, TLD & Registrar Information API on December 2, 2026:
curl "https://api.eu.apyhub.com/tlderscom/domain-pricing-tld-registrar-information/domain/apyhub.com/status" \
-H "apy-token: $APY_TOKEN"{
"data": {
"domain": "apyhub.com",
"online": true,
"statusCode": 200,
"finalUrl": "https://apyhub.com/",
"redirects": [],
"responseTimeMs": 131,
"server": "cloudflare",
"error": null
}
}We ran the same check on four more domains:
| Domain | online | Status code | Response time | error | What it means |
|---|---|---|---|---|---|
| apyhub.com | true | 200 | 131 ms | null | Up |
| github.com | true | 200 | 22 ms | null | Up |
| google.com | true | 200 | 318 ms | null | Up, after a redirect from https://google.com/ to https://www.google.com/ |
| this-domain-does-not-exist-apyhub-test.com | false | null | null | getaddrinfo ENOTFOUND | DNS can't find the domain |
| httpstat.us | false | null | null | socket hang up | The server closed the connection without answering |
The last two show why the error matters. ENOTFOUND means the name doesn't resolve, so the problem is DNS or a domain that doesn't exist. socket hang up means the domain resolved and a connection opened, but the server dropped it. That points at the server or something in front of it.
Check a website's status with the API →
05What the result tells you
| What you see | What it usually means | Where to look |
|---|---|---|
| ENOTFOUND or "server not found" | DNS can't resolve the name | DNS records, an expired domain, or your own DNS resolver |
| Timeout | The server didn't respond in time | The server is overloaded, a firewall drops traffic, or the network path is broken |
| ECONNREFUSED | Nothing is listening on that port | The app or web server is stopped |
| socket hang up or connection reset | The connection opened and then dropped | The server, a proxy or a load balancer |
| SSL or certificate error | The site is up, but the certificate is invalid or expired | Certificate expiry and the hostname it covers |
| 500 Internal Server Error | The app crashed while handling the request | The app's logs |
| 502 Bad Gateway | A proxy got a bad answer from the server behind it | The upstream server behind the proxy or CDN |
| 503 Service Unavailable | The server is overloaded or in maintenance | Often temporary; a Retry-After header may say when to try again |
| 504 Gateway Timeout | A proxy waited too long for the server behind it | Slow upstream servers or databases |
| 429 Too Many Requests | You're rate-limited, the service is up | Your request rate and the API's limits |
| 401 or 403 | The service is up, your credentials are the problem | Your API key, token or permissions |
The 5xx codes and Retry-After are defined in the HTTP standard (RFC 9110). For 405, see 405 Method Not Allowed.
06How to check if an API is down
APIs fail in the same ways as websites, plus a few of their own. Before you call an API "down":
- Check its status page. Most API providers have one, often with each endpoint or region listed separately.
- Look at the status code, not only the error. A
401,403or429means the API answered. It's up and rejecting your request. A timeout or a5xxmeans it may be down. - Call a simple endpoint. Many APIs have an API health check endpoint (often
/healthor/status), or a cheapGETyou can use to test. If that works and your call doesn't, the problem is your request. - Check the region. Many APIs run in several regions. One can fail while others work, so check the base URL you're calling.
- Save the request. Keep the failing request in Voiden or Postman with its headers and body, so you can rerun it in seconds and show the provider exactly what failed.
07Set up simple uptime monitoring
Checking by hand only works once you know something's wrong. To find out first, check on a schedule and alert when a check fails. This Node.js example checks a list of domains with the same endpoint and flags any that are down or slow:
const domains = ["apyhub.com", "example.com"];
for (const domain of domains) {
const res = await fetch(
`https://api.eu.apyhub.com/tlderscom/domain-pricing-tld-registrar-information/domain/${domain}/status`,
{ headers: { "apy-token": process.env.APY_TOKEN } }
);
const { data } = await res.json();
if (!data.online || data.statusCode >= 500) {
console.error(`${domain} is down: ${data.error ?? data.statusCode}`);
} else if (data.responseTimeMs > 2000) {
console.warn(`${domain} is slow: ${data.responseTimeMs} ms`);
}
}Run it every few minutes from a cron job or a scheduled CI workflow, and send the errors to Slack or email. A few habits make it more useful:
- Alert after two failed checks in a row. One failure is often a network blip.
- Check from more than one region, so a problem near your checker doesn't look like an outage.
- Watch certificate expiry too. An expired certificate takes a site down for every visitor at once. The same API's SSL endpoint returns
daysRemaining, so you can alert weeks ahead. See HTTP vs HTTPS for how certificates work. - Monitor your own dependencies. If your product calls payment, email or AI APIs, check those too. Their outage is your outage.
08Where ApyHub fits
ApyHub runs a catalog of ready-made APIs, including the checks in this guide. The Domain Pricing, TLD & Registrar Information API has endpoints for website status, SSL certificate details, DNS records and WHOIS, plus one endpoint that returns all four in a single call. That's useful when you want to see at once whether a site is down because of DNS, the certificate or the server.
Every endpoint is also available through ApyHub MCP. In Claude, ChatGPT, Cursor or another AI assistant, you can ask "is example.com up, and when does its certificate expire?" and the assistant calls the tested endpoints, which gives consistent results and uses fewer tokens than having it write its own checker.
ApyHub runs dedicated EU, US and India regions, so you can run checks from the region nearest your users.
Connect ApyHub MCP to your AI assistant →
09Conclusion
To check if a website or API is down, start with the official status page and read the component list. Then check from outside your network, with mobile data, a status checker, curl or an API. The error tells you where to look: ENOTFOUND is DNS, a timeout or a reset is the server or the network, and a 5xx is the server or the proxy in front of it. A 401, 403 or 429 means the service is up. Then set up a scheduled check, so you hear about the next outage first.
Start free on ApyHub, no card required →
10FAQ
How do I check if a website is down for everyone or just me?
Load it on a different network, such as mobile data, and run a check from a server or a website status checker. If it fails everywhere, it's down. If it only fails for you, check your network, DNS or browser.
How can I tell if an API is down?
Check the provider's status page, then look at the status code. A timeout or a 5xx suggests an outage. A 401, 403 or 429 means the API is up and rejecting your request.
What does ENOTFOUND mean?
The domain name couldn't be resolved through DNS. The domain may not exist, its DNS records may be wrong, or your DNS resolver may be failing.
What does "socket hang up" mean?
A connection opened, and the server closed it before sending a response. The cause is usually the server or a proxy or load balancer in front of it.
Is a 503 error the same as the site being down?
Effectively, for that moment. A 503 Service Unavailable means the server can't handle the request, often due to overload or maintenance. It's usually temporary.
Why does a status page say everything is working when it isn't?
Status pages are often updated by hand, so there's a delay. Outages can also hit one component or region while the headline still says operational, as with the Apple Cash disruption on November 30, 2026.
What is uptime monitoring?
A scheduled check that loads your site or calls your API every few minutes and alerts you when it fails or slows down.
How can I test the website status API?
Call the endpoint with curl as shown above, or save the request in Voiden or Postman and run it against your own domains. You can also ask an AI assistant connected to ApyHub MCP to check a domain for you.
11About ApyHub
ApyHub runs a catalog of ready-made APIs and is the trusted operational layer between your application and the services it depends on, so your team builds and maintains less of its own code and ships faster. One subscription covers the whole catalog of over 1,500 endpoints and capabilities, and it keeps growing. Every service is verified before it is listed and carries machine-readable certification covering GDPR, SOC 2 and ISO 27001. Every endpoint is MCP-ready by default. ApyHub runs dedicated EU, US and India regions and serves more than 65,000 developer workspaces every month. Start on the free tier with no card, or publish your own API on ApyHub.
12Sources
- The PC Enthusiast, Apple Pay down? Apple confirms Apple Cash outage (November 30, 2026), and Apple System Status
- IETF, RFC 9110: HTTP Semantics: 5xx status codes and the Retry-After header
- ApyHub, Domain Pricing, TLD & Registrar Information API: Check Website Status endpoint tested on five domains, December 2, 2026
