> 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.

# List site scans

GET https://api.modulards.com/api/public/v1/site-scans

Lists malware scans across every website the token can reach, newest first. Narrow with `filter[site][]` for one or more websites, or `filter[id][]` to follow the scans a launch just started.

Response attributes: `site_id`, `status` (pending, in_progress, done, failed, quota_exceeded), `verdict` (pending, in_progress, clean, threats_found, failed, quota_exceeded), `method` (automatic, manual, force_first), `files_clean`, `files_malicious`, `files_suspicious`, `files_infected`, `db_threats_detected`, `has_threats`, `comment`, `omitted` (branches skipped for lack of scan quota, with their reset dates) and the timestamps. `include=site` adds the website to `included`.

Reference: https://api.docs.modulards.com/modular-ds-public-api/site-scans/list-site-scans

## 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) — Exact website ids (repeatable)
- `filter[id][]` (string, optional) — Exact scan ids, to follow a launched batch (repeatable)
- `filter[status][]` (string, optional) — pending | in_progress | done | failed | quota_exceeded (repeatable)
- `filter[verdict][]` (string, optional) — pending | in_progress | clean | threats_found | failed | quota_exceeded (repeatable)
- `filter[method][]` (string, optional) — automatic | manual | force_first (repeatable)
- `sort` (string, optional) — created_at, updated_at; prefix with - to invert. Default: -created_at (newest first)
- `page[number]` (string, optional)
- `page[size]` (string, optional) — Max 50
- `include` (string, optional) — Adds the website to `included`

## Response

### 200

200 - Site scans list

- `data` (list of object, optional)
  - `attributes` (object, optional)
    - `comment` (any, optional, nullable)
    - `created_at` (string, optional)
    - `db_threats_detected` (double, optional)
    - `files_clean` (double, optional)
    - `files_infected` (double, optional)
    - `files_malicious` (double, optional)
    - `files_suspicious` (double, optional)
    - `has_threats` (boolean, optional)
    - `method` (string, optional)
    - `omitted` (list of any, optional)
    - `site_id` (double, optional)
    - `status` (string, optional)
    - `updated_at` (string, optional)
    - `verdict` (string, optional)
  - `id` (string, optional)
  - `links` (object, optional)
    - `self` (string, optional)
  - `type` (string, optional)
- `jsonapi` (object, optional)
  - `version` (string, optional)
- `meta` (object, optional)
  - `current_page` (double, optional)
  - `per_page` (double, optional)
  - `total` (double, optional)

## Examples

**Response**

```json
{
  "data": [
    {
      "attributes": {
        "comment": null,
        "created_at": "2026-09-18T09:00:00.000000Z",
        "db_threats_detected": 0,
        "files_clean": 4210,
        "files_infected": 0,
        "files_malicious": 0,
        "files_suspicious": 0,
        "has_threats": false,
        "method": "manual",
        "omitted": [],
        "site_id": 101,
        "status": "done",
        "updated_at": "2026-09-18T09:14:00.000000Z",
        "verdict": "clean"
      },
      "id": "3021",
      "links": {
        "self": "https://api.modulards.com/api/public/v1/site-scans/3021"
      },
      "type": "site-scans"
    }
  ],
  "jsonapi": {
    "version": "1.1"
  },
  "meta": {
    "current_page": 1,
    "per_page": 15,
    "total": 1
  }
}
```

**SDK Code**

```python 200 - Site scans list
import requests

url = "https://api.modulards.com/api/public/v1/site-scans"

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

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

print(response.json())
```

```javascript 200 - Site scans list
const url = 'https://api.modulards.com/api/public/v1/site-scans';
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 - Site scans list
package main

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

func main() {

	url := "https://api.modulards.com/api/public/v1/site-scans"

	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 - Site scans list
require 'uri'
require 'net/http'

url = URI("https://api.modulards.com/api/public/v1/site-scans")

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 - Site scans list
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-scans")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php 200 - Site scans list
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

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

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

```csharp 200 - Site scans list
using RestSharp;

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

```swift 200 - Site scans list
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/site-scans")! 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()
```