PkgSeek Migration API
Cross-distribution package migration planning
Cross-distribution package migration planning
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/pkgseek-com:pkgseek-com-migration-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:
title: pkgseek Migration API
description: Open REST API over sourced cross-distro Linux package and CLI facts. Public fact reads and correction submission require no authentication; management review endpoints require a server-side bearer token. Rate-limited responses return 429 (Retry-After where applicable); rejected credentials return 403. Protected writes accept either an x-turnstile-token header (browser, human-verified) or a scoped pk_* bearer key (machines).
license:
name: MIT
identifier: MIT
version: 0.2.9
tags:
- name: Migration
description: Cross-distribution package migration planning
paths:
/v1/migrate:
post:
tags:
- Migration
operationId: migrate
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MigrationRequest'
required: true
responses:
'200':
description: Cross-distribution migration plan
content:
application/json:
schema:
$ref: '#/components/schemas/MigrationResult'
'400':
description: Invalid package list or distribution coordinate
summary: Migrate
x-summary-source: derived
/v1/upgrade-policy:
post:
tags:
- Migration
operationId: upgrade_policy
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpgradePolicyRequest'
required: true
responses:
'200':
description: Deterministic CI upgrade policy result
content:
application/json:
schema:
$ref: '#/components/schemas/UpgradePolicyResult'
security:
- turnstile: []
- machine_key: []
summary: Upgrade policy
x-summary-source: derived
/v1/upgrade-report:
get:
tags:
- Migration
operationId: upgrade_report
parameters:
- name: distro
in: query
description: Distribution id
required: true
schema:
type: string
- name: from
in: query
description: Indexed source release
required: true
schema:
type: string
- name: to
in: query
description: Indexed target release
required: true
schema:
type: string
- name: q
in: query
description: Optional package-name fragment
required: false
schema:
type: string
- name: change
in: query
description: all, changed, added, removed, version_changed, or unchanged
required: false
schema:
type: string
- name: limit
in: query
description: Page size, 1-100
required: false
schema:
type: integer
format: int64
- name: offset
in: query
description: Rows to skip, max 5000
required: false
schema:
type: integer
format: int64
responses:
'200':
description: Release-wide package, dependency, file and CVE differences
content:
application/json:
schema:
$ref: '#/components/schemas/UpgradeReport'
'400':
description: Invalid or unindexed release coordinate
summary: Upgrade report
x-summary-source: derived
/v1/upgrade-report/export:
get:
tags:
- Migration
operationId: upgrade_report_export
parameters:
- name: distro
in: query
required: true
schema:
type: string
- name: from
in: query
required: true
schema:
type: string
- name: to
in: query
required: true
schema:
type: string
- name: q
in: query
required: false
schema:
type: string
- name: change
in: query
required: false
schema:
type: string
- name: format
in: query
description: json, markdown, or csv
required: false
schema:
type: string
- name: limit
in: query
description: Export rows, 1-1000
required: false
schema:
type: integer
format: int64
- name: offset
in: query
description: Export offset, max 5000
required: false
schema:
type: integer
format: int64
responses:
'200':
description: Bounded, pageable upgrade report export
summary: Upgrade report export
x-summary-source: derived
components:
schemas:
UpgradeReport:
type: object
required:
- source
- target
- summary
- items
- filtered_total
- source_cve_scanned
- target_cve_scanned
properties:
filtered_total:
type: integer
format: int64
items:
type: array
items:
$ref: '#/components/schemas/UpgradeChange'
source:
$ref: '#/components/schemas/MigrationCoordinate'
source_cve_scanned:
type: boolean
summary:
$ref: '#/components/schemas/UpgradeSummary'
target:
$ref: '#/components/schemas/MigrationCoordinate'
target_cve_scanned:
type: boolean
MigrationRequest:
type: object
required:
- packages
- source_distro
- source_release
- target_distro
- target_release
properties:
packages:
type: array
items:
type: string
description: Package names from the source environment, in display order.
source_distro:
type: string
source_release:
type: string
target_distro:
type: string
target_release:
type: string
MigrationPackage:
type: object
description: One representative package build at either side of a migration.
required:
- name
- version
- summary
- repo
- source
- release
properties:
name:
type: string
release:
type: string
repo:
type: string
source:
type: string
summary:
type: string
version:
type: string
UpgradePolicyRequest:
type: object
required:
- distro
- source_release
- target_release
- packages
properties:
allow_removed:
type: array
items:
type: string
deny_downgraded:
type: boolean
deny_new_cves:
type: boolean
deny_removed:
type: boolean
deny_removed_dependencies:
type: boolean
deny_removed_services:
type: boolean
distro:
type: string
packages:
type: array
items:
type: string
source_release:
type: string
target_release:
type: string
MigrationItem:
type: object
description: 'Migration status: `exact`, `provided`, `suggested`, `missing`, or
`source_missing`.'
required:
- requested
- status
- candidates
properties:
candidates:
type: array
items:
$ref: '#/components/schemas/MigrationCandidate'
requested:
type: string
source_package:
oneOf:
- type: 'null'
- $ref: '#/components/schemas/MigrationPackage'
status:
type: string
target_package:
oneOf:
- type: 'null'
- $ref: '#/components/schemas/MigrationPackage'
UpgradePolicyResult:
type: object
required:
- passed
- checked_packages
- violations
- changes
properties:
changes:
type: array
items:
$ref: '#/components/schemas/UpgradeChange'
checked_packages:
type: integer
format: int64
passed:
type: boolean
violations:
type: array
items:
$ref: '#/components/schemas/UpgradePolicyViolation'
UpgradePolicyViolation:
type: object
required:
- rule
- package
- detail
properties:
detail:
type: string
package:
type: string
rule:
type: string
MigrationCandidate:
type: object
description: 'A review-only replacement candidate inferred from an ambiguous `provides`
match or shared executable/header/pkg-config paths. Never installed automatically.'
required:
- package
- reason
- shared_files
- shared_file_count
properties:
package:
$ref: '#/components/schemas/MigrationPackage'
reason:
type: string
description: '`provides` for an ambiguous virtual provider, or `files` for installed-file overlap.'
shared_file_count:
type: integer
format: int64
shared_files:
type: array
items:
type: string
MigrationResult:
type: object
required:
- source
- target
- items
- exact
- provided
- suggested
- missing
- source_missing
- file_overlap_truncated
properties:
exact:
type: integer
format: int64
file_overlap_truncated:
type: boolean
description: 'The file-overlap expansion hit a decode-byte, provider-count or
wall-clock budget: `suggested` candidates may be incomplete.'
install_command:
type:
- string
- 'null'
items:
type: array
items:
$ref: '#/components/schemas/MigrationItem'
missing:
type: integer
format: int64
provided:
type: integer
format: int64
source:
$ref: '#/components/schemas/MigrationCoordinate'
source_missing:
type: integer
format: int64
suggested:
type: integer
format: int64
target:
$ref: '#/components/schemas/MigrationCoordinate'
UpgradeSummary:
type: object
required:
- source_packages
- target_packages
- added
- removed
- version_changed
- unchanged
properties:
added:
type: integer
format: int64
removed:
type: integer
format: int64
source_packages:
type: integer
format: int64
target_packages:
type: integer
format: int64
unchanged:
type: integer
format: int64
version_changed:
type: integer
format: int64
MigrationCoordinate:
type: object
required:
- distro
- release
properties:
distro:
type: string
release:
type: string
UpgradeChange:
type: object
description: 'One representative package-level difference between two releases of the
same distribution. Evidence arrays are deliberately bounded by the query.'
required:
- name
- change
- dependencies_added
- dependencies_removed
- config_files_added
- config_files_removed
- services_added
- services_removed
- cves_introduced
- cves_resolved
- replacement_candidates
properties:
change:
type: string
description: '`added`, `removed`, `upgraded`, `downgraded`, `changed`, or `unchanged`.'
config_files_added:
type: array
items:
type: string
config_files_removed:
type: array
items:
type: string
cves_introduced:
type: array
items:
type: string
cves_resolved:
type: array
items:
type: string
dependencies_added:
type: array
items:
type: string
dependencies_removed:
type: array
items:
type: string
name:
type: string
replacement_candidates:
type: array
items:
type: string
description: 'Target packages declaring `Provides: <removed-name>`.'
services_added:
type: array
items:
type: string
services_removed:
type: array
items:
type: string
source_package:
oneOf:
- type: 'null'
- $ref: '#/components/schemas/MigrationPackage'
target_package:
oneOf:
- type: 'null'
- $ref: '#/components/schemas/MigrationPackage'
securitySchemes:
admin_token:
type: http
scheme: bearer
machine_key:
type: http
scheme: bearer
turnstile:
type: apiKey
in: header
name: x-turnstile-token
watch_token:
type: apiKey
in: header
name: x-watch-token