{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twittrapi-com/json-schema/twittrapi-com-trend-location-page-schema.json",
  "title": "TrendLocationPage",
  "description": "Simple format: trend locations (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/TrendLocationPage",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TrendLocation"
      }
    },
    "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": {
    "TrendLocation": {
      "type": "object",
      "properties": {
        "woeid": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "countryCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "placeType": {
          "type": "string"
        },
        "parentId": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "woeid",
        "name",
        "country",
        "countryCode",
        "placeType",
        "parentId"
      ]
    }
  }
}