Shopper Approved · Capability

Shopper Approved API — Statistics

Shopper Approved API — Statistics. 1 operations. Lead operation: Get Site Statistics. Self-contained Naftiko capability covering one Shopper Approved business surface.

Run with Naftiko Shopper ApprovedStatistics

What You Can Do

GET
Getsitestats — Get Site Statistics
/v1/aggregates/{site-id}

MCP Tools

get-site-statistics

Get Site Statistics

read-only idempotent

Capability Spec

shopper-approved-statistics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Shopper Approved API — Statistics
  description: 'Shopper Approved API — Statistics. 1 operations. Lead operation: Get Site Statistics. Self-contained Naftiko
    capability covering one Shopper Approved business surface.'
  tags:
  - Shopper Approved
  - Statistics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SHOPPER_APPROVED_API_KEY: SHOPPER_APPROVED_API_KEY
capability:
  consumes:
  - type: http
    namespace: shopper-approved-statistics
    baseUri: https://api.shopperapproved.com
    description: Shopper Approved API — Statistics business capability. Self-contained, no shared references.
    resources:
    - name: aggregates-site_id
      path: /aggregates/{site_id}
      operations:
      - name: getsitestats
        method: GET
        description: Get Site Statistics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: site_id
          in: path
          type: string
          description: Your Shopper Approved site ID
          required: true
        - name: token
          in: query
          type: string
          description: Your Shopper Approved API token
          required: true
    authentication:
      type: apikey
      key: token
      value: '{{env.SHOPPER_APPROVED_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: shopper-approved-statistics-rest
    port: 8080
    description: REST adapter for Shopper Approved API — Statistics. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/aggregates/{site-id}
      name: aggregates-site-id
      description: REST surface for aggregates-site_id.
      operations:
      - method: GET
        name: getsitestats
        description: Get Site Statistics
        call: shopper-approved-statistics.getsitestats
        with:
          site_id: rest.site_id
          token: rest.token
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: shopper-approved-statistics-mcp
    port: 9090
    transport: http
    description: MCP adapter for Shopper Approved API — Statistics. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-site-statistics
      description: Get Site Statistics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: shopper-approved-statistics.getsitestats
      with:
        site_id: tools.site_id
        token: tools.token
      outputParameters:
      - type: object
        mapping: $.