API
人物的 base.json 包含其详细信息和作品年表;名称、简介和别名位于语言文件中。
文件
https://api.watchittrackit.com/v1/person/{id}/base.jsonhttps://api.watchittrackit.com/v1/person/{id}/{lang}.json
图片是一个包含 full 和 thumb 路径的对象。
base.json
| 字段 | 类型 | 说明 |
|---|---|---|
| type | string | 记录类型。 |
| id | number | TheTVDB id。 |
| slug | string | URL slug,在同一类型内唯一。 |
| popularity | number | TheTVDB 热度分数,越高越热门。分数仅在同一类型内可比较。 |
| deleted | boolean | 如果记录已被删除则为 true。其文件仍保持发布。 |
| birthDate | string | 出生日期(YYYY-MM-DD)。 |
| deathDate | string | 逝世日期(如有)。 |
| gender | string | male, female or other。 |
| birthPlace | string | 出生地。 |
| race | string | 族裔(如已知)。 |
| externalLinks | { source, url }[] | 该人物在其他网站的资料链接:来源和 URL。 |
| image | image | 主图:作品为海报,人物为照片。 |
| filmography | filmography[] | 其在剧集和电影中的全部署名。 |
| languages | string[] | 此记录拥有文件的语言。 |
| remoteIds | { [site]: string } | 在其他网站(imdb, tmdb, wikidata, …)上的 id,以网站为键。 |
示例
{
"type": "person",
"id": 255211,
"slug": "bryan-cranston",
"popularity": 140,
"deleted": false,
"birthDate": "1953-03-07",
"gender": "male",
"birthPlace": "Hollywood, California, USA",
"image": { "full": "/images/person/255211/1705696844.jpg", "thumb": "/images/person/255211/1705696844.t.jpg" },
"filmography": [
{ "recordType": "tv", "recordId": 81189, "recordSlug": "breaking-bad", "title": "Breaking Bad",
"roleType": "Actor", "character": "Walter White", "popularityRank": 1 }
],
"languages": ["de", "en"],
"remoteIds": { "imdbperson": "nm0186505" }
}作品年表
| 字段 | 类型 | 说明 |
|---|---|---|
| recordType | string | 作品类型(tv or movie)。 |
| recordId | number | 作品的 id。 |
| recordSlug | string | 作品的 slug。 |
| title | string | 作品名称。 |
| roleType | string | 署名类型,例如 Actor or Director。 |
| character | string | 饰演的角色(表演类署名)。 |
| popularityRank | number | 该作品在其全部署名中的热度排名(1 为最热门)。 |
语言文件
| 字段 | 类型 | 说明 |
|---|---|---|
| type | string | 记录类型。 |
| id | number | TheTVDB id。 |
| lang | string | 此文件的语言。 |
| name | string | 此语言下的名称。 |
| biography | string | 此语言下的简介。 |
| aliases | string[] | 此语言下的其他名称。 |
| filmography | { [titleId]: string } | 按作品 id:作品在此语言下的名称。 |
示例
{
"type": "person",
"id": 327412,
"lang": "en",
"name": "Zendaya",
"biography": "Actress, producer Zendaya Maree Stoermer Coleman…",
"aliases": ["Zendaya Maree Stoermer Coleman"],
"filmography": { "81189": "Breaking Bad" }
}