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

NameTypeDescription
url requiredstringThe page whose resources to list.
type optionalstringFilter: image, script, stylesheet or broken.

Request

Response

200 · application/json
  1. {
  2. "url": "https://example.com",
  3. "totalCount": 2,
  4. "items": [
  5. {
  6. "type": "image",
  7. "url": "https://example.com/logo.png",
  8. "statusCode": 200,
  9. "mediaType": "image/png",
  10. "size": 14820,
  11. "cacheable": true,
  12. "checks": { "isBroken": false, "missingAlt": false }
  13. }
  14. ]
  15. }

Response fields

FieldTypeDescription
typestringimage, script or stylesheet.
statusCodeintegerHTTP status returned when fetching the resource (0 if unreachable).
mediaTypestringContent-Type of the resource (e.g. image/png).
sizeintegerTransfer size in bytes.
cacheablebooleanWhether cache headers allow caching.
checksobjectPer-resource flags: isBroken, and missingAlt for images.

See Errors for status codes.