> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spreadjam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Flattened metric rows

> Chart-ready rows for one of visibility, competitors, citations, platforms, or topics.



## OpenAPI

````yaml https://api.spreadjam.com/openapi.json get /v1/analytics/metrics
openapi: 3.0.0
info:
  title: SpreadJam API
  version: 1.0.0
servers: []
security: []
tags:
  - name: Meta
    description: Identity and metadata about the authenticated key.
  - name: Keywords
    description: Keyword and topic visibility rankings.
  - name: API keys
    description: Manage the workspace's API keys.
  - name: Analytics
    description: AI-visibility analytics for the workspace.
  - name: Brand
    description: The workspace's brand profile and competitors.
  - name: Prompts
    description: Tracked GEO prompts and their cap state.
paths:
  /v1/analytics/metrics:
    get:
      tags:
        - Analytics
      summary: Flattened metric rows
      description: >-
        Chart-ready rows for one of visibility, competitors, citations,
        platforms, or topics.
      parameters:
        - schema:
            type: string
            enum:
              - visibility
              - competitors
              - citations
              - platforms
              - topics
            description: The metric family to flatten into chart-ready rows.
            example: visibility
          required: true
          description: The metric family to flatten into chart-ready rows.
          name: metric
          in: query
        - schema:
            type: number
            default: 30
            description: 'The analytics window in days: 7, 30, or 90.'
            example: 30
          required: false
          description: 'The analytics window in days: 7, 30, or 90.'
          name: rangeDays
          in: query
      responses:
        '200':
          description: The flattened metric rows.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetricRows'
      security:
        - bearerAuth: []
components:
  schemas:
    MetricRows:
      type: object
      description: The flattened, chart-ready rows for one metric family.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A workspace API key issued in Settings → Developer, sent as `Bearer
        sk_…`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.