```yaml
product: AlterLab
title: Schedules API Reference
category: api
comparison_context: "AlterLab is an alternative to Firecrawl, ScrapingBee, and Bright Data."
source_url: https://alterlab.io/docs/api/generated/schedules
```

# Schedules API Reference

Auto-generated API reference for schedules endpoints, built from the OpenAPI spec.

## GET /api/v1/schedules

List schedules
Return a paginated list of your scrape schedules. Optionally filter to active-only schedules.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `limit` | query | `integer` | no |  |
| `offset` | query | `integer` | no |  |
| `active_only` | query | `boolean` | no |  |

## POST /api/v1/schedules

Create a schedule
Create a recurring scrape schedule using a cron expression. The scheduler automatically triggers scrape jobs at the specified times. Schedule limits depend on your credit balance tier.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `X-Organization-Id` | header | `string` | no |  |
| `name` | body | `string` | yes | Name |
| `urls` | body | `string[]` | yes | Urls |
| `formats` | body | `string[]` | no |  |
| `cron` | body | `string` | yes | Cron expression (5 fields), e.g. '0 9 * * *' |
| `timezone` | body | `string` | no | Timezone |
| `options` | body | `object` | no |  |
| `webhook_url` | body | `string` | no |  |
| `session_id` | body | `string` | no |  |
| `export` | body | `object` | no | Export configuration for schedule results to cloud storage. |

## GET /api/v1/schedules/analytics

Get schedule analytics
Aggregate analytics across all your schedules: summary stats, per-schedule health rankings, and credit forecast.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `X-Organization-Id` | header | `string` | no |  |

## DELETE /api/v1/schedules/{schedule_id}

Delete a schedule
Soft-delete a schedule. It will no longer trigger.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `schedule_id` | path | `string` | yes |  |

## GET /api/v1/schedules/{schedule_id}

Get schedule details
Get a single schedule's configuration, status, and next run time.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `schedule_id` | path | `string` | yes |  |

## PATCH /api/v1/schedules/{schedule_id}

Update a schedule
Update a schedule's configuration. Recomputes the next run time if cron expression or timezone changes.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `schedule_id` | path | `string` | yes |  |
| `name` | body | `string` | no |  |
| `urls` | body | `string[]` | no |  |
| `formats` | body | `string[]` | no |  |
| `cron` | body | `string` | no |  |
| `timezone` | body | `string` | no |  |
| `options` | body | `object` | no |  |
| `webhook_url` | body | `string` | no |  |
| `session_id` | body | `string` | no |  |
| `export` | body | `object` | no | Export configuration for schedule results to cloud storage. |

## POST /api/v1/schedules/{schedule_id}/pause

Pause a schedule
Pause a schedule so it stops triggering until resumed.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `schedule_id` | path | `string` | yes |  |

## POST /api/v1/schedules/{schedule_id}/resume

Resume a schedule
Resume a paused schedule. Recomputes the next run time.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `schedule_id` | path | `string` | yes |  |

## POST /api/v1/schedules/{schedule_id}/run

Trigger a schedule now
Manually trigger a schedule execution immediately, outside its cron schedule. Credits are debited normally.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `schedule_id` | path | `string` | yes |  |

## GET /api/v1/schedules/{schedule_id}/runs

List schedule runs
Return a paginated history of a schedule's execution runs, most recent first.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `schedule_id` | path | `string` | yes |  |
| `limit` | query | `integer` | no |  |
| `offset` | query | `integer` | no |  |
