Apify · Capability

Apify API — Key-Value Stores

Apify API — Key-Value Stores. 3 operations. Lead operation: Apify List Key-Value Stores. Self-contained Naftiko capability covering one Apify business surface.

Run with Naftiko ApifyKey-Value Stores

What You Can Do

GET
Listkeyvaluestores — Apify List Key-Value Stores
/v1/key-value-stores
GET
Getrecord — Apify Get Record
/v1/key-value-stores/{storeid}/records/{recordkey}
PUT
Setrecord — Apify Set Record
/v1/key-value-stores/{storeid}/records/{recordkey}

MCP Tools

apify-list-key-value-stores

Apify List Key-Value Stores

read-only idempotent
apify-get-record

Apify Get Record

read-only idempotent
apify-set-record

Apify Set Record

idempotent

Capability Spec

apify-key-value-stores.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apify API — Key-Value Stores
  description: 'Apify API — Key-Value Stores. 3 operations. Lead operation: Apify List Key-Value Stores. Self-contained Naftiko
    capability covering one Apify business surface.'
  tags:
  - Apify
  - Key-Value Stores
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APIFY_API_KEY: APIFY_API_KEY
capability:
  consumes:
  - type: http
    namespace: apify-key-value-stores
    baseUri: https://api.apify.com/v2
    description: Apify API — Key-Value Stores business capability. Self-contained, no shared references.
    resources:
    - name: key-value-stores
      path: /key-value-stores
      operations:
      - name: listkeyvaluestores
        method: GET
        description: Apify List Key-Value Stores
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: key-value-stores-storeId-records-recordKey
      path: /key-value-stores/{storeId}/records/{recordKey}
      operations:
      - name: getrecord
        method: GET
        description: Apify Get Record
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: storeId
          in: path
          type: string
          description: Key-value store ID.
          required: true
        - name: recordKey
          in: path
          type: string
          description: Record key.
          required: true
      - name: setrecord
        method: PUT
        description: Apify Set Record
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: storeId
          in: path
          type: string
          description: Key-value store ID.
          required: true
        - name: recordKey
          in: path
          type: string
          description: Record key.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.APIFY_API_KEY}}'
  exposes:
  - type: rest
    namespace: apify-key-value-stores-rest
    port: 8080
    description: REST adapter for Apify API — Key-Value Stores. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/key-value-stores
      name: key-value-stores
      description: REST surface for key-value-stores.
      operations:
      - method: GET
        name: listkeyvaluestores
        description: Apify List Key-Value Stores
        call: apify-key-value-stores.listkeyvaluestores
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/key-value-stores/{storeid}/records/{recordkey}
      name: key-value-stores-storeid-records-recordkey
      description: REST surface for key-value-stores-storeId-records-recordKey.
      operations:
      - method: GET
        name: getrecord
        description: Apify Get Record
        call: apify-key-value-stores.getrecord
        with:
          storeId: rest.storeId
          recordKey: rest.recordKey
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setrecord
        description: Apify Set Record
        call: apify-key-value-stores.setrecord
        with:
          storeId: rest.storeId
          recordKey: rest.recordKey
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: apify-key-value-stores-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apify API — Key-Value Stores. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: apify-list-key-value-stores
      description: Apify List Key-Value Stores
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apify-key-value-stores.listkeyvaluestores
      outputParameters:
      - type: object
        mapping: $.
    - name: apify-get-record
      description: Apify Get Record
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apify-key-value-stores.getrecord
      with:
        storeId: tools.storeId
        recordKey: tools.recordKey
      outputParameters:
      - type: object
        mapping: $.
    - name: apify-set-record
      description: Apify Set Record
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: apify-key-value-stores.setrecord
      with:
        storeId: tools.storeId
        recordKey: tools.recordKey
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.