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

# Sentiment Indicator

> Retrieve sentiment indicators for `/{metric}/sentiment`. Returns market sentiment metrics and signals.



## OpenAPI

````yaml /api-reference/openapi.json get /{metric}/sentiment
openapi: 3.1.1
info:
  title: Alphractal API
  version: 0.3.0
  description: >-
    Alphractal API provides comprehensive cryptocurrency on-chain data including
    mining metrics, address analytics, block information, fee data, market
    indicators, supply metrics, exchange flows, and more.
servers:
  - url: https://api.alphractal.com
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /{metric}/sentiment:
    get:
      tags:
        - Sentiment
      summary: Sentiment Indicator
      description: >-
        Retrieve sentiment indicators for `/{metric}/sentiment`. Returns market
        sentiment metrics and signals.
      parameters:
        - name: metric
          in: path
          required: true
          schema:
            type:
              - string
              - 'null'
        - name: asset_id
          in: query
          schema:
            type:
              - string
              - 'null'
          description: >-
            Optional asset filter (e.g. btc). When omitted, values are summed
            across all assets and returned as `value`; when given, they are
            returned under the metric code. total_crypto returns the market-wide
            total for social_posts_active, social_interactions_total and
            social_contributors_active.
        - name: startDate
          in: query
          schema:
            type:
              - string
              - 'null'
            format: date-time
          description: >-
            Start date for filtering results (inclusive). Format: ISO 8601
            date-time.
        - name: endDate
          in: query
          schema:
            type:
              - string
              - 'null'
            format: date-time
          description: >-
            End date for filtering results (inclusive). Format: ISO 8601
            date-time.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SentimentDefaultResponse'
components:
  schemas:
    SentimentDefaultResponse:
      type: object
      properties:
        time:
          type: string
          format: date-time
        value:
          type: number
          format: double
          description: Present when asset_id is omitted.
      additionalProperties:
        type: number
        format: double
      description: >-
        Without asset_id, one row per day with `value`: the sum over every
        asset. With asset_id, the same row keyed by the metric code in lowercase
        instead of `value` (e.g. {"time": "2026-10-10T00:00:00Z",
        "social_posts_active": 129510}). asset_id=total_crypto is served for
        social_posts_active, social_interactions_total and
        social_contributors_active as the market-wide total; any other metric
        returns an empty array for it.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        API Key authentication. Include your API key in the X-Api-Key header for
        all requests.

````

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