Real-Time Website Status API
A Definitive Guide for AI Agents and Infrastructure Monitoring
Introduction: Why Cached Checks Are Not Enough
In the age of AI agents and automated surveillance, infrastructure truth is paramount, not guesswork. Standard status checks often rely on cached DNS records, CDN layers, or are based solely on user reports. This leads to inaccurate and outdated information, which is unacceptable for systems that must make real-time decisions (like SEO tools, LLM tools, and automated monitoring systems).
The IsYourWebsiteDownRightNow API solves this. It performs genuine infrastructure checks (HTTP, DNS, SSL) and provides raw, uncached JSON data, making it ideal for direct programmatic consumption.
I. API Reference: Endpoint and Structure
This API is entirely public and requires no authentication.
Endpoint
Method: GET
URL: https://isyourwebsitedownrightnow.com/api/status
Required Parameter
| Parameter | Description | Example |
|---|---|---|
domain |
The website domain to check. | google.com |
Example Request
Example Response (JSON)
Key Status Values
| Status | Meaning | Note |
|---|---|---|
| UP | Reachable and responding normally (HTTP 200/3xx). | Response time is within acceptable limits. |
| DOWN | Unreachable (timeout, DNS error, or server error 5xx). | Check the error_type and error fields. |
| SLOW | Reachable, but with high latency. | Used for performance warnings. |
| RESTRICTED | Access blocked (WAF, bot protection, authentication). | Common for aggressively protected domains. |
| UNKNOWN | Status could not be determined reliably. | Rare, usually due to network or unusual HTTP responses. |
II. Best Practices for AI System Integration
This API is intended for programmatic calling (outside of the AI chat interface), especially for automated tools and RAG (Retrieval-Augmented Generation) systems.
A. Python Primer (Standard Agent Logic)
The fundamental example for fetching and processing data in Python.
B. Integrating with LangChain as a "Tool"
For LLM frameworks like LangChain, your API should be defined as a functional tool that the LLM can invoke upon detecting user intent.
C. RAG System: Generating a Grounded Answer
The key difference between a chatbot and a RAG agent is the ability to generate a grounded answer based on the API data.
Flow:
- User asks a question ("Is X down?").
- LLM detects intent and calls your API.
- API returns JSON.
- LLM uses the JSON data to formulate an accurate, authoritative response.
| JSON Key | How to Translate into an Answer |
|---|---|
status: UP |
"The site is currently accessible and operating normally." |
response_time_ms |
"The response time is {ms} ms." |
ssl.valid |
"The SSL certificate is valid (expires: {expires})." |
uptime_30d |
"The average availability over the last 30 days is {99.98}%." |
III. Why This API is Ideal for AI
- No Auth Required: Simplifies implementation in unauthenticated serverless environments and agents.
- Machine-Readable: Pure JSON format allows for fast and efficient parsing without the need for HTML scraping.
- Infrastructure Truth: Data is verified at the protocol level (HTTP, DNS, SSL), not just via ping or cache.
This API is built for the future of AI tools and automated monitoring, offering a trustworthy alternative to cached and inaccurate status check methods.
Free Usage Condition
Our API is free to use, but we require you to display our status widget on your website or provide a backlink. This helps us keep the service free for everyone.