# Site health

Wordpress bundle add an additional route designed to get site health data

Wordpress will load last page, post and term to check status, content and timing

### Usage

#### /\_site-health?output=1

![](/files/yFgHedjc6iTBGgFPB66w)

#### /\_site-health?output=json

```json
{
  "pages": [
    {
      "label": "Post post",
      "url": "/hello-world",
      "code": 200,
      "response_time": 43,
      "empty": false,
      "body": true,
      "valid": true
    },
    {
      "label": "Post page",
      "url": "/my-page",
      "code": 200,
      "response_time": 36,
      "empty": false,
      "body": true,
      "valid": true
    },
    {
      "label": "Post guide archive",
      "url": "/guide",
      "code": 200,
      "response_time": 34,
      "empty": false,
      "body": true,
      "valid": true
    },
    {
      "label": "Home",
      "url": "/",
      "code": 200,
      "response_time": 38,
      "empty": false,
      "body": true,
      "valid": true
    }
  ],
  "ip": "127.0.0.1",
  "env": "dev",
  "debug": true,
  "has_error": false,
  "title": "Demo",
  "language": "en-US"
}
```

### Check all pages

Add `full=1`  to check all pages

### App token

Add an `APP_TOKEN` in the environment to secure url access, add `token` as url parameter to grant access


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://metabolism.gitbook.io/symfony-wordpress-bundle/guides/site-health.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
