Import.io · Capability

Import.io API — Crawlrun

Import.io API — Crawlrun. 3 operations. Lead operation: List crawl runs. Self-contained Naftiko capability covering one Import Io business surface.

Run with Naftiko Import IoCrawlrun

What You Can Do

GET
Listcrawlruns — List crawl runs
/v1/crawlruns
GET
Getcrawlrun — Get crawl run
/v1/crawlruns/{crawlrunid}
GET
Getcrawlrunfile — Get crawl run results file
/v1/crawlruns/{crawlrunid}/{filetype}

MCP Tools

list-crawl-runs

List crawl runs

read-only idempotent
get-crawl-run

Get crawl run

read-only idempotent
get-crawl-run-results-file

Get crawl run results file

read-only idempotent

Capability Spec

import-io-crawlrun.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Import.io API — Crawlrun
  description: 'Import.io API — Crawlrun. 3 operations. Lead operation: List crawl runs. Self-contained Naftiko capability
    covering one Import Io business surface.'
  tags:
  - Import Io
  - Crawlrun
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    IMPORT_IO_API_KEY: IMPORT_IO_API_KEY
capability:
  consumes:
  - type: http
    namespace: import-io-crawlrun
    baseUri: https://api.import.io
    description: Import.io API — Crawlrun business capability. Self-contained, no shared references.
    resources:
    - name: crawlruns
      path: /crawlruns/
      operations:
      - name: listcrawlruns
        method: GET
        description: List crawl runs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: crawlruns-crawlrunId
      path: /crawlruns/{crawlrunId}
      operations:
      - name: getcrawlrun
        method: GET
        description: Get crawl run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: crawlruns-crawlrunId-fileType
      path: /crawlruns/{crawlrunId}/{fileType}
      operations:
      - name: getcrawlrunfile
        method: GET
        description: Get crawl run results file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fileType
          in: path
          type: string
          description: The file type to download.
          required: true
    authentication:
      type: apikey
      key: _apikey
      value: '{{env.IMPORT_IO_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: import-io-crawlrun-rest
    port: 8080
    description: REST adapter for Import.io API — Crawlrun. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/crawlruns
      name: crawlruns
      description: REST surface for crawlruns.
      operations:
      - method: GET
        name: listcrawlruns
        description: List crawl runs
        call: import-io-crawlrun.listcrawlruns
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/crawlruns/{crawlrunid}
      name: crawlruns-crawlrunid
      description: REST surface for crawlruns-crawlrunId.
      operations:
      - method: GET
        name: getcrawlrun
        description: Get crawl run
        call: import-io-crawlrun.getcrawlrun
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/crawlruns/{crawlrunid}/{filetype}
      name: crawlruns-crawlrunid-filetype
      description: REST surface for crawlruns-crawlrunId-fileType.
      operations:
      - method: GET
        name: getcrawlrunfile
        description: Get crawl run results file
        call: import-io-crawlrun.getcrawlrunfile
        with:
          fileType: rest.fileType
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: import-io-crawlrun-mcp
    port: 9090
    transport: http
    description: MCP adapter for Import.io API — Crawlrun. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-crawl-runs
      description: List crawl runs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: import-io-crawlrun.listcrawlruns
      outputParameters:
      - type: object
        mapping: $.
    - name: get-crawl-run
      description: Get crawl run
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: import-io-crawlrun.getcrawlrun
      outputParameters:
      - type: object
        mapping: $.
    - name: get-crawl-run-results-file
      description: Get crawl run results file
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: import-io-crawlrun.getcrawlrunfile
      with:
        fileType: tools.fileType
      outputParameters:
      - type: object
        mapping: $.