API Reference

Overview

Get Schedule

The Snapshot Get Schedule API lets you retrieve the complete configuration of an existing screenshot schedule using its schedule ID. The response includes the schedule name, description, status, scheduling configuration, next and previous run information, and all screenshot items associated with the schedule. Each item can include its target URL, viewport settings, full-page capture configuration, image format, quality, wait conditions, and extraction options. Use this endpoint when your application needs to view, inspect, or load an existing scheduled screenshot configuration for management or editing.

Endpoint

GEThttps://snapshot-api.mindiqglobal.com/api/v1/schedules/{id}

Path Parameters

NameRequiredTypeDescription
idYesintegerSchedule ID.

Success Response

{
  "id": 21,
  "name": "Daily Homepage Check",
  "description": "Track homepage changes",
  "status": "ACTIVE",
  "schedule": {
    "type": "INTERVAL",
    "firstRunAt": "2026-08-07T09:00:00Z",
    "intervalValue": 1,
    "intervalUnit": "DAYS",
    "cronExpression": null
  },
  "nextRunAt": "2026-08-07T09:00:00Z",
  "lastRunAt": null,
  "items": [
    {
      "id": 44,
      "url": "https://example.com",
      "width": 1920,
      "height": 1080,
      "fullPage": true,
      "format": "png",
      "responseType": "json",
      "quality": 100,
      "delay": 0,
      "waitUntil": "page_loaded",
      "waitUntilTimeout": 15,
      "waitFor": null,
      "crop": null,
      "element": null,
      "thumbnailWidth": null,
      "userAgent": null,
      "acceptLanguage": null,
      "extractHtml": true,
      "extractText": true,
      "createdAt": "2026-08-06T10:00:00Z",
      "updatedAt": "2026-08-06T10:00:00Z"
    }
  ],
  "createdAt": "2026-08-06T10:00:00Z",
  "updatedAt": "2026-08-06T10:00:00Z"
}

Response Body Parameters

NameTypeDescription
idintegerSchedule ID.
namestringSchedule name.
descriptionstring | nullSchedule description.
statusenumSchedule status, Possible values: ACTIVE, COMPLETED
scheduleobjectSchedule timing configuration.
schedule.typeenumPossible values: ONCE, INTERVAL, CRON.
schedule.firstRunAtdatetime | nullFirst run datetime in ISO-8601 format.
schedule.intervalValueinteger | nullInterval value for interval schedules.
schedule.intervalUnitenum | nullPossible values: MINUTES, HOURS, DAYS, WEEKS, MONTHS.
schedule.cronExpressionstring | nullCron expression for cron schedules.
nextRunAtdatetime | nullNext run datetime in ISO-8601 format.
lastRunAtdatetime | nullLast run datetime in ISO-8601 format.
itemsarraySchedule items.
items[].idintegerSchedule item ID.
items[].urlstringTarget URL.
items[].widthinteger | nullViewport width.
items[].heightinteger | nullViewport height.
items[].fullPagebooleanFull page flag. Possible values: true, false.
items[].formatenumPossible values: png, jpeg.
items[].responseTypeenumScheduled captures use json.
items[].qualityinteger | nullJPEG quality (0-100).
items[].delaynumber | nullCapture delay in seconds.
items[].waitUntilenum | nulldom_loaded, page_loaded, network_idle.
items[].waitUntilTimeoutnumber | nullwait_until timeout in seconds.
items[].waitForstring | nullCSS selector wait target.
items[].cropstring | nullCrop rectangle left,top,width,height.
items[].elementstring | nullElement selector target.
items[].thumbnailWidthinteger | nullThumbnail width.
items[].userAgentstring | nullCustom user-agent.
items[].acceptLanguagestring | nullCustom accept-language.
items[].extractHtmlbooleanExtract HTML enabled state.
items[].extractTextbooleanExtract text enabled state.
items[].createdAtdatetimeItem creation datetime in ISO-8601 format.
items[].updatedAtdatetimeItem update datetime in ISO-8601 format.
createdAtdatetimeSchedule creation datetime in ISO-8601 format.
updatedAtdatetimeSchedule update datetime in ISO-8601 format.