apyhub
Cover illustration for How to Check if a Website or API Is Down (or It's Just You)
Engineering · Fundamentals

How to Check if a Website or API Is Down (or It's Just You)

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:
· bash
curl -sS -o /dev/null -w "%{http_code} %{time_total}s\n" https://apyhub.com

It 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:

· bash
curl "https://api.eu.apyhub.com/tlderscom/domain-pricing-tld-registrar-information/domain/apyhub.com/status" \
  -H "apy-token: $APY_TOKEN"
· json
{
  "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:

DomainonlineStatus codeResponse timeerrorWhat it means
apyhub.comtrue200131 msnullUp
github.comtrue20022 msnullUp
google.comtrue200318 msnullUp, after a redirect from https://google.com/ to https://www.google.com/
this-domain-does-not-exist-apyhub-test.comfalsenullnullgetaddrinfo ENOTFOUNDDNS can't find the domain
httpstat.usfalsenullnullsocket hang upThe 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 seeWhat it usually meansWhere to look
ENOTFOUND or "server not found"DNS can't resolve the nameDNS records, an expired domain, or your own DNS resolver
TimeoutThe server didn't respond in timeThe server is overloaded, a firewall drops traffic, or the network path is broken
ECONNREFUSEDNothing is listening on that portThe app or web server is stopped
socket hang up or connection resetThe connection opened and then droppedThe server, a proxy or a load balancer
SSL or certificate errorThe site is up, but the certificate is invalid or expiredCertificate expiry and the hostname it covers
500 Internal Server ErrorThe app crashed while handling the requestThe app's logs
502 Bad GatewayA proxy got a bad answer from the server behind itThe upstream server behind the proxy or CDN
503 Service UnavailableThe server is overloaded or in maintenanceOften temporary; a Retry-After header may say when to try again
504 Gateway TimeoutA proxy waited too long for the server behind itSlow upstream servers or databases
429 Too Many RequestsYou're rate-limited, the service is upYour request rate and the API's limits
401 or 403The service is up, your credentials are the problemYour 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":

  1. Check its status page. Most API providers have one, often with each endpoint or region listed separately.
  2. Look at the status code, not only the error. A 401, 403 or 429 means the API answered. It's up and rejecting your request. A timeout or a 5xx means it may be down.
  3. Call a simple endpoint. Many APIs have an API health check endpoint (often /health or /status), or a cheap GET you can use to test. If that works and your call doesn't, the problem is your request.
  4. Check the region. Many APIs run in several regions. One can fail while others work, so check the base URL you're calling.
  5. 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:

· js
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