{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adanos-market-sentiment-api/json-schema/adanos-market-sentiment-api-crypto-raw-mentions-response-schema.json",
  "title": "CryptoRawMentionsResponse",
  "description": "Paginated raw Reddit crypto mentions for a single symbol.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adanos-market-sentiment-api-reddit-crypto-api-openapi.yml#/components/schemas/CryptoRawMentionsResponse",
  "properties": {
    "symbol": {
      "type": "string",
      "title": "Symbol",
      "description": "Crypto symbol"
    },
    "period_days": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Period Days",
      "description": "Lookback window used for the query"
    },
    "count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Count",
      "description": "Total number of matching raw rows for the requested include_inherited filter before limit and offset are applied; only the requested page is returned"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/CryptoRawMentionItem"
      },
      "type": "array",
      "title": "Results",
      "description": "Raw mention rows ordered by newest first"
    }
  },
  "type": "object",
  "required": [
    "symbol",
    "period_days",
    "count",
    "results"
  ],
  "$defs": {
    "CryptoRawMentionItem": {
      "properties": {
        "post_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Post Id",
          "description": "Reddit post identifier"
        },
        "comment_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Comment Id",
          "description": "Reddit comment identifier when the mention comes from a comment"
        },
        "subreddit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Subreddit",
          "description": "Source subreddit"
        },
        "author": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author",
          "description": "Public Reddit author name, if scraped"
        },
        "text_snippet": {
          "type": "string",
          "title": "Text Snippet",
          "description": "Stored mention snippet (truncated at ingestion time)"
        },
        "created_utc": {
          "type": "string",
          "format": "date-time",
          "title": "Created Utc",
          "description": "ISO timestamp of creation"
        },
        "upvotes": {
          "type": "integer",
          "title": "Upvotes",
          "description": "Reddit score (upvotes) for this mention row"
        },
        "sentiment_score": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 1.0,
              "minimum": -1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Sentiment Score",
          "description": "Sentiment score (-1 to +1)"
        },
        "sentiment_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sentiment Label",
          "description": "Sentiment label (positive/negative/neutral)"
        },
        "is_inherited": {
          "type": "boolean",
          "title": "Is Inherited",
          "description": "Whether symbol context was inherited from the parent thread instead of directly mentioned"
        }
      },
      "type": "object",
      "required": [
        "text_snippet",
        "created_utc",
        "upvotes",
        "is_inherited"
      ],
      "title": "CryptoRawMentionItem",
      "description": "Raw Reddit crypto mention row for one symbol."
    }
  }
}