AccuWeather · Schema

UserInfo

UserInfo schema from AccuWeather API

WeatherForecastsMeteorologyLocation ServicesAir QualityStorms

Properties

Name Type Description
id string Unique ID for the user (persistent across sessions)
language string Language code set for the product for the user (en-us, en-gb, etc.)
country string Country code for the user's location. Eg. US
region string Region code for the user's location. Eg. PA
city string City for the location
dma string DMA for the user's location. Eg. 566. Not available outside of the US.
start string Date of the user's first visit. I.e. Cookie creation date
offset string Valid string of the user's current UTC offset in hh:mm:ss format. Ex. -05:00 or 05:00
View JSON Schema on GitHub

JSON Schema

accuweather-user-info-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/accuweather/refs/heads/main/json-schema/accuweather-user-info-schema.json",
  "title": "UserInfo",
  "description": "UserInfo schema from AccuWeather API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique ID for the user (persistent across sessions)",
      "nullable": true
    },
    "language": {
      "type": "string",
      "description": "Language code set for the product for the user (en-us, en-gb, etc.)",
      "nullable": true
    },
    "country": {
      "type": "string",
      "description": "Country code for the user's location.\r\nEg. US",
      "nullable": true
    },
    "region": {
      "type": "string",
      "description": "Region code for the user's location.\r\nEg. PA",
      "nullable": true
    },
    "city": {
      "type": "string",
      "description": "City for the location",
      "nullable": true
    },
    "dma": {
      "type": "string",
      "description": "DMA for the user's location.\r\nEg. 566. Not available outside of the US.",
      "nullable": true
    },
    "start": {
      "type": "string",
      "description": "Date of the user's first visit.\r\nI.e. Cookie creation date",
      "nullable": true
    },
    "offset": {
      "type": "string",
      "description": "Valid string of the user's current UTC offset in hh:mm:ss format.\r\nEx. -05:00 or 05:00",
      "nullable": true
    }
  },
  "additionalProperties": false
}