MobilityData Parquet API

On-demand Parquet renderings of GTFS datasets. A dataset is converted once into one Parquet file per GTFS table, published publicly with a manifest describing the set, and served over HTTP range requests so a client can query it in place without downloading or unpacking the feed. Conversion is asynchronous: ask for the state, start one if it is absent, and poll until it is ready.

GitHub OpenAPI

Operations 4

GET /v1/operations/gtfs_feeds/{id}/parquet Where the Parquet for a GTFS feed's latest dataset stands #
POST /v1/operations/gtfs_feeds/{id}/parquet Start preparing the Parquet for a GTFS feed's latest dataset #
GET /v1/operations/gtfs_datasets/{id}/parquet Where the Parquet for a GTFS dataset stands #
POST /v1/operations/gtfs_datasets/{id}/parquet Start preparing the Parquet for a GTFS dataset #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mobilitydata:mobilitydata-parquet-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mobilitydata-parquet-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: Mobility Database Catalog Operations Parquet API
  description: 'API for the Mobility Database Catalog Operations. See https://mobilitydatabase.org/.

    This API was designed for internal use and is not intended to be used by the general public.

    The Mobility Database Operation API uses Auth2.0 authentication.'
  termsOfService: https://mobilitydatabase.org/terms-and-conditions
  contact:
    name: MobilityData
    url: https://mobilitydata.org/
    email: api@mobilitydata.org
  license:
    name: MobilityData License
    url: https://www.apache.org/licenses/LICENSE-2.0
security:
- ApiKeyAuth: []
tags:
- name: parquet
  description: 'On-demand Parquet renderings of GTFS datasets. A dataset is converted once into one Parquet file per GTFS table, published publicly with a manifest describing the set, and served over HTTP range requests so a client can query it in place without downloading or unpacking the feed. Conversion is asynchronous: ask for the state, start one if it is absent, and poll until it is ready.'
paths:
  /v1/operations/gtfs_feeds/{id}/parquet:
    parameters:
    - $ref: '#/components/parameters/feed_id_path_param'
    get:
      summary: Where the Parquet for a GTFS feed's latest dataset stands
      description: 'Whether this feed''s latest dataset has been rendered as Parquet - one file per GTFS table, every column typed as text - and if it is being prepared, how far along it is. A client can then query the feed in place over HTTP range requests instead of downloading and unpacking it. Read-only: this never starts a conversion, so it is safe to poll - the viewer polls it roughly twice a second while one runs. Use POST to begin one.'
      operationId: getGtfsFeedParquet
      tags:
      - parquet
      security:
      - Authentication: []
      responses:
        '200':
          description: The dataset's current state. Returned for every state including `absent`, which means no conversion has been requested yet rather than that anything is missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParquetDatasetState'
        '404':
          description: GTFS feed not found, or it has no dataset yet. Note this does **not** cover a dataset whose Parquet has never been generated - that is `absent` with a 200.
        '500':
          description: Internal server error.
    post:
      summary: Start preparing the Parquet for a GTFS feed's latest dataset
      description: 'Begin rendering this feed''s latest dataset as Parquet, if it has not been already. Idempotent, and safe to call against a conversion that is already running: that one is reported rather than duplicated, and a dataset is never converted more than once at a time. Send `force` to replace an existing set. Work happens in the background - poll the GET on this path until it reports `ready`.'
      operationId: generateGtfsFeedParquet
      tags:
      - parquet
      security:
      - ApiKeyAuth: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ParquetGenerateRequest'
      responses:
        '202':
          description: Accepted. The body carries the state as it stands, in the same shape the GET returns; a caller that only needs to start the work can ignore it and poll instead.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParquetDatasetState'
        '404':
          description: GTFS feed not found, or it has no dataset yet.
        '422':
          description: Invalid request body - `retention_days` outside 1..60, or not an integer.
        '500':
          description: Internal server error.
  /v1/operations/gtfs_datasets/{id}/parquet:
    parameters:
    - $ref: '#/components/parameters/dataset_id_path_param'
    get:
      summary: Where the Parquet for a GTFS dataset stands
      description: 'Whether this dataset has been rendered as Parquet - one file per GTFS table, every column typed as text - and if it is being prepared, how far along it is. A client can then query it in place over HTTP range requests instead of downloading and unpacking it. Read-only: this never starts a conversion, so it is safe to poll - the viewer polls it roughly twice a second while one runs. Use POST to begin one.'
      operationId: getGtfsDatasetParquet
      tags:
      - parquet
      security:
      - Authentication: []
      responses:
        '200':
          description: The dataset's current state. Returned for every state including `absent`, which means no conversion has been requested yet rather than that anything is missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParquetDatasetState'
        '404':
          description: GTFS dataset not found. Note this does **not** cover a dataset whose Parquet has never been generated - that is `absent` with a 200.
        '500':
          description: Internal server error.
    post:
      summary: Start preparing the Parquet for a GTFS dataset
      description: 'Begin rendering this dataset as Parquet, if it has not been already. Idempotent, and safe to call against a conversion that is already running: that one is reported rather than duplicated, and a dataset is never converted more than once at a time. Send `force` to replace an existing set. Work happens in the background - poll the GET on this path until it reports `ready`.'
      operationId: generateGtfsDatasetParquet
      tags:
      - parquet
      security:
      - ApiKeyAuth: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ParquetGenerateRequest'
      responses:
        '202':
          description: Accepted. The body carries the state as it stands, in the same shape the GET returns; a caller that only needs to start the work can ignore it and poll instead.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParquetDatasetState'
        '404':
          description: GTFS dataset not found.
        '422':
          description: Invalid request body - `retention_days` outside 1..60, or not an integer.
        '500':
          description: Internal server error.
components:
  schemas:
    ParquetGenerateRequest:
      x-operation: true
      type: object
      description: Options for a Parquet generation request.
      properties:
        force:
          description: 'Regenerate even if the files already exist, replacing them. Has no effect on a conversion that is already running: that one is reported as-is rather than restarted.'
          type: boolean
          default: false
          example: false
        retention_days:
          description: How long the generated files should be kept, counted from when they are built and not extended by use. Omit it and the builder's own default of 30 days applies; that default deliberately lives in one place rather than being restated here. On that date the dataset reports `absent` again, so the next request rebuilds it. The files themselves are removed by the storage bucket's own lifecycle rule shortly afterwards, on its schedule rather than at a guaranteed moment.
          type: integer
          minimum: 1
          maximum: 60
          example: 7
    ParquetDatasetState:
      x-operation: true
      type: object
      description: 'Where a dataset''s Parquet rendering stands. Which fields are set depends on `status`: `base_url` for `ready`, the progress fields for `preparing`, `message` for `failed`, and nothing beyond the identifiers for `absent`. What the dataset contains - its tables, their row and column counts, and what each weighed before and after conversion - is read from `{base_url}/manifest.json`, which is the one place that answer lives. The progress fields are named as the GTFS Garage viewer names its own load reports, so a client can pass them straight through.'
      required:
      - status
      - feed_stable_id
      properties:
        status:
          description: '`absent` when no conversion has ever been requested - an ordinary starting state, not an error. `preparing` while one is queued or running, `ready` once the files are published, `failed` when the last attempt did not finish.'
          type: string
          enum:
          - absent
          - preparing
          - ready
          - failed
          example: preparing
        feed_stable_id:
          description: The stable ID of the feed the dataset belongs to.
          type: string
          example: mdb-1210
        dataset_stable_id:
          description: The stable ID of the dataset. When the request addressed a feed, this is the feed's latest dataset, resolved at request time.
          type:
          - string
          - 'null'
          example: mdb-1210-202402121801
        base_url:
          description: 'Public URL prefix the Parquet files are served from, without a trailing slash. `{base_url}/manifest.json` is the dataset''s description of itself - which tables exist, their row and column counts, and what each weighed before and after conversion - and each table is `{base_url}/{name}.parquet`. Null unless `status` is `ready`. The files are public and answer HTTP range requests; no query string is ever appended, so this can be used verbatim as a client''s base URL. This response deliberately does not repeat the table list: a reader given one skips the manifest, and with it the sizes it carries.'
          type:
          - string
          - 'null'
          format: url
          example: https://files.mobilitydatabase.org/mdb-1210/mdb-1210-202402121801/parquet
        phase:
          description: 'The step currently running, in the order they happen: `download` fetches the dataset archive, `extract` unpacks it, `convert` rewrites each table as Parquet, `upload` publishes the results, `summarise` records the manifest. Null unless `status` is `preparing`.'
          type:
          - string
          - 'null'
          enum:
          - start
          - download
          - upload
          - extract
          - convert
          - summarise
          - done
          - null
          example: convert
        done:
          description: 'Progress within the current phase: **bytes transferred** during `download`, and a count of files or tables otherwise. Null unless `status` is `preparing`.'
          type:
          - integer
          - 'null'
          format: int64
          example: 12
        total:
          description: The target `done` is counting towards, in the same unit, or 0 when it is not knowable in advance - a download whose response carries no Content-Length, for instance. Null unless `status` is `preparing`.
          type:
          - integer
          - 'null'
          format: int64
          example: 32
        detail:
          description: The file or table currently being worked on; empty when there is none. Null unless `status` is `preparing`.
          type:
          - string
          - 'null'
          example: stop_times
        message:
          description: Why the last attempt failed, in terms an operator can act on. Shown verbatim by the viewer, so it should name the actual cause. Null unless `status` is `failed`.
          type:
          - string
          - 'null'
          example: Conversion ran out of memory
        generated_at:
          description: When the current set of files finished generating. Null unless `status` is `ready`.
          type:
          - string
          - 'null'
          format: date-time
          example: '2026-09-16T14:22:31Z'
  parameters:
    feed_id_path_param:
      x-operation: true
      name: id
      in: path
      description: The feed ID of the requested feed.
      required: true
      schema:
        type: string
        example: mdb-1210
    dataset_id_path_param:
      x-operation: true
      name: id
      in: path
      description: The dataset ID of the requested GTFS dataset.
      required: true
      schema:
        type: string
        example: mdb-1210-202402121801
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: x-api-key
      in: header