{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/steamgpt-net/json-schema/steamgpt-net-profile-schema.json",
  "title": "Profile",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/steamgpt-net-profile-api-openapi.yml#/components/schemas/Profile",
  "type": "object",
  "properties": {
    "result": {
      "type": "string",
      "enum": [
        "success"
      ]
    },
    "data": {
      "$ref": "#/$defs/ProfileData"
    }
  },
  "$defs": {
    "Canonical": {
      "type": "object",
      "description": "Stable resource identity: vanity and steamid64 URLs are the same resource",
      "properties": {
        "steamid64": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "Ids": {
      "type": "object",
      "description": "All SteamID representations of the player",
      "properties": {
        "steamid64": {
          "type": "string"
        },
        "steamid": {
          "type": [
            "string",
            "null"
          ]
        },
        "steamid3": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "ProfileData": {
      "type": "object",
      "properties": {
        "steamid64": {
          "type": "string"
        },
        "ids": {
          "$ref": "#/$defs/Ids"
        },
        "steam": {
          "$ref": "#/$defs/SteamPlayer"
        },
        "canonical": {
          "$ref": "#/$defs/Canonical"
        },
        "provenance": {
          "type": "object",
          "properties": {
            "steam": {
              "$ref": "#/$defs/SourceProvenance"
            }
          }
        }
      }
    },
    "SourceProvenance": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string"
        },
        "retrieved_at": {
          "type": [
            "integer",
            "null"
          ],
          "description": "unixtime of the cached snapshot"
        },
        "age_seconds": {
          "type": [
            "integer",
            "null"
          ],
          "description": "snapshot age at response time"
        },
        "fresh": {
          "type": "boolean",
          "description": "age within cache_ttl; false when unknown"
        },
        "cache_ttl": {
          "type": [
            "integer",
            "null"
          ],
          "description": "refresh policy in seconds"
        },
        "refreshed_with": {
          "type": "string",
          "description": "steam_bans only: bans refresh together with this source snapshot"
        }
      }
    },
    "SteamPlayer": {
      "type": [
        "object",
        "null"
      ],
      "description": "Raw Steam GetPlayerSummaries player object, unmodified field names",
      "properties": {
        "steamid": {
          "type": "string"
        },
        "personaname": {
          "type": "string"
        },
        "profileurl": {
          "type": "string"
        },
        "avatar": {
          "type": "string"
        },
        "avatarmedium": {
          "type": "string"
        },
        "avatarfull": {
          "type": "string"
        },
        "personastate": {
          "type": "integer",
          "description": "0 offline, 1 online, 2 busy, 3 away, 4 snooze, 5 looking to trade, 6 looking to play"
        },
        "communityvisibilitystate": {
          "type": "integer",
          "description": "3 = public"
        },
        "timecreated": {
          "type": "integer",
          "description": "unixtime"
        },
        "lastlogoff": {
          "type": "integer",
          "description": "unixtime"
        },
        "gameextrainfo": {
          "type": "string"
        },
        "loccountrycode": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  }
}