{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "method": "getSeriesById",
    "group": "Series & Schedule",
    "summary": "Look up a series by its ID",
    "description": "",
    "deprecated": false,
    "params": {
        "type": "object",
        "properties": {
            "key": {
                "description": "API key",
                "type": "string"
            },
            "seriesId": {
                "$ref": "#/$defs/NumericInput"
            }
        },
        "required": [
            "key",
            "seriesId"
        ],
        "x-order": [
            "key",
            "seriesId"
        ]
    },
    "result": {
        "$ref": "#/$defs/Series"
    },
    "errors": [
        {
            "code": -32001,
            "message": "Invalid API Key"
        },
        {
            "code": -32002,
            "message": "Call Limit Exceeded"
        },
        {
            "code": -32003,
            "message": "User Account Disabled"
        },
        {
            "code": -32004,
            "message": "IP address needs authorization - please check your notices on BTN"
        },
        {
            "code": -32004,
            "message": "Unauthorized IP address"
        },
        {
            "code": 1002,
            "message": "Series not found"
        }
    ],
    "examples": [],
    "$defs": {
        "NumericInput": {
            "description": "A whole number, sent either as a JSON number or as a string containing one.\n`5` and `\"5\"` are equivalent, and both are accepted wherever this type appears.",
            "oneOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                }
            ]
        },
        "Series": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "name": {
                    "type": "string"
                },
                "group_count": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "torrent_count": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "seeders": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "tvdb_id": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "status": {
                    "type": "string"
                },
                "imdb_id": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                }
            },
            "required": [
                "id",
                "name",
                "group_count",
                "torrent_count",
                "seeders",
                "tvdb_id",
                "status",
                "imdb_id"
            ],
            "additionalProperties": false
        }
    }
}
