Facebook · Capability

Facebook Instagram API — Insights

Facebook Instagram API — Insights. 1 operations. Lead operation: Facebook Get Instagram Insights. Self-contained Naftiko capability covering one Facebook business surface.

Run with Naftiko FacebookInsights

What You Can Do

GET
Getinstagraminsights — Facebook Get Instagram Insights
/v1/{ig-user-id}/insights

MCP Tools

facebook-get-instagram-insights

Facebook Get Instagram Insights

read-only idempotent

Capability Spec

instagram-insights.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Facebook Instagram API — Insights
  description: 'Facebook Instagram API — Insights. 1 operations. Lead operation: Facebook Get Instagram Insights. Self-contained
    Naftiko capability covering one Facebook business surface.'
  tags:
  - Facebook
  - Insights
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FACEBOOK_API_KEY: FACEBOOK_API_KEY
capability:
  consumes:
  - type: http
    namespace: instagram-insights
    baseUri: https://graph.facebook.com/v21.0
    description: Facebook Instagram API — Insights business capability. Self-contained, no shared references.
    resources:
    - name: ig-user-id-insights
      path: /{ig-user-id}/insights
      operations:
      - name: getinstagraminsights
        method: GET
        description: Facebook Get Instagram Insights
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ig-user-id
          in: path
          type: string
          description: The Instagram user ID.
          required: true
        - name: metric
          in: query
          type: string
          description: Comma-separated list of metrics.
          required: true
        - name: period
          in: query
          type: string
          description: Aggregation period.
          required: true
    authentication:
      type: bearer
      token: '{{env.FACEBOOK_API_KEY}}'
  exposes:
  - type: rest
    namespace: instagram-insights-rest
    port: 8080
    description: REST adapter for Facebook Instagram API — Insights. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/{ig-user-id}/insights
      name: ig-user-id-insights
      description: REST surface for ig-user-id-insights.
      operations:
      - method: GET
        name: getinstagraminsights
        description: Facebook Get Instagram Insights
        call: instagram-insights.getinstagraminsights
        with:
          ig-user-id: rest.ig-user-id
          metric: rest.metric
          period: rest.period
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: instagram-insights-mcp
    port: 9090
    transport: http
    description: MCP adapter for Facebook Instagram API — Insights. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: facebook-get-instagram-insights
      description: Facebook Get Instagram Insights
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: instagram-insights.getinstagraminsights
      with:
        ig-user-id: tools.ig-user-id
        metric: tools.metric
        period: tools.period
      outputParameters:
      - type: object
        mapping: $.