> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api.docs.modulards.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.docs.modulards.com/_mcp/server.

# Summarize broken link issues

GET https://api.modulards.com/api/public/v1/site-broken-link-issues/stats

Returns the Broken Links Checker counts for one website: the open issues (`total_issues`) and how they split by category, the muted ones (`ignored_issues`), the resolved ones (`resolved_issues`) and a summary of the most recent scan (`last_scan`, null when the website was never scanned). Open and muted counts exclude resolved issues; `resolved_issues` counts every resolved issue whether muted or not.

`filter[site]` is required. Your role must be allowed to read Broken Links Checker issues; without it the request answers 404.

Reference: https://api.docs.modulards.com/modular-ds-public-api/broken-links-checker/issues/summarize-broken-link-issues

## Authentication

- `Authorization` header (bearer token, required) — Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

## Request

### Query parameters

- `filter[site]` (string, optional) — Required. Exact website id.

## Response

### 200

200 - Issue stats

- `by_category` (ApiPublicV1SiteBrokenLinkIssuesStatsGetResponsesContentApplicationJsonSchemaByCategory, optional) — Open issues per category.
- `ignored_issues` (integer, optional) — Muted issues, resolved ones excluded.
- `last_scan` (ApiPublicV1SiteBrokenLinkIssuesStatsGetResponsesContentApplicationJsonSchemaLastScan, optional, nullable) — Summary of the most recent scan; null when the website was never scanned.
- `resolved_issues` (integer, optional) — Resolved issues, muted or not.
- `total_issues` (integer, optional) — Open issues of the website, muted ones included, resolved ones excluded.

## Errors

### 422 Unprocessable Entity Error

422 - filter[site] missing

- `errors` (list of ApiPublicV1SiteBrokenLinkIssuesStatsGetResponsesContentApplicationJsonSchemaErrorsItems, optional)
- `jsonapi` (ApiPublicV1SiteBrokenLinkIssuesStatsGetResponsesContentApplicationJsonSchemaJsonapi, optional)

## Types

### ApiPublicV1SiteBrokenLinkIssuesStatsGetResponsesContentApplicationJsonSchemaByCategory

Open issues per category.

- `broken_link` (integer, optional) — Open broken links.
- `mixed_content` (integer, optional) — Open mixed-content resources.

### ApiPublicV1SiteBrokenLinkIssuesStatsGetResponsesContentApplicationJsonSchemaLastScan

Summary of the most recent scan; null when the website was never scanned.

- `current_batch` (integer, optional) — Batch being processed; 0 until the plugin reports.
- `error_code` (string, optional, nullable) — Failure code; null unless the scan failed.
- `error_message` (string, optional, nullable) — Failure message; null unless the scan failed.
- `finished_at` (string, optional, nullable) — When the scan ended; null while it runs.
- `id` (integer, optional) — Scan id.
- `links_enumerated` (integer, optional) — Links found by discovery.
- `links_planned` (integer, optional) — Links planned for checking, updated while the scan runs.
- `method` (enum, optional) — How the scan started: `manual`, `automatic` for a scheduled one, or `force_first` for the first automatic scan of a website.
  - Allowed values: `manual`, `automatic`, `force_first`
- `pages_enumerated` (integer, optional) — Pages found by discovery.
- `pages_planned` (integer, optional) — Pages planned for checking, updated while the scan runs.
- `parts_done` (integer, optional) — Crawl parts finished.
- `parts_empty` (integer, optional) — Crawl parts that found nothing to check.
- `parts_failed` (integer, optional) — Crawl parts that failed.
- `parts_total` (integer, optional) — Crawl parts planned.
- `started_at` (string, optional) — When the scan was created (ISO 8601).
- `status` (enum, optional) — pending, done, failed or failed_partial.
  - Allowed values: `pending`, `done`, `failed`, `failed_partial`
- `total_batches` (integer, optional) — Batches the scan is split in.
- `type` (enum, optional) — full or page.
  - Allowed values: `full`, `page`

### ApiPublicV1SiteBrokenLinkIssuesStatsGetResponsesContentApplicationJsonSchemaErrorsItems

- `detail` (string, optional)
- `source` (ApiPublicV1SiteBrokenLinkIssuesStatsGetResponsesContentApplicationJsonSchemaErrorsItemsSource, optional)
- `status` (string, optional)
- `title` (string, optional)

### ApiPublicV1SiteBrokenLinkIssuesStatsGetResponsesContentApplicationJsonSchemaJsonapi

- `version` (string, optional)

### ApiPublicV1SiteBrokenLinkIssuesStatsGetResponsesContentApplicationJsonSchemaErrorsItemsSource

- `parameter` (string, optional)

## Examples

**Response**

```json
{
  "by_category": {
    "broken_link": 10,
    "mixed_content": 2
  },
  "ignored_issues": 3,
  "last_scan": {
    "current_batch": 5,
    "error_code": null,
    "error_message": null,
    "finished_at": "2026-09-16T09:14:00.000000Z",
    "id": 5001,
    "links_enumerated": 1830,
    "links_planned": 0,
    "method": "manual",
    "pages_enumerated": 240,
    "pages_planned": 0,
    "parts_done": 4,
    "parts_empty": 0,
    "parts_failed": 0,
    "parts_total": 4,
    "started_at": "2026-09-16T09:00:00.000000Z",
    "status": "done",
    "total_batches": 5,
    "type": "full"
  },
  "resolved_issues": 5,
  "total_issues": 12
}
```

**SDK Code**

```python 200 - Issue stats
import requests

url = "https://api.modulards.com/api/public/v1/site-broken-link-issues/stats"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript 200 - Issue stats
const url = 'https://api.modulards.com/api/public/v1/site-broken-link-issues/stats';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go 200 - Issue stats
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.modulards.com/api/public/v1/site-broken-link-issues/stats"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby 200 - Issue stats
require 'uri'
require 'net/http'

url = URI("https://api.modulards.com/api/public/v1/site-broken-link-issues/stats")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java 200 - Issue stats
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modulards.com/api/public/v1/site-broken-link-issues/stats")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php 200 - Issue stats
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modulards.com/api/public/v1/site-broken-link-issues/stats', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp 200 - Issue stats
using RestSharp;

var client = new RestClient("https://api.modulards.com/api/public/v1/site-broken-link-issues/stats");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift 200 - Issue stats
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/site-broken-link-issues/stats")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```