# GTFS Scheduled Transit Service Change Auditor (`thirdwatch/gtfs-service-change-auditor`) Actor

Compare GTFS schedules for a route and service date. Track trip additions, stop order, timing and frequency changes across two complete editions.

- **URL**: https://apify.com/thirdwatch/gtfs-service-change-auditor.md
- **Developed by:** [Thirdwatch](https://apify.com/thirdwatch) (community)
- **Categories:** Travel
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 8.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.50 / 1,000 gtfs service-date comparison completeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## GTFS Scheduled Transit Service Change Auditor

> Compare GTFS schedules for a route and service date. Track trip additions, stop order, timing and frequency changes across two complete editions.

### What you get

A transit publisher can review a changed stop pattern and headway on a specific service date before updating a rider timetable.

Give it the link to a publisher’s GTFS ZIP and run it on a schedule. It downloads the file on each run, remembers the last timetable it saw for your date and watchlist, and reports only what changed since. You can also supply both timetables yourself for a one-off comparison.

Archives are limited to 12 MiB compressed, 96 MiB expanded, 32 MiB and 350,000 rows per file, and 100 flat files. A ZIP you paste must also fit in the run input, which is limited to 9 MiB in total. After base64 encoding that leaves about 6.7 MiB of ZIP, shared between `currentFeed` and `previousFeed`. The actor checks the ZIP directory before indexing it. It accepts single-disk ZIPs with a directory of at most 128 KiB. ZIP64, encrypted members, dangerous paths and unusually high compression ratios are rejected.

### Output fields

The default example produces these top-level fields. Nested records can be expanded in JSON or selected during export.

| Field | Meaning |
| --- | --- |
| `eventType` | What this row reports. See the list below. |
| `baselineSource` | What the current timetable was compared with: `previousFeed`, `savedBaseline`, or `none` when there was nothing earlier. |
| `agencyId` | Agency identifier that scopes the record. |
| `tripId` | Publisher’s identifier for the route or scheduled trip. |
| `serviceDate` | Service date as reported by the source. |
| `before` | Earlier record or measurements for this identity, when available. |
| `after` | Current record or measurements for the same identity. |
| `currentFeed` | Archive identity, scope and attribution for the corresponding GTFS timetable. |
| `previousFeed` | Archive identity, scope and attribution for the corresponding GTFS timetable. |
| `stopPatternChanged` | Stop pattern changed across comparable observations; missing evidence can leave this empty. |
| `commonStopTimesChanged` | Common stop times changed across comparable observations; missing evidence can leave this empty. |
| `frequencyChanged` | Frequency changed across comparable observations; missing evidence can leave this empty. |
| `routeChanged` | Route changed across comparable observations; missing evidence can leave this empty. |
| `serviceIdChanged` | Service ID changed across comparable observations; missing evidence can leave this empty. |
| `timezoneChanged` | Timezone changed across comparable observations; missing evidence can leave this empty. |
| `routeIds`, `tripIds` | On a confirmation row: the watchlist that was checked. |
| `routeIdsNotFound` | On a confirmation row: watched route IDs missing from the current timetable. Check these if you expected trips. |
| `tripsInCurrent`, `tripsInPrevious` | On a confirmation row: how many watched trips each timetable has on this date. |
| `note` | On a confirmation row: what the row means in a sentence. |

#### Row types

| `eventType` | Meaning |
| --- | --- |
| `trip_added`, `trip_removed`, `trip_changed` | A difference between two complete timetables. |
| `baseline_trip` | A watched trip in the current timetable when there is nothing earlier to compare with. |
| `first_observed` | A trip the earlier timetable lacks, where one timetable is marked incomplete. Removals and changes are not claimed in this case. |
| `no_changes` | Confirmation: two complete timetables were compared and the watched trips match. |
| `no_new_trips` | Confirmation: nothing new was seen, and a timetable marked incomplete means removals and changes were not assessed. |
| `no_scheduled_trips` | Confirmation: nothing earlier to compare with, and no watched trip on this date. |

A run with nothing else to report writes one confirmation row, so a successful run always has a row to read. The row itself carries no charge.

### Example output

Selected fields from a verified run on supplied illustrative data. The JSON below is an excerpt from one row.

```json
{
  "eventType": "trip_changed",
  "baselineSource": "previousFeed",
  "agencyId": "EX",
  "tripId": "T-CHANGE",
  "serviceDate": "2026-11-06",
  "stopPatternChanged": true,
  "commonStopTimesChanged": true,
  "frequencyChanged": true,
  "routeChanged": false
}
```

### Input parameters

The form opens with a small sample timetable, so you can start a run straight away and see its baseline rows. To see a comparison, switch to JSON, paste the input below and start the Actor. Open the run’s dataset to inspect or export the result.

The included comparison uses two original encoded GTFS ZIPs. The complete input includes those encoded files. Open the example to copy it without substituting your own files.

<details>
<summary>Copy the complete, runnable input</summary>

```json
{
  "authorized": true,
  "serviceDate": "2026-11-06",
  "routeIds": ["R42"],
  "previousFeed": {"scopeId": "original-gtfs-demo", "complete": true, "attribution": "Original example timetable created for this auditor.", "zipBase64": "UEsDBBQAAAAIAABgZl1g+vcZWQAAAG0AAAAKAAAAYWdlbmN5LnR4dEtMT81LrozPTNFJhLDyEnNTYezSohwYsyQzN7UqPy+VyzVCx7UiMbcgJ1UhpCgxrzizRCejpKSg2EpfPxUirpeZV5aYAzTRMTe1KDM5Ud8vtTw+Mr8omwsAUEsDBBQAAAAIAABgZl1aj1liXAAAAJ0AAAAMAAAAY2FsZW5kYXIudHh0K04tKstMTo3PTNHJzc9LSazUKSlNLQbR5akpeRBWSUZpEZiRVpQJoooTS0qLwIxSsI7iksSikviUxJJUndS8FDCDK9xbx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Zl1aj1liXAAAAJ0AAAAMAAAAAAAAAAAAAACAAYEAAABjYWxlbmRhci50eHRQSwECFAMUAAAACAAAYGZdDrq6NjAAAAAuAAAAEgAAAAAAAAAAAAAAgAEHAQAAY2FsZW5kYXJfZGF0ZXMudHh0UEsBAhQDFAAAAAgAAGBmXQY3SYBJAAAAVgAAAA8AAAAAAAAAAAAAAIABZwEAAGZyZXF1ZW5jaWVzLnR4dFBLAQIUAxQAAAAIAABgZl3WDSCnRAAAAFgAAAAKAAAAAAAAAAAAAACAAd0BAAByb3V0ZXMudHh0UEsBAhQDFAAAAAgAAGBmXYh9znuSAAAAGAEAAA4AAAAAAAAAAAAAAIABSQIAAHN0b3BfdGltZXMudHh0UEsBAhQDFAAAAAgAAGBmXb6V4kJCAAAAVwAAAAkAAAAAAAAAAAAAAIABBwMAAHN0b3BzLnR4dFBLAQIUAxQAAAAIAABgZl2gt0eoPQAAAEsAAAAJAAAAAAAAAAAAAACAAXADAAB0cmlwcy50eHRQSwUGAAAAAAgACADRAQAA1AMAAAAA"},
  "currentFeed": {"scopeId": "original-gtfs-demo", "complete": true, "attribution": "Original example timetable created for this auditor.", "zipBase64": "UEsDBBQAAAAIAABgZl1g+vcZWQAAAG0AAAAKAAAAYWdlbmN5LnR4dEtMT81LrozPTNFJhLDyEnNTYezSohwYsyQzN7UqPy+VyzVCx7UiMbcgJ1UhpCgxrzizRCejpKSg2EpfPxUirpeZV5aYAzTRMTe1KDM5Ud8vtTw+Mr8omwsAUEsDBBQAAAAIAABgZl1aj1liXAAAAJ0AAAAMAAAAY2FsZW5kYXIudHh0K04tKstMTo3PTNHJzc9LSazUKSlNLQbR5akpeRBWSUZpEZiRVpQJoooTS0qLwIxSsI7iksSikviUxJJUndS8FDCDK9xbxxAODYDQyMDIzNDQwBDKMDbgiiCoAgBQSwMEFAAAAAgAAGBmXVwzp6g0AAAAOwAAABIAAABjYWxlbmRhcl9kYXRlcy50eHQrTi0qy0xOjc9M0UlJLEnVSa1ITi0oycz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kYXRlcy50eHRQSwECFAMUAAAACAAAYGZd04UfcUkAAABWAAAADwAAAAAAAAAAAAAAgAFrAQAAZnJlcXVlbmNpZXMudHh0UEsBAhQDFAAAAAgAAGBmXdYNIKdEAAAAWAAAAAoAAAAAAAAAAAAAAIAB4QEAAHJvdXRlcy50eHRQSwECFAMUAAAACAAAYGZdLmLfnZMAAAAYAQAADgAAAAAAAAAAAAAAgAFNAgAAc3RvcF90aW1lcy50eHRQSwECFAMUAAAACAAAYGZdvpXiQkIAAABXAAAACQAAAAAAAAAAAAAAgAEMAwAAc3RvcHMudHh0UEsBAhQDFAAAAAgAAGBmXaC3R6g9AAAASwAAAAkAAAAAAAAAAAAAAIABdQMAAHRyaXBzLnR4dFBLBQYAAAAACAAIANEBAADZAwAAAAA="}
}
```

</details>

| Parameter | Use | Meaning |
| --- | --- | --- |
| `authorized` | Required | Confirm you may use and keep every feed you supply or link to, and that you will follow its licence. Default: `false`. |
| `serviceDate` | Required | The agency’s local date to compare, as YYYY-MM-DD. It must fall inside the published dates of every timetable you supply. |
| `routeIds` | Required | Watch 1–20 source route IDs, exactly as they appear in the timetable’s `routes.txt`. These are identifiers, not public route names. |
| `tripIds` | Optional / mode-specific | Optional filter for up to 50 trips in the watched routes. |
| `currentFeed` | Required | Set `scopeId`, a stable name for this publisher, and one of: `source` = `url` with `url`, an `https://` link to the publisher’s GTFS ZIP, downloaded on each run; `zipBase64`, your authorized GTFS ZIP, base64-encoded; or `source` = `guelph`, the City of Guelph’s official public feed. Mark `complete` only if the watchlist is fully represented. Optionally set `attribution` to the credit the feed’s licence requires. |
| `rememberState` | Optional | Save what the next comparison needs in a key-value store in your account, and compare the next run against it. Default: `true`. The input form starts with it off so the sample repeats exactly; turn it on for your own schedule. |
| `previousFeed` | Optional / mode-specific | Optional earlier timetable as `zipBase64` with the same `scopeId`. It takes priority over a saved timetable. With neither, each watched trip in the current timetable is a baseline row. |

### Run it on a schedule

1. Set `serviceDate` and `routeIds`, point `currentFeed` at the publisher’s GTFS link, and turn `rememberState` on.
2. Save the input as a Task and attach the Task to a schedule. Nothing in the input needs to change while your date stays current.
3. After each run, read the dataset. The first run is the baseline and is not billed. Later runs report what changed since the run before.

This example watches one route in the official Regina Transit feed:

```json
{
  "authorized": true,
  "serviceDate": "2026-12-14",
  "routeIds": ["1-48"],
  "rememberState": true,
  "currentFeed": {
    "scopeId": "regina-transit",
    "source": "url",
    "url": "https://opengis.regina.ca/reginagtfs/google_transit.zip",
    "complete": true,
    "attribution": "Contains information licensed under the Open Government Licence – City of Regina."
  }
}
```

The saved timetable lives in a key-value store named `gtfs-service-change-auditor-state` in your own account, with one record per combination of `scopeId`, `serviceDate`, `routeIds` and `tripIds`. Changing any of them starts a new baseline, and two Tasks watching different dates of one feed each keep their own. Only the watched trips for that date are kept, never the whole ZIP.

The timetable is saved only after a run’s rows are delivered, so the changes from a failed run are reported again by the next one. A failed download fails the run with the reason: nothing is billed and the saved timetable stays as it was. A timetable marked incomplete never replaces a complete one. To manage this yourself, set `rememberState` to `false` and supply `previousFeed`.

A completed comparison of two complete timetables is billed once, whether or not anything changed. Baselines and comparisons involving an incomplete timetable are not billed.

### API integration

Submit JSON to [this Actor’s run endpoint](https://api.apify.com/v2/acts/thirdwatch~gtfs-service-change-auditor/runs). On success, read `defaultDatasetId` from the run and export its items as JSON or CSV. Each run also writes `RUN_REPORT` to its key-value store, with the baseline used, the rows delivered and the comparisons completed.

### Limitations

- **Feed size:** a feed must fit the limits above, and many larger networks do not. In November 2026 the official feeds for TriMet and the MBTA were over 12 MiB, and those for Calgary Transit, Madison Metro and Sound Transit had a `stop_times.txt` over the 32 MiB and 350,000-row limits. Such a feed fails with a message naming the limit it passed.
- **Links:** a feed link must be a public `https://` address that needs no sign-in. Usernames or passwords in the address, private network addresses and redirects to either are refused. Up to 5 redirects are followed, and the download must finish within 90 seconds. Some publishers refuse downloads from hosted services. The run then fails with the server’s answer, and you can supply the ZIP in `zipBase64` instead.
- **Access keys:** a key in the link’s query string is sent to the publisher but left out of `sourceUrl` and the results. It does stay in your run input.
- **Dates:** a run for a date outside the current timetable’s published dates fails with a message saying so. Update `serviceDate` as timetables roll forward; the first run on a new date is a new baseline, so a change published on that same day is not reported as a change.
- **Route IDs:** publishers can renumber route IDs between editions. A renumbered route reads as removed trips, because its new ID is not on your watchlist. `RUN_REPORT` lists any watched ID that has gone under `routeIdsNotFound`.
- **Scope:** this compares scheduled service rather than real-time arrivals, and incomplete timetables suppress missing-service claims.

### Feed licences

You are responsible for following the licence of any feed you supply or link to, and `authorized` confirms you may use it. Set `attribution` to the credit that licence requires, and it is carried on every row from that feed in `currentFeed`, and in `previousFeed` when a later run compares against it.

### City of Guelph data

Contains information licensed under the Open Government Licence – City of Guelph. See the [Open Data Licence Version 2.0](https://gismaps.guelph.ca/Images/OpenDataLicenceVersion2.pdf). If you publish results from this feed, keep this statement and the link with them. Every row from the `guelph` source carries them in `currentFeed`, including rows compared against a saved timetable.

This Actor is independent and is not endorsed by the City of Guelph.

When checked in November 2026, the city’s published file covered 4 January to 2 May 2026, so choose a `serviceDate` in that range until the city publishes a new edition. A date outside the published range fails, and the example’s route ID may change with a new edition.

[Official timetable ZIP](https://gismaps.guelph.ca/Pages/GTFS/google_transit.zip) · [GTFS specification](https://gtfs.org/documentation/schedule/reference/)

### Compared to alternatives

A timetable lookup can list a departure at one stop. Comparing archived GTFS editions exposes a changed trip pattern, new service exception or headway revision. Related options: [l3digital/gtfs-service-date-report](https://apify.com/l3digital/gtfs-service-date-report) and [datamule/gtfs-feed-extractor](https://apify.com/datamule/gtfs-feed-extractor).

### FAQ

**When can a missing trip be reported as removed?**

Both archives must represent the same publisher scope and be marked complete for the watchlist. Weekly schedules and date exceptions are applied first.

**Why did my run return one row and no trips?**

That is a confirmation row. Read `eventType` and `note`: nothing changed, or no watched trip runs on this date. If `routeIdsNotFound` lists your route, use the ID from the timetable’s `routes.txt` rather than the public route number.

**Which timetable did this run compare against?**

`baselineSource` on each row says, and `previousFeed` gives that timetable’s checksum and, for a saved timetable, when it was saved.

Last verified: 2026-11. The verified sample run returned 3 dataset rows. [Thirdwatch](https://thirdwatch.dev)

### Observation scope

A comparison pairs two complete schedule releases for a common network and local service date. Changed trips and stop sequences remain linked to their selected routes.

# Actor input Schema

## `authorized` (type: `boolean`):

Confirm you may use and keep every feed you supply or link to, and that you will follow its licence. It is ticked here for the sample timetable; check your rights before running your own.

## `serviceDate` (type: `string`):

The agency's local date to compare, as YYYY-MM-DD. It must fall inside the published dates of every timetable you supply. The prefilled date belongs to the sample timetable.

## `routeIds` (type: `array`):

Watch 1–20 source route IDs, exactly as they appear in the timetable's routes.txt. These are identifiers, not public route names.

## `tripIds` (type: `array`):

Optional filter for up to 50 trips in the watched routes.

## `currentFeed` (type: `object`):

Set scopeId, a stable name for this publisher, and one of: source = url with url, an https:// link to the publisher's GTFS ZIP, downloaded on each run; zipBase64, your authorized GTFS ZIP, base64-encoded; or source = guelph, the City of Guelph's official public feed. Mark complete only if the watchlist is fully represented. Optionally set attribution to the credit the feed's licence requires. The prefilled value is a small sample timetable.

## `rememberState` (type: `boolean`):

Save what the next comparison needs in a key-value store in your account, and compare the next run with the same scopeId, date and watched routes and trips against it. Turn this on for scheduled runs; it is the default when you call the Actor through the API. It is off in this form so the sample gives the same result every time. A supplied previousFeed takes priority.

## `previousFeed` (type: `object`):

Optional earlier timetable as zipBase64 with the same scopeId. It takes priority over a saved timetable. With neither, each watched trip in the current timetable is a baseline row.

## Actor input object example

```json
{
  "authorized": true,
  "serviceDate": "2026-11-06",
  "routeIds": [
    "R42"
  ],
  "currentFeed": {
    "scopeId": "original-gtfs-demo",
    "complete": true,
    "attribution": "Original example timetable created for this auditor.",
    "zipBase64": "UEsDBBQAAAAIAABgZl1g+vcZWQAAAG0AAAAKAAAAYWdlbmN5LnR4dEtMT81LrozPTNFJhLDyEnNTYezSohwYsyQzN7UqPy+VyzVCx7UiMbcgJ1UhpCgxrzizRCejpKSg2EpfPxUirpeZV5aYAzTRMTe1KDM5Ud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stMBjNLijILgDRXkImRTri3Toius4ejn7srmO/o4gIUAJKuLmB+BEja0c/Z1YcLAFBLAQIUAxQAAAAIAABgZl1g+vcZWQAAAG0AAAAKAAAAAAAAAAAAAACAAQAAAABhZ2VuY3kudHh0UEsBAhQDFAAAAAgAAGBmXVqPWWJcAAAAnQAAAAwAAAAAAAAAAAAAAIABgQAAAGNhbGVuZGFyLnR4dFBLAQIUAxQAAAAIAABgZl1cM6eoNAAAADsAAAASAAAAAAAAAAAAAACAAQcBAABjYWxlbmRhcl9kYXRlcy50eHRQSwECFAMUAAAACAAAYGZd04UfcUkAAABWAAAADwAAAAAAAAAAAAAAgAFrAQAAZnJlcXVlbmNpZXMudHh0UEsBAhQDFAAAAAgAAGBmXdYNIKdEAAAAWAAAAAoAAAAAAAAAAAAAAIAB4QEAAHJvdXRlcy50eHRQSwECFAMUAAAACAAAYGZdLmLfnZMAAAAYAQAADgAAAAAAAAAAAAAAgAFNAgAAc3RvcF90aW1lcy50eHRQSwECFAMUAAAACAAAYGZdvpXiQkIAAABXAAAACQAAAAAAAAAAAAAAgAEMAwAAc3RvcHMudHh0UEsBAhQDFAAAAAgAAGBmXaC3R6g9AAAASwAAAAkAAAAAAAAAAAAAAIABdQMAAHRyaXBzLnR4dFBLBQYAAAAACAAIANEBAADZAwAAAAA="
  },
  "rememberState": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "authorized": true,
    "serviceDate": "2026-11-06",
    "routeIds": [
        "R42"
    ],
    "currentFeed": {
        "scopeId": "original-gtfs-demo",
        "complete": true,
        "attribution": "Original example timetable created for this auditor.",
        "zipBase64": "UEsDBBQAAA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NEpBtF5ibmpEFZOYgmUkZ/H5agTkFiUrWNioKNrbsLlpBNckliSmZ8HFNAzMASLOet4ZObkgAWMwAIAUEsDBBQAAAAIAABgZl2gt0eoPQAAAEsAAAAJAAAAdHJpcHMudHh0K8ovLUmNz0zRKU4tKstMBjNLijILgDRXkImRTri3Toius4ejn7srmO/o4gIUAJKuLmB+BEja0c/Z1YcLAFBLAQIUAxQAAAAIAABgZl1g+vcZWQAAAG0AAAAKAAAAAAAAAAAAAACAAQAAAABhZ2VuY3kudHh0UEsBAhQDFAAAAAgAAGBmXVqPWWJcAAAAnQAAAAwAAAAAAAAAAAAAAIABgQAAAGNhbGVuZGFyLnR4dFBLAQIUAxQAAAAIAABgZl1cM6eoNAAAADsAAAASAAAAAAAAAAAAAACAAQcBAABjYWxlbmRhcl9kYXRlcy50eHRQSwECFAMUAAAACAAAYGZd04UfcUkAAABWAAAADwAAAAAAAAAAAAAAgAFrAQAAZnJlcXVlbmNpZXMudHh0UEsBAhQDFAAAAAgAAGBmXdYNIKdEAAAAWAAAAAoAAAAAAAAAAAAAAIAB4QEAAHJvdXRlcy50eHRQSwECFAMUAAAACAAAYGZdLmLfnZMAAAAYAQAADgAAAAAAAAAAAAAAgAFNAgAAc3RvcF90aW1lcy50eHRQSwECFAMUAAAACAAAYGZdvpXiQkIAAABXAAAACQAAAAAAAAAAAAAAgAEMAwAAc3RvcHMudHh0UEsBAhQDFAAAAAgAAGBmXaC3R6g9AAAASwAAAAkAAAAAAAAAAAAAAIABdQMAAHRyaXBzLnR4dFBLBQYAAAAACAAIANEBAADZAwAAAAA="
    },
    "rememberState": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("thirdwatch/gtfs-service-change-auditor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "authorized": True,
    "serviceDate": "2026-11-06",
    "routeIds": ["R42"],
    "currentFeed": {
        "scopeId": "original-gtfs-demo",
        "complete": True,
        "attribution": "Original example timetable created for this auditor.",
        "zipBase64": "UEsDBBQAAAAIAABgZl1g+vcZWQAAAG0AAAAKAAAAYWdlbmN5LnR4dEtMT81LrozPTNFJhLDyEnNTYezSohwYsyQzN7UqPy+VyzVCx7UiMbcgJ1UhpCgxrzizRCejpKSg2EpfPxUirpeZV5aYAzTRMTe1KDM5Ud8vtTw+Mr8omwsAUEsDBBQAAAAIAABgZl1aj1liXAAAAJ0AAAAMAAAAY2FsZW5kYXIudHh0K04tKstMTo3PTNHJzc9LSazUKSlNLQbR5akpeRBWSUZpEZiRVpQJoooTS0qLwIxSsI7iksSikviUxJJUndS8FDCDK9xbxxAODYDQyMDIzNDQwBDKMDbgiiCoAgBQSwMEFAAAAAgAAGBmXVwzp6g0AAAAOwAAABIAAABjYWxlbmRhcl9kYXRlcy50eHQrTi0qy0xOjc9M0UlJLEnVSa1ITi0oyczPiy+pLEjlcnRx0TEyMDIzNDQw0zHkikBwjLgAUEsDBBQAAAAIAABgZl3ThR9xSQAAAFYAAAAPAAAAZnJlcXVlbmNpZXMudHh0KynKLIjPTNEpLkksKokvycxN1UnNS4EwMlITU8oTK+OLU5OLdVIrEpMhCoq5QnSdPRz93F11jEysTEytDAx0jMygDDMgNuACAFBLAwQUAAAACAAAYGZd1g0gp0QAAABYAAAACgAAAHJvdXRlcy50eHQryi8tSY3PTNFJTE/NS64EsYrAQsUZ+UUl8XmJualQgZz8vHRkfkllQSpXkImRjmuEDpAMyixLLVIILilKTS3RMeYCAFBLAwQUAAAACAAAYGZdLmLfnZMAAAAYAQAADgAAAHN0b3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IABdQMAAHRyaXBzLnR4dFBLBQYAAAAACAAIANEBAADZAwAAAAA=",
    },
    "rememberState": False,
}

# Run the Actor and wait for it to finish
run = client.actor("thirdwatch/gtfs-service-change-auditor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "authorized": true,
  "serviceDate": "2026-11-06",
  "routeIds": [
    "R42"
  ],
  "currentFeed": {
    "scopeId": "original-gtfs-demo",
    "complete": true,
    "attribution": "Original example timetable created for this auditor.",
    "zipBase64": "UEsDBBQAAAAIAABgZl1g+vcZWQAAAG0AAAAKAAAAYWdlbmN5LnR4dEtMT81LrozPTNFJhLDyEnNTYezSohwYsyQzN7UqPy+VyzVCx7UiMbcgJ1UhpCgxrzizRCejpKSg2EpfPxUirpeZV5aYAzTRMTe1KDM5Ud8vtTw+Mr8omwsAUEsDBBQAAAAIAABgZl1aj1liXAAAAJ0AAAAMAAAAY2FsZW5kYXIudHh0K04tKstMTo3PTNHJzc9LSazUKSlNLQbR5akpeRBWSUZpEZiRVpQJoooTS0qLwIxSsI7iksSikviUxJJUndS8FDCDK9xbxxAODYDQyMDIzNDQwBDKMDbgiiCoAgBQSwMEFAAAAAgAAGBmXVwzp6g0AAAAOwAAABIAAABjYWxlbmRhcl9kYXRlcy50eHQrTi0qy0xOjc9M0UlJLEnVSa1ITi0oyczPiy+pLEjlcnRx0TEyMDIzNDQw0zHkikBwjLgAUEsDBBQAAAAIAABgZl3ThR9xSQAAAFYAAAAPAAAAZnJlcXVlbmNpZXMudHh0KynKLIjPTNEpLkksKokvycxN1UnNS4EwMlITU8oTK+OLU5OLdVIrEpMhCoq5QnSdPRz93F11jEysTEytDAx0jMygDDMgNuACAFBLAwQUAAAACAAAYGZd1g0gp0QAAABY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AgAFNAgAAc3RvcF90aW1lcy50eHRQSwECFAMUAAAACAAAYGZdvpXiQkIAAABXAAAACQAAAAAAAAAAAAAAgAEMAwAAc3RvcHMudHh0UEsBAhQDFAAAAAgAAGBmXaC3R6g9AAAASwAAAAkAAAAAAAAAAAAAAIABdQMAAHRyaXBzLnR4dFBLBQYAAAAACAAIANEBAADZAwAAAAA="
  },
  "rememberState": false
}' |
apify call thirdwatch/gtfs-service-change-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thirdwatch/gtfs-service-change-auditor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1mFuxMymyI97v0HCP/builds/T3CSsB5iCh2yvbuQj/openapi.json
