MobilityData Config API

Per-feed configuration overrides. Keys are registered in a catalog by database migrations, because each one is read by code; these endpoints only read the catalog and set, replace or remove a feed's override of a registered key. A feed without an override uses the key's default value.

GitHub OpenAPI

Operations 4

GET /v1/operations/config/keys List the registered config keys #
GET /v1/operations/feeds/{id}/config Get a feed's configuration #
PUT /v1/operations/feeds/{id}/config/{namespace}/{key} Set a feed's override of a config key #
DELETE /v1/operations/feeds/{id}/config/{namespace}/{key} Remove a feed's override of a config key #

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-config-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-config-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: Mobility Database Catalog Operations Config 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: Config
  description: Per-feed configuration overrides. Keys are registered in a catalog by database migrations, because each one is read by code; these endpoints only read the catalog and set, replace or remove a feed's override of a registered key. A feed without an override uses the key's default value.
paths:
  /v1/operations/config/keys:
    get:
      summary: List the registered config keys
      description: 'Returns every key in the config catalog with its description, default value and the JSON Schema its values must match. Read-only: keys are registered by database migrations, since a key has no effect until code reads it.'
      operationId: listConfigKeys
      tags:
      - Config
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: The registered config keys, ordered by namespace and key.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ConfigKey'
        '401':
          description: Unauthorized.
  /v1/operations/feeds/{id}/config:
    parameters:
    - $ref: '#/components/parameters/feed_id_path_param'
    get:
      summary: Get a feed's configuration
      description: 'Returns one entry per registered config key: the feed''s override if it has one, the key''s default value, and the effective value the feed uses. Works for any feed type.'
      operationId: getFeedConfig
      tags:
      - Config
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: The feed's configuration, ordered by namespace and key.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FeedConfigEntry'
        '401':
          description: Unauthorized.
        '404':
          description: Feed not found.
  /v1/operations/feeds/{id}/config/{namespace}/{key}:
    parameters:
    - $ref: '#/components/parameters/feed_id_path_param'
    - $ref: '#/components/parameters/config_namespace_path_param'
    - $ref: '#/components/parameters/config_key_path_param'
    put:
      summary: Set a feed's override of a config key
      description: Creates the feed's override of a registered key, or replaces it. The value must match the key's `value_schema` when it has one. Send `expected_updated_at` with the `updated_at` you last read to refuse the write if someone changed the override since. The change applies the next time code reads the key, such as the next download for `feed_download/http_headers`.
      operationId: setFeedConfigValue
      tags:
      - Config
      security:
      - ApiKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetFeedConfigValueRequest'
      responses:
        '200':
          description: The override was replaced.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedConfigEntry'
        '201':
          description: The override was created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedConfigEntry'
        '401':
          description: Unauthorized.
        '404':
          description: Feed not found, or the key is not registered.
        '409':
          description: '`expected_updated_at` does not match the current override.'
        '422':
          description: The value is null or does not match the key's `value_schema`.
    delete:
      summary: Remove a feed's override of a config key
      description: Removes the feed's override so it falls back to the key's default value. Send `expected_updated_at` to refuse the removal if someone changed the override since you read it.
      operationId: deleteFeedConfigValue
      tags:
      - Config
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/config_expected_updated_at_param'
      responses:
        '204':
          description: The override was removed.
        '401':
          description: Unauthorized.
        '404':
          description: Feed not found, the key is not registered, or the feed has no override of it.
        '409':
          description: '`expected_updated_at` does not match the current override.'
components:
  schemas:
    ConfigKey:
      x-operation: true
      type: object
      required:
      - namespace
      - key
      properties:
        namespace:
          type: string
          example: feed_download
        key:
          type: string
          example: http_headers
        description:
          type:
          - string
          - 'null'
        default_value:
          $ref: '#/components/schemas/ConfigValue'
          description: Value used by feeds without an override. Null when the key has no default and the reading code decides.
        value_schema:
          type:
          - object
          - 'null'
          additionalProperties: true
          description: JSON Schema that override values must match. Null when any JSON value is accepted.
        updated_at:
          type:
          - string
          - 'null'
          format: date-time
    SetFeedConfigValueRequest:
      x-operation: true
      type: object
      required:
      - value
      properties:
        value:
          $ref: '#/components/schemas/ConfigValue'
        expected_updated_at:
          type:
          - string
          - 'null'
          format: date-time
          description: 'The override''s `updated_at` as last read. When given, the write is refused with 409 if the override has changed or been removed since. Omit to write unconditionally.

            '
    ConfigValue:
      x-operation: true
      description: 'A config value: any JSON value except null. Its shape is defined by the key''s `value_schema`.

        '
    FeedConfigEntry:
      x-operation: true
      type: object
      required:
      - namespace
      - key
      - source
      properties:
        namespace:
          type: string
          example: feed_download
        key:
          type: string
          example: http_headers
        description:
          type:
          - string
          - 'null'
        value_schema:
          type:
          - object
          - 'null'
          additionalProperties: true
          description: JSON Schema that override values must match. Null when any JSON value is accepted.
        default_value:
          $ref: '#/components/schemas/ConfigValue'
        override:
          $ref: '#/components/schemas/ConfigValue'
          description: The feed's own value, or null when it has none.
        effective_value:
          $ref: '#/components/schemas/ConfigValue'
          description: 'The value the feed uses: the override, else the default. Null when neither exists; the code reading the key then applies its own fallback (for `feed_download/http_headers`, a default User-Agent and Referer).

            '
        source:
          type: string
          enum:
          - override
          - default
          - none
          description: Where `effective_value` comes from.
        updated_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When the override was last written. Pass it back as `expected_updated_at` to detect concurrent changes.
        updated_by:
          type:
          - string
          - 'null'
          description: Who last wrote the override through this API. Null for overrides written by migrations or by code.
  parameters:
    config_key_path_param:
      x-operation: true
      name: key
      in: path
      description: Name of the config key within its namespace.
      required: true
      schema:
        type: string
        example: http_headers
    config_expected_updated_at_param:
      x-operation: true
      name: expected_updated_at
      in: query
      description: 'The override''s `updated_at` as last read. When given, the removal is refused with 409 if the override has changed since.

        '
      required: false
      schema:
        type: string
        format: date-time
    config_namespace_path_param:
      x-operation: true
      name: namespace
      in: path
      description: Namespace of the config key.
      required: true
      schema:
        type: string
        example: feed_download
    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
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: x-api-key
      in: header