{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sonarr/json-schema/sonarr-series-resource-schema.json",
  "title": "SeriesResource",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sonarr-openapi.json#/components/schemas/SeriesResource",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "alternateTitles": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AlternateTitleResource"
      }
    },
    "sortTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "$ref": "#/$defs/SeriesStatusType"
    },
    "ended": {
      "type": "boolean",
      "readOnly": true
    },
    "profileName": {
      "type": [
        "string",
        "null"
      ]
    },
    "overview": {
      "type": [
        "string",
        "null"
      ]
    },
    "nextAiring": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "previousAiring": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "network": {
      "type": [
        "string",
        "null"
      ]
    },
    "airTime": {
      "type": [
        "string",
        "null"
      ]
    },
    "images": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/MediaCover"
      }
    },
    "language": {
      "$ref": "#/$defs/Language"
    },
    "originalLanguage": {
      "$ref": "#/$defs/Language"
    },
    "remotePoster": {
      "type": [
        "string",
        "null"
      ]
    },
    "seasonType": {
      "type": [
        "string",
        "null"
      ]
    },
    "seasons": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/SeasonResource"
      }
    },
    "seasonTypes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/SeasonTypeResource"
      }
    },
    "translations": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/SeriesTranslationResource"
      }
    },
    "year": {
      "type": "integer",
      "format": "int32"
    },
    "path": {
      "type": [
        "string",
        "null"
      ]
    },
    "pendingPath": {
      "type": [
        "string",
        "null"
      ]
    },
    "qualityProfileId": {
      "type": "integer",
      "format": "int32"
    },
    "seasonFolder": {
      "type": "boolean"
    },
    "monitored": {
      "type": "boolean"
    },
    "monitorNewItems": {
      "$ref": "#/$defs/NewItemMonitorTypes"
    },
    "useSceneNumbering": {
      "type": "boolean"
    },
    "runtime": {
      "type": "integer",
      "format": "int32"
    },
    "tvdbId": {
      "type": "integer",
      "format": "int32"
    },
    "tvRageId": {
      "type": "integer",
      "format": "int32"
    },
    "tvMazeId": {
      "type": "integer",
      "format": "int32"
    },
    "tmdbId": {
      "type": "integer",
      "format": "int32"
    },
    "malIds": {
      "uniqueItems": true,
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "aniListIds": {
      "uniqueItems": true,
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "firstAired": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "lastAired": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "seriesType": {
      "$ref": "#/$defs/SeriesTypes"
    },
    "originalTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "cleanTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "cleanOriginalTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "imdbId": {
      "type": [
        "string",
        "null"
      ]
    },
    "titleSlug": {
      "type": [
        "string",
        "null"
      ]
    },
    "rootFolderPath": {
      "type": [
        "string",
        "null"
      ]
    },
    "folder": {
      "type": [
        "string",
        "null"
      ]
    },
    "folders": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/SeriesFolderResource"
      }
    },
    "certification": {
      "type": [
        "string",
        "null"
      ]
    },
    "genres": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "originalCountry": {
      "type": [
        "string",
        "null"
      ]
    },
    "tags": {
      "uniqueItems": true,
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "added": {
      "type": "string",
      "format": "date-time"
    },
    "addOptions": {
      "$ref": "#/$defs/AddSeriesOptions"
    },
    "ratings": {
      "$ref": "#/$defs/Ratings"
    },
    "statistics": {
      "$ref": "#/$defs/SeriesStatisticsResource"
    },
    "episodesChanged": {
      "type": [
        "boolean",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AddSeriesOptions": {
      "type": "object",
      "properties": {
        "ignoreEpisodesWithFiles": {
          "type": "boolean"
        },
        "ignoreEpisodesWithoutFiles": {
          "type": "boolean"
        },
        "monitor": {
          "$ref": "#/$defs/MonitorTypes"
        },
        "searchForMissingEpisodes": {
          "type": "boolean"
        },
        "searchForCutoffUnmetEpisodes": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "AlternateTitleResource": {
      "type": "object",
      "properties": {
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "seasonNumber": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "sceneSeasonNumber": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "sceneOrigin": {
          "type": [
            "string",
            "null"
          ]
        },
        "comment": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "Language": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "MediaCover": {
      "type": "object",
      "properties": {
        "coverType": {
          "$ref": "#/$defs/MediaCoverTypes"
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "remoteUrl": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "MediaCoverTypes": {
      "enum": [
        "unknown",
        "poster",
        "banner",
        "fanart",
        "screenshot",
        "headshot",
        "clearlogo"
      ],
      "type": "string"
    },
    "MonitorTypes": {
      "enum": [
        "unknown",
        "all",
        "future",
        "missing",
        "existing",
        "firstSeason",
        "lastSeason",
        "latestSeason",
        "pilot",
        "recent",
        "monitorSpecials",
        "unmonitorSpecials",
        "none",
        "skip"
      ],
      "type": "string"
    },
    "NewItemMonitorTypes": {
      "enum": [
        "all",
        "none"
      ],
      "type": "string"
    },
    "Quality": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "$ref": "#/$defs/QualitySource"
        },
        "resolution": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "QualitySource": {
      "enum": [
        "unknown",
        "television",
        "televisionRaw",
        "web",
        "webRip",
        "dvd",
        "bluray",
        "blurayRaw"
      ],
      "type": "string"
    },
    "Ratings": {
      "type": "object",
      "properties": {
        "votes": {
          "type": "integer",
          "format": "int32"
        },
        "value": {
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    },
    "ReleaseType": {
      "enum": [
        "unknown",
        "singleEpisode",
        "multiEpisode",
        "seasonPack"
      ],
      "type": "string"
    },
    "SeasonResource": {
      "type": "object",
      "properties": {
        "seasonNumber": {
          "type": "integer",
          "format": "int32"
        },
        "monitored": {
          "type": "boolean"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "statistics": {
          "$ref": "#/$defs/SeasonStatisticsResource"
        },
        "images": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/MediaCover"
          }
        }
      },
      "additionalProperties": false
    },
    "SeasonStatisticsResource": {
      "type": "object",
      "properties": {
        "nextAiring": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "previousAiring": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "episodeFileCount": {
          "type": "integer",
          "format": "int32"
        },
        "episodeCount": {
          "type": "integer",
          "format": "int32"
        },
        "totalEpisodeCount": {
          "type": "integer",
          "format": "int32"
        },
        "monitoredEpisodeCount": {
          "type": "integer",
          "format": "int32"
        },
        "sizeOnDisk": {
          "type": "integer",
          "format": "int64"
        },
        "releaseGroups": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "releaseTypes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ReleaseType"
          }
        },
        "episodeFileQualities": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Quality"
          }
        },
        "percentOfEpisodes": {
          "type": "number",
          "format": "double",
          "readOnly": true
        }
      },
      "additionalProperties": false
    },
    "SeasonTypeResource": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "seasonNumbers": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "episodeCount": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "SeriesFolderResource": {
      "required": [
        "folder",
        "language"
      ],
      "type": "object",
      "properties": {
        "language": {
          "$ref": "#/$defs/Language"
        },
        "folder": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "SeriesStatisticsResource": {
      "type": "object",
      "properties": {
        "seasonCount": {
          "type": "integer",
          "format": "int32"
        },
        "episodeFileCount": {
          "type": "integer",
          "format": "int32"
        },
        "episodeCount": {
          "type": "integer",
          "format": "int32"
        },
        "totalEpisodeCount": {
          "type": "integer",
          "format": "int32"
        },
        "monitoredEpisodeCount": {
          "type": "integer",
          "format": "int32"
        },
        "sizeOnDisk": {
          "type": "integer",
          "format": "int64"
        },
        "releaseGroups": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "releaseTypes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ReleaseType"
          }
        },
        "episodeFileQualities": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Quality"
          }
        },
        "percentOfEpisodes": {
          "type": "number",
          "format": "double",
          "readOnly": true
        }
      },
      "additionalProperties": false
    },
    "SeriesStatusType": {
      "enum": [
        "continuing",
        "ended",
        "upcoming",
        "deleted"
      ],
      "type": "string"
    },
    "SeriesTranslationResource": {
      "type": "object",
      "properties": {
        "language": {
          "$ref": "#/$defs/Language"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "overview": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "SeriesTypes": {
      "enum": [
        "standard",
        "daily",
        "anime"
      ],
      "type": "string"
    }
  }
}