PkgSeek Files API

Reverse file lookup (path → package)

GitHub OpenAPI

Operations 1

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/pkgseek-com:pkgseek-com-files-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

pkgseek-com-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: pkgseek Files 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: Files
  description: Reverse file lookup (path → package)
paths:
  /v1/files:
    get:
      tags:
      - Files
      operationId: file_search
      parameters:
      - name: q
        in: query
        description: File name prefix query. Plain names need at least 4 characters; path forms need at least 8 non-slash characters with at least 2 in the final segment; directory-browsing forms (trailing slash) are permanently refused with 400
        required: false
        schema:
          type: string
      - name: distro
        in: query
        description: Restrict to a distro id before limiting matching files
        required: false
        schema:
          type: string
      - name: release
        in: query
        required: false
        schema:
          type: string
      - name: source
        in: query
        required: false
        schema:
          type: string
      - name: repo
        in: query
        required: false
        schema:
          type: string
      - name: arch
        in: query
        required: false
        schema:
          type: string
      - name: catalog_revision
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Packages shipping a matching file
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FileHit'
      summary: File search
      x-summary-source: derived
components:
  schemas:
    ScopeCoverage:
      type: object
      required:
      - state
      - reason
      properties:
        generation:
          type:
          - string
          - 'null'
        observed_at:
          type:
          - string
          - 'null'
        reason:
          type: string
        state:
          type: string
          description: Legacy index timestamps cannot prove a complete import generation.
    PackageScope:
      type: object
      description: An explicit ordinary-repository request uses one exact release snapshot.
      required:
      - distro
      - release
      - source
      - arch
      properties:
        arch:
          type: string
        distro:
          type: string
        release:
          type: string
        repo:
          type:
          - string
          - 'null'
        source:
          type: string
      additionalProperties: false
    FileHit:
      type: object
      required:
      - path
      - package
      - distro
      - source
      - release
      - repo
      - version
      properties:
        arch:
          type:
          - string
          - 'null'
        distro:
          type: string
        package:
          type: string
        path:
          type: string
        release:
          type: string
        repo:
          type: string
        resolution:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/PackageResolution'
        source:
          type: string
        version:
          type: string
    PackageResolution:
      type: object
      required:
      - requested
      - resolved
      - match_type
      - selection
      - catalog_revision
      - policy
      - coverage
      - warnings
      properties:
        catalog_revision:
          type: string
        coverage:
          $ref: '#/components/schemas/ScopeCoverage'
        match_type:
          type: string
        policy:
          type: string
        requested:
          $ref: '#/components/schemas/PackageScope'
        resolved:
          $ref: '#/components/schemas/PackageScope'
        selection:
          type: string
        warnings:
          type: array
          items:
            type: string
  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