Page resources
GET /api/v1/resources
Every resource a page references — images, scripts, stylesheets — fetched and inspected: size, status code, MIME type, cache headers, and flags for broken, redirected or un-minified assets.
Query parameters
| Name | Type | Description |
|---|---|---|
url required | string | The page whose resources to list. |
type optional | string | Filter: image, script, stylesheet or broken. |
Request
Response
200 · application/json
- {
- "url": "https://example.com",
- "totalCount": 2,
- "items": [
- {
- "type": "image",
- "url": "https://example.com/logo.png",
- "statusCode": 200,
- "mediaType": "image/png",
- "size": 14820,
- "cacheable": true,
- "checks": { "isBroken": false, "missingAlt": false }
- }
- ]
- }
Response fields
| Field | Type | Description |
|---|---|---|
type | string | image, script or stylesheet. |
statusCode | integer | HTTP status returned when fetching the resource (0 if unreachable). |
mediaType | string | Content-Type of the resource (e.g. image/png). |
size | integer | Transfer size in bytes. |
cacheable | boolean | Whether cache headers allow caching. |
checks | object | Per-resource flags: isBroken, and missingAlt for images. |
See Errors for status codes.