MobilityData Licenses API
Licenses of the Mobility Database
Licenses of the Mobility Database
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/mobilitydata:mobilitydata-licenses-api"
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.
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: 3.2.0
info:
version: 1.0.0
title: Mobility Database Catalog Operations Licenses 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: Licenses
description: Licenses of the Mobility Database
paths:
/v1/operations/licenses:
get:
description: Get the list of all licenses in the DB.
tags:
- Licenses
operationId: getLicenses
parameters:
- name: offset
in: query
description: Number of items to skip for pagination. Defined as string rather than integer due to https://github.com/OpenAPITools/openapi-generator/issues/21905
required: false
schema:
type: string
default: '0'
- name: limit
in: query
description: Maximum number of items to return. Defined as string rather than integer due to https://github.com/OpenAPITools/openapi-generator/issues/21905
required: false
schema:
type: string
default: '50'
example: '100'
- $ref: '#/components/parameters/search_text_query_param_license'
- $ref: '#/components/parameters/license_is_spdx_query_param'
security:
- Authentication: []
responses:
200:
description: Successful pull of the licenses info.
content:
application/json:
schema:
$ref: '#/components/schemas/Licenses'
summary: Get licenses
x-summary-source: derived
/v1/operations/licenses:match:
post:
description: Get the list of matching licenses based on the provided license URL
tags:
- Licenses
operationId: getMatchingLicenses
security:
- ApiKeyAuth: []
requestBody:
description: Payload containing the license URL to match against the database.
required: true
content:
application/json:
schema:
type: object
required:
- license_url
properties:
license_url:
description: The license URL to resolve and match against the database.
type: string
format: url
example: https://creativecommons.org/licenses/by/4.0/deed.nl
responses:
'200':
description: The list of matching licenses if any.
content:
application/json:
schema:
$ref: '#/components/schemas/MatchingLicenses'
summary: Get matching licenses
x-summary-source: derived
/v1/operations/licenses:propagate_match:
post:
description: Propagate a license ID to all feeds sharing the same normalized license URL. Use dry_run=true (the default) to preview which feeds would be updated without persisting any changes.
tags:
- Licenses
operationId: propagateMatchLicense
security:
- ApiKeyAuth: []
requestBody:
description: Payload containing the license ID to propagate and the license URL used for matching.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PropagateLicenseRequest'
responses:
'200':
description: The result of the propagation, including the list of affected feeds.
content:
application/json:
schema:
$ref: '#/components/schemas/PropagateLicenseResponse'
'400':
description: Bad request (e.g. unknown license_id).
'422':
description: Validation error (e.g. missing required fields).
'500':
description: Internal server error.
summary: Propagate match license
x-summary-source: derived
/v1/operations/licenses/{id}:
parameters:
- $ref: '#/components/parameters/license_id_path_param'
get:
description: Get the specified license from the Mobility Database, including the license rules.
tags:
- Licenses
operationId: getLicense
security:
- Authentication: []
responses:
200:
description: 'Successful pull of the license info for the provided ID.
'
content:
application/json:
schema:
$ref: '#/components/schemas/LicenseWithRules'
summary: Get license
x-summary-source: derived
components:
schemas:
LicenseRule:
type: object
properties:
name:
description: Name of the rule.
type: string
example: commercial-use
label:
description: Label of the rule.
type: string
example: Commercial use
description:
description: Description of the rule.
type: string
example: This license allows the software or data to be used for commercial purposes.
type:
description: Type of rule.
type: string
enum:
- permission
- condition
- limitation
LicenseBase:
type: object
properties:
id:
description: Unique identifier for the license.
type: string
example: 0BSD
type:
type: string
description: The type of license.
example: standard
is_spdx:
type: boolean
description: true if license id spdx.
name:
type: string
description: The user facing name of the license.
example: BSD Zero Clause License
url:
description: A URL where to find the license for the feed.
type: string
format: url
example: https://www.ladottransit.com/dla.html
description:
type: string
description: The description of the license.
example: This is the 0BSD license.
created_at:
description: The date and time the license was added to the database, in ISO 8601 date-time format.
type: string
example: 2023-07-10 22:06:00+00:00
format: date-time
updated_at:
description: The last date and time the license was updated in the database, in ISO 8601 date-time format.
type: string
example: 2023-07-10 22:06:00+00:00
format: date-time
license_tags:
description: List of taxonomy tags associated with the license.
type: array
items:
type: string
example:
- family:ODC
- license:open-data-commons
Licenses:
type: array
items:
$ref: '#/components/schemas/LicenseBase'
LicenseWithRules:
allOf:
- $ref: '#/components/schemas/LicenseBase'
- type: object
properties:
license_rules:
type: array
items:
$ref: '#/components/schemas/LicenseRule'
MatchingLicense:
type: object
description: Matching a license
properties:
license_id:
description: Unique identifier for the license (typically SPDX ID)
type: string
example: CC-BY-4.0
license_url:
description: Original license URL provided for resolution
type: string
example: https://creativecommons.org/licenses/by/4.0/
normalized_url:
description: URL after normalization (lowercased, trimmed, protocol removed)
type: string
example: creativecommons.org/licenses/by/4.0
match_type:
description: "Type of match performed. One of:\n - 'exact': Direct match found in database\n - 'heuristic': Matched via pattern-based rules (CC resolver, common patterns)\n - 'fuzzy': Similarity-based match against same-host licenses\n"
type: string
example: heuristic
confidence:
description: "Match confidence score (0.0-1.0), examples:\n - 1.0: Exact match\n - 0.99: Creative Commons resolved\n - 0.95: Pattern heuristic match\n - 0.0-1.0: Fuzzy match score based on string similarity\n"
type: number
example: 0.99
spdx_id:
description: SPDX License Identifier if matched (e.g., 'CC-BY-4.0', 'MIT')
type: string
example: CC-BY-4.0
matched_name:
description: Human-readable name of the matched license
type: string
example: Creative Commons Attribution 4.0 International
matched_catalog_url:
description: Canonical URL from the license catalog/database
type: string
example: https://creativecommons.org/licenses/by/4.0/legalcode
matched_source:
description: "Source of the match. Examples:\n - 'db.license': Exact match from database\n - 'cc-resolver': Creative Commons license resolver\n - 'pattern-heuristics': Generic pattern matching\n"
type: string
example: cc-resolver
notes:
description: Additional context about the match (e.g., version normalization, locale detection)
type: string
example: Detected locale/jurisdiction port 'nl'. SPDX does not list ported CC licenses; using canonical ID.
regional_id:
description: "Regional/jurisdictional variant identifier for ported licenses\n (e.g., 'CC-BY-2.1-jp' for Japan-ported Creative Commons)\n"
type: string
example: CC-BY-4.0-nl
example:
license_id: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/deed.nl
normalized_url: creativecommons.org/licenses/by/4.0
match_type: heuristic
confidence: 0.99
spdx_id: CC-BY-4.0
matched_name: Creative Commons Attribution 4.0 International
matched_catalog_url: https://creativecommons.org/licenses/by/4.0/legalcode
matched_source: cc-resolver
notes: Detected locale/jurisdiction port 'nl'. SPDX does not list ported CC licenses; using canonical ID.
regional_id: CC-BY-4.0-nl
PropagateLicenseResponse:
x-operation: true
type: object
description: Result of a license propagation operation.
properties:
license_id:
description: The license ID that was propagated.
type: string
example: CC-BY-4.0
license_url:
description: The original license URL provided for matching.
type: string
example: https://creativecommons.org/licenses/by/4.0/deed.nl
normalized_license_url:
description: The normalized form of the license URL used for matching.
type: string
example: creativecommons.org/licenses/by/4.0/deed.nl
dry_run:
description: Whether this was a dry run (no changes persisted).
type: boolean
override:
description: Whether feeds with an existing license_id were also updated.
type: boolean
total_feeds_with_same_url:
description: Total number of feeds sharing the same normalized license URL (regardless of filter).
type: integer
affected_feeds_count:
description: Number of feeds that were (or would be) updated.
type: integer
affected_feeds:
description: List of feeds that were (or would be) updated.
type: array
items:
$ref: '#/components/schemas/PropagateLicenseAffectedFeed'
PropagateLicenseRequest:
x-operation: true
type: object
description: Request payload for the propagate_match license endpoint.
required:
- license_id
- license_url
properties:
license_id:
description: The license ID to propagate to matching feeds.
type: string
example: CC-BY-4.0
license_url:
description: The license URL whose normalized form is used to find matching feeds.
type: string
format: url
example: https://creativecommons.org/licenses/by/4.0/deed.nl
dry_run:
description: 'When true (default), compute and return the affected feeds without persisting any changes. Set to false to apply the changes.
'
type: boolean
default: true
override:
description: 'When false (default), only feeds whose license_id is currently unset (null) are updated. When true, feeds that already have a license_id are also updated.
'
type: boolean
default: false
MatchingLicenses:
description: List of MatchingLicense
type: array
items:
$ref: '#/components/schemas/MatchingLicense'
PropagateLicenseAffectedFeed:
x-operation: true
type: object
description: A feed affected by a license propagation operation.
properties:
feed_id:
description: The stable ID of the affected feed.
type: string
example: mdb-42
previous_license_id:
description: The license ID the feed had before propagation (null if none).
type:
- string
- 'null'
example: null
data_type:
description: The data type of the feed.
type: string
enum:
- gtfs
- gtfs_rt
- gbfs
example: gtfs
parameters:
license_is_spdx_query_param:
x-operation: true
name: is_spdx
in: query
description: True if the license ID is SPDX.
required: false
schema:
type: boolean
example: true
license_id_path_param:
x-operation: true
name: id
in: path
description: The license ID of the requested license.
required: true
schema:
type: string
example: 0BSD
search_text_query_param_license:
x-operation: true
name: search_query
in: query
description: General search query to match against license name and ID
required: false
schema:
type: string
securitySchemes:
ApiKeyAuth:
type: apiKey
name: x-api-key
in: header