---
title: "Screenshot of the project's live site: state, version and failure reason (the first capture of a live project is queued on first read)"
method: GET
path: "/projects/{projectId}/screenshot/info"
tags: ["Projects"]
---

# Screenshot of the project's live site: state, version and failure reason (the first capture of a live project is queued on first read)

`GET /projects/{projectId}/screenshot/info`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/projects/{projectId}/screenshot/info`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Path parameters

- `projectId` string, uuid, required

## Response `200`

Screenshot state

- object
  - `projectId` string, uuid, required
  - `configured` boolean, required
  - `status` 'off' | 'none' | 'pending' | 'ready' | 'failed', required
  - `version` string, nullable, required
  - `contentType` 'image/webp' | 'image/jpeg' | 'null', nullable, required
  - `capturedAt` string, nullable, required: ISO-8601 timestamp
  - `url` string, nullable, required
  - `refreshing` boolean, required
  - `requestedAt` string, nullable, required: ISO-8601 timestamp
  - `lastError` 'no_public_url' | 'invalid_job' | 'dns_failure' | 'blocked_address' | 'navigation_blocked' | 'unreachable' | 'timeout' | 'protected' | 'site_error' | 'too_large' | 'browser_failed' | 'capture_timeout' | 'storage_full' | 'null', nullable, required
  - `lastAttemptAt` string, nullable, required: ISO-8601 timestamp
  - `refreshAvailableAt` string, nullable, required: ISO-8601 timestamp
  - `sizes` object, required
    - `full` object, required
      - `width` integer, required
      - `height` integer, required
    - `thumb` object, required
      - `width` integer, required
      - `height` integer, required

## Other responses

- `400`: Invalid request (code invalid_request)
- `401`: Missing or invalid session/token (code unauthorized)
- `403`: Authenticated but not permitted (code forbidden)
- `404`: Not found or not visible to the caller (code not_found)
- `409`: The project has no live site to capture (code conflict)
- `429`: Too many requests (code rate_limited); see Retry-After
- `501`: Screenshots are not set up on this server (code not_configured)

---

[API](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api.md) · [All operations](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/revisions/4d08337cdff1?raw)
