{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twittrapi-com/json-schema/twittrapi-com-trend-page-schema.json",
  "title": "TrendPage",
  "description": "Simple format: trends (no cursor)",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twittrapi-com-openapi.json#/components/schemas/TrendPage",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Trend"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as cursor for the next page; null on the last page"
    },
    "previousCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "X's top cursor, for polling newer items"
    },
    "hasNextPage": {
      "type": "boolean"
    }
  },
  "required": [
    "data",
    "nextCursor",
    "previousCursor",
    "hasNextPage"
  ],
  "$defs": {
    "Trend": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "query": {
          "type": "string",
          "description": "URL-decoded"
        },
        "url": {
          "type": "string"
        },
        "tweetVolume": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "name",
        "query",
        "url",
        "tweetVolume"
      ]
    }
  }
}