シリーズからシーズン取得API - dongaba/TVerRec GitHub Wiki

概要

シリーズ ID を使って番組シーズンを取得することがが可能。

メソッド

GET

エンドポイント

https://platform-api.tver.jp/service/api/v1/callSeriesSeasons/{シリーズID}

{シリーズ ID}にはsrで始まる 10 文字のシリーズ ID を指定します。

ヘッダ

パラメータ 備考
x-tver-platform-type web

パラメータ

パラメータ 備考
platform_uid {platform_uid} トークン取得 API で取得した UID
toplatform_token {platform_token} トークン取得 API で取得したトークン

サンプルコード

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("x-tver-platform-type", " web")
$response = Invoke-RestMethod 'https://platform-api.tver.jp/service/api/v1/callSeriesSeasons/sr7x3ce7ak?platform_uid=ab41d3b879c0464d82b50f08f4001bb5d51a&platform_token=n0ts0n8ybf0vlouyp3ld8q0mk67jgfzvt811tp0t' -Method 'GET' -Headers $headers
$response | ConvertTo-Json

レスポンス

レスポンス例はこちら
{
	"api_version": "",
	"code": 0,
	"message": "",
	"type": "hash",
	"result": {
		"contents": [
			{
				"type": "season",
				"content": {
					"id": "s0400035",
					"version": 2,
					"title": "オリジナル"
				}
			},
			{
				"type": "season",
				"content": {
					"id": "s0000035",
					"version": 3,
					"title": "本編"
				}
			}
		]
	}
}
⚠️ **GitHub.com Fallback** ⚠️