{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/upriver-ai/json-schema/upriver-ai-radar-search-response-schema.json",
  "title": "RadarSearchResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/upriver-ai-trends-radar-beta-api-openapi.yml#/components/schemas/RadarSearchResponse",
  "properties": {
    "beta": {
      "type": "string",
      "title": "Beta",
      "description": "Beta status caveat.",
      "default": "Beta: response shapes may change and this surface may converge with /v2/trends."
    },
    "results": {
      "items": {
        "$ref": "#/$defs/RadarSearchResult"
      },
      "type": "array",
      "title": "Results"
    }
  },
  "type": "object",
  "required": [
    "results"
  ],
  "$defs": {
    "RadarItem": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "description": "Stable item identifier."
        },
        "type": {
          "type": "string",
          "enum": [
            "trend_moment",
            "topic",
            "entity_breakout"
          ],
          "title": "Type",
          "description": "trend_moment: a participatory trend moment. topic: a durable subject area. entity_breakout: a product or brand gaining attention."
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Human-readable card title."
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description",
          "description": "One-sentence summary of what the card covers."
        },
        "insight": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Insight",
          "description": "Analyst note on what is driving this right now."
        },
        "how_to_act": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "How To Act",
          "description": "Suggested content, product, or campaign activation angle."
        },
        "brand_safety": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Brand Safety",
          "description": "Brand-safety assessment: safe, caution, unsafe."
        },
        "lifecycle_state": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lifecycle State",
          "description": "Where the card sits in its lifecycle: emerging, rising, peaking, steady, or declining."
        },
        "momentum_ratio": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Momentum Ratio",
          "description": "Recent activity relative to the card's own baseline."
        },
        "value_score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value Score",
          "description": "Composite quality/opportunity score."
        },
        "stats": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Stats",
          "description": "Live evaluation stats: video and creator counts, freshness, audience and format composition, publishing activity, and the collection scope in which supporting videos were observed. Optional presentation_formats list caption-based format names and their evidence_basis: caption_label, caption_description, or mixed. Optional examples list sample videos with tiktok_id, url, caption, creator, views, published_at, and cover_url: a temporary image URL to load directly, or null when no image is available. Optional activity.catch_corrected (version cpf-v1) corrects weekly posts for how likely our searches were to find them. Lists, search and item detail carry its version, estimable, reason (when not estimable), momentum (the corrected lifecycle reading, or null) and momentum_raw (the reading from found counts). When momentum is non-null, lifecycle_state and momentum_ratio equal its state and ratio; otherwise they come from found counts (momentum_raw). Item detail adds weekly arrays from start_week: observed (videos found), a range from estimate (posts our searches can reach) to estimate_with_quiet (also counting rarely shown videos), low and high (an 80% sampling band), and catch_chance; null weeks can't be estimated, and the last still_found_weeks weeks are still being found."
        },
        "personas": {
          "anyOf": [
            {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Personas",
          "description": "Audience personas this card serves, with strength."
        },
        "program": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Program",
          "description": "Market catalog this item belongs to."
        },
        "first_seen": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "First Seen",
          "description": "When this item first appeared on the radar."
        },
        "last_updated": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Updated",
          "description": "When this item's stats were last refreshed."
        },
        "archived": {
          "type": "boolean",
          "title": "Archived",
          "description": "True when the item is no longer tracked; archived items are excluded from lists and search.",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "id",
        "type",
        "name"
      ],
      "title": "RadarItem",
      "description": "One card: a named slice of cultural activity with its live stats."
    },
    "RadarSearchResult": {
      "properties": {
        "item": {
          "$ref": "#/$defs/RadarItem"
        },
        "match_score": {
          "type": "number",
          "title": "Match Score",
          "description": "Semantic match strength for the query."
        }
      },
      "type": "object",
      "required": [
        "item",
        "match_score"
      ],
      "title": "RadarSearchResult"
    }
  }
}