タレント情報取得API - dongaba/TVerRec GitHub Wiki
タレント ID を使ってタレントの情報を取得することがが可能。
GET
https://platform-api.tver.jp/service/api/v1/callTalent/{タレントID}
{タレント ID}にはt
で始まる 7 文字のタレント 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/callTalent/t00fe57?platform_uid=ab41d3b879c0464d82b50f08f4001bb5d51a&platform_token=n0ts0n8ybf0vlouyp3ld8q0mk67jgfzvt811tp0t' -Method 'GET' -Headers $headers
$response | ConvertTo-Json
レスポンス例はこちら
{
"api_version": "",
"code": 0,
"message": "",
"type": "hash",
"result": {
"type": "talent",
"content": {
"id": "t00fe57",
"version": 21,
"name": "松下 奈緒",
"existsThumbnail": true
},
"isFavorite": false
}
}