Developers
PSRay API
用簡單的 HTTP 請求讀取 PSRay 的獎盃組、玩家資料、遊戲和系列資料。本頁列出最常用的公開唯讀介面,每個介面都可以直接在頁面上試用。
https://api.psray.net路徑直接接在 Base URL 後面,沒有
/api前綴。本頁的介面都是 GET 請求,不需要登入,也不需要 API Key。
回應是 UTF-8 編碼的 JSON。
允許任意來源的跨域請求,可以直接在瀏覽器裡呼叫。
快速開始
curl 'https://api.psray.net/trophies/5059'Responses
回應格式
請求成功時,結果在 data 裡。列表介面另有 meta,包含頁碼、每頁筆數、總數和總頁數;頁碼超過最後一頁時回傳空陣列,不會報錯。
請求失敗時,回傳對應的 HTTP 狀態碼和 error 物件。error.code 是固定的錯誤碼,程式中請依它判斷;error.message 是英文說明;參數驗證失敗時,error.details 會逐項列出原因。
每個回應都帶有 X-Request-Id 回應標頭,錯誤回應中也有相同的 request_id。回報問題時請附上它,方便我們查找日誌。
時間欄位是 UTC 的 ISO 8601 字串,例如 2026-08-10T15:23:07.000000Z。
{
"data": [ … ],
"meta": {
"page": 1,
"per_page": 24,
"total": 35,
"total_pages": 2
}
}Languages
顯示語言
獎盃組標題、獎盃名稱、遊戲和系列名稱都有多種語言。介面依下列順序決定使用哪種語言:
- 查詢參數
lang,例如?lang=zh-Hans - 請求標頭
Accept-Language,依權重由高到低比對 - 都沒有或都比對不到時,使用該項目的預設語言
中文會依地區歸入 PSN 的語言變體:zh-TW 視為 zh-Hant,zh-CN 視為 zh-Hans。
回應中的 display_language 是實際使用的語言。name 始終是原名,介面上請顯示 localized_name。
curl 'https://api.psray.net/trophies/5059?lang=ja'瀏覽獎盃組
/trophies 公開 分頁分頁列出獎盃組,可以依標題搜尋,依平台或有無白金篩選,並依最新收錄、近期熱門或參與人數排序。
請求參數
qstring查詢搜尋關鍵字,比對原名、各語言官方譯名和 NPWR 編號;純數字或 #數字 依 ID 精確比對。搜尋時依相關度排序,忽略 sort
sortstring查詢排序:newest 依收錄時間,trending 依近 7 天玩家數,popular 依累計玩家數
預設newestnewesttrendingpopularplatform[]string[]查詢依平台篩選,可複選
PS5PS4PS3PSVITAPSPChas_platinumboolean查詢true 只回傳有白金的獎盃組,false 只回傳沒有白金的
truefalsepageinteger查詢頁碼,從 1 開始
預設1per_pageinteger查詢每頁筆數,1 到 100
預設24langstring查詢顯示語言,例如 zh-Hant、ja、en,見「顯示語言」
常用欄位
只列出常用欄位,完整結構請見回應範例。
idinteger獎盃組 ID
np_communication_idstringPSN 的獎盃組編號,例如 NPWR11556_00
name / localized_namestring原名,以及依顯示語言選出的名稱(介面上顯示後者)
platformstring[]平台,例如 PS5、PS4
icon_urlstring獎盃組圖示網址
defined_trophiesobject各等級的獎盃數:bronze、silver、gold、platinum
ownersinteger參與的公開玩家數
platinum_rate / completion_ratenumber | null白金率和完成率(百分比),可能為 null
median_completion_timeinteger | null完成耗時的中位數(秒)
錯誤
curl --get 'https://api.psray.net/trophies' \
--data-urlencode 'q=horizon' \
--data-urlencode 'per_page=1'{
"data": [
{
"id": 29439,
"np_communication_id": "NPWR24321_00",
"name": "Horizon Zero Dawn™ Remastered",
"default_language": "en-US",
"platform": [
"PS5"
],
"icon_url": "https://psnobj.prod.dl.playstation.net/psnobj/NPWR24321_00/96674236-573c-422c-9754-0357cfde931d.png",
"defined_trophies": {
"bronze": 65,
"silver": 11,
"gold": 2,
"platinum": 1
},
"owners": 4134,
"completed_players": 669,
"platinum_achievers": 1534,
"recent_players": 26,
"average_progress": 42,
"average_completion_time": 4165628,
"median_completion_time": 1461384,
"p10_completion_time": 444815,
"fastest_completion_time": 8290,
"median_platinum_time": 1513724,
"difficult_trophy_count": 11,
"translation_count": 19,
"created_at": "2024-10-15T16:57:06.000000Z",
"updated_at": "2026-11-20T00:15:10.000000Z",
"localized_name": "Horizon Zero Dawn™ Remastered",
"display_language": "en-US",
"available_languages": [
{
"language_code": "en-US",
"is_default": true,
"source": "official",
"name": "Horizon Zero Dawn™ Remastered"
},
{
"language_code": "ja-JP",
"is_default": false,
"source": "official",
"name": "Horizon Zero Dawn™ Remastered"
}
],
"platinum_rate": 37.1,
"completion_rate": 16.2
}
],
"meta": {
"page": 1,
"per_page": 1,
"total": 35,
"total_pages": 35
}
}獎盃組詳情
/trophies/{id} 公開回傳單一獎盃組的完整資訊:分組與全部獎盃、可用語言、最近的玩家、所屬遊戲和系列。傳入 psnid 時,還會附帶這名玩家的公開進度。
請求參數
idinteger路徑必填 獎盃組 ID(站內的數字 ID,不是 NPWR 編號)
psnidstring查詢附帶這名玩家在該獎盃組的進度(僅限資料公開的玩家)
langstring查詢顯示語言,例如 zh-Hant、ja、en,見「顯示語言」
常用欄位
只列出常用欄位,完整結構請見回應範例。
trophy_setobject獎盃組本身,欄位與列表項目大致相同
display_languagestring本次使用的顯示語言
available_languagesarray可用語言及對應標題,包括非官方翻譯
groupsarray獎盃分組:本體和各個追加內容
groups[].trophiesarray分組中的獎盃:等級、名稱、說明、圖示、獲得率、稀有度
recent_playersarray最近獲得獎盃的公開玩家,最多 10 人
gameobject | null所屬遊戲,結構同遊戲列表項目;沒有關聯時為 null
seriesarray所屬系列
viewer_progressobject | nullpsnid 對應玩家的進度;找不到或資料未公開時為 null
錯誤
curl 'https://api.psray.net/trophies/5059'{
"data": {
"trophy_set": {
"id": 5059,
"np_communication_id": "NPWR11556_00",
"version": "01.02",
"platform": [
"PS4"
],
"name": "Horizon Zero Dawn",
"detail": "Horizon Zero Dawn trophies",
"icon_url": "https://image.api.playstation.com/trophy/np/NPWR11556_00_005122C6D8E4545DAC325B8E748CBE7180ED11F3E7/F24674E946809EB0A2E214DB490149851BCEC0EC.PNG",
"has_trophy_groups": true,
"np_service_name": "trophy",
"defined_trophies": {
"bronze": 65,
"silver": 11,
"gold": 2,
"platinum": 1
},
"default_language": "en-US",
"owners": 30142,
"recent_players": 7,
"average_progress": 64,
"completed_players": 5911,
"platinum_achievers": 18847,
"game_id": 6679,
"region": null,
"created_at": "2022-12-31T16:00:00.000000Z",
"updated_at": "2026-11-20T00:10:52.000000Z",
"average_completion_time": 42067747,
"median_completion_time": 17864400,
"p10_completion_time": 1094939,
"fastest_completion_time": 223327,
"median_platinum_time": 7741552,
"difficult_trophy_count": 8,
"translation_count": 19
},
"display_language": "en-US",
"available_languages": [
{
"language_code": "ar-AE",
"is_default": false,
"source": "official",
"name": "Horizon فجرٌ جديد"
},
{
"language_code": "da-DK",
"is_default": false,
"source": "official",
"name": "Horizon Zero Dawn"
}
],
"groups": [
{
"id": 6687,
"psn_group_id": "default",
"name": "Horizon Zero Dawn",
"detail": "Horizon Zero Dawn trophies",
"localized_name": "Horizon Zero Dawn",
"localized_detail": "Horizon Zero Dawn trophies",
"icon_url": "https://image.api.playstation.com/trophy/np/NPWR11556_00_005122C6D8E4545DAC325B8E748CBE7180ED11F3E7/F24674E946809EB0A2E214DB490149851BCEC0EC.PNG",
"defined_trophies": {
"bronze": 48,
"silver": 5,
"gold": 2,
"platinum": 1
},
"trophies": [
{
"id": 163185,
"trophy_group_id": 6687,
"type": "platinum",
"np_communication_id": "NPWR11556_00",
"psn_group_id": "default",
"psn_trophy_id": 0,
"name": "All trophies obtained",
"detail": "Obtained all Horizon Zero Dawn trophies.",
"icon_url": "https://image.api.playstation.com/trophy/np/NPWR11556_00_005122C6D8E4545DAC325B8E748CBE7180ED11F3E7/1E6115EB5EA2E026D9A157BE27A44DFBBE329C7C.PNG",
"is_hidden": false,
"psn_earned_rate": "5.3",
"psray_rate": 62.5,
"earned_count": 18847,
"rarity": "COMMON",
"tip_count": 0,
"localized_name": "All trophies obtained",
"localized_detail": "Obtained all Horizon Zero Dawn trophies."
}
]
}
],
"recent_players": [
{
"psnid": "abyssmoe",
"avatar_url": "https://api.dev.psray.net/media/avatar/hr/01m824wbtnacwx2qnhk3a8qphr/sm.webp",
"country": "HK",
"progress": 30,
"earned_platinum": 0,
"last_earned_at": "2021-04-21T19:40:46.000000Z"
}
],
"similar_trophy_sets": [],
"game": {
"id": 6679,
"name": "Horizon Zero Dawn",
"localized_name": "Horizon Zero Dawn",
"display_language": null,
"cover": {
"id": null,
"url": "https://images.igdb.com/igdb/image/upload/t_cover_big_2x/co2una.jpg",
"width": null,
"height": null,
"color": null,
"srcset": null
},
"first_release_date": "2017-02-28",
"first_release_precision": "day",
"platforms": [
{
"code": "PS4",
"name": "PlayStation 4",
"abbreviation": "PS4"
}
],
"trophy_set_count": 1
},
"series": [
{
"id": 860,
"name": "Horizon",
"localized_name": "Horizon",
"display_language": null,
"cover": null,
"covers": [
"https://image.api.playstation.com/trophy/np/NPWR11556_00_005122C6D8E4545DAC325B8E748CBE7180ED11F3E7/F24674E946809EB0A2E214DB490149851BCEC0EC.PNG",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR21008_00/2b1ab462-7ee0-4415-81d8-bf2632f03850.png",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR27777_00/a858c347-f4c0-4e6b-8b88-e2b9167d3055.png",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR37082_00/ab7daeb9-8cdf-4164-ae7b-ed7913a72ac2.png"
],
"stage_count": 4,
"side_count": 0,
"trophy_set_count": 8,
"popularity": 55199,
"first_year": 2017,
"last_year": 2024,
"card": "c5e7a74811f8",
"stage_number": 1,
"stage_kind": "main"
}
],
"viewer_progress": null
}
}玩家資料
/profile/{psnid} 公開回傳玩家的個人資料:獎盃等級、各等級獎盃數、排名、近一年的獎盃日曆和最近發表的留言。資料未公開的玩家同樣回傳 200,但 is_profile_public 為 false,calendar 為 null。
請求參數
psnidstring路徑必填 玩家的 PSN 線上 ID,不區分大小寫
langstring查詢最近留言中獎盃和獎盃組名稱的顯示語言
常用欄位
只列出常用欄位,完整結構請見回應範例。
psnidstringPSN 線上 ID
avatar_urlstring頭像網址
countrystring | null國家或地區代碼,例如 JP
trophy_level / progressinteger獎盃等級,以及升到下一級的進度(0 到 100)
platinum / gold / silver / bronzeinteger各等級的獎盃數
pointsinteger獎盃點數
rank / server_rankinteger | null全站排名和地區排名;不參與排名時為 null
is_profile_publicboolean資料是否公開
calendararray | null近一年每天獲得的獎盃數,每項包含 date 和 count;資料未公開時為 null
recent_tipsarray | null最近發表的 5 則留言;未在本站註冊的玩家為 null
錯誤
curl 'https://api.psray.net/profile/abyssmoe'{
"data": {
"id": 1,
"role": "admin",
"psnid": "abyssmoe",
"account_id": "1848172946608790926",
"status": 1,
"country": "HK",
"language": [
"zh-CN",
"ja"
],
"avatar_url": "https://api.dev.psray.net/media/avatar/hr/01m824wbtnacwx2qnhk3a8qphr/sm.webp",
"about_me": "May you find your worth in the waking world.",
"is_plus": false,
"played_game_count": 181,
"completed_game_count": 156,
"abandoned_game_count": 11,
"trophy_level": 444,
"progress": 97,
"platinum": 153,
"gold": 573,
"silver": 1359,
"bronze": 4828,
"points": 210660,
"rank": 19378,
"server_rank": 2649,
"follower_count": 5,
"following_count": 9,
"first_trophy_at": "2018-07-07T14:59:21.000000Z",
"last_trophy_at": "2026-10-05T13:17:09.000000Z",
"is_profile_public": true,
"is_rankable": true,
"tip_count": 2,
"tip_vote_count": 0,
"page_view_count": 89,
"sync_interval": 1440,
"sync_next_at": "2027-01-19T18:11:10.000000Z",
"last_synced_at": "2026-11-20T18:11:10.000000Z",
"registered_at": "2022-09-09T21:13:28.000000Z",
"created_at": null,
"updated_at": "2026-11-22T17:29:24.000000Z",
"can_follow": false,
"banner": {
"id": "01m824wdd0nzdytf32v0jmt650",
"url": "https://api.dev.psray.net/media/banner/50/01m824wdd0nzdytf32v0jmt650/lg.webp",
"width": 2048,
"height": 455,
"color": "#483d35",
"srcset": "https://api.dev.psray.net/media/banner/50/01m824wdd0nzdytf32v0jmt650/sm.webp 1440w, https://api.dev.psray.net/media/banner/50/01m824wdd0nzdytf32v0jmt650/lg.webp 2048w"
},
"is_following": false,
"is_follower": false,
"calendar": [
{
"date": "2025-01-24",
"count": 11
},
{
"date": "2025-01-25",
"count": 4
}
],
"recent_tips": [
{
"id": 45,
"trophy_id": 143739,
"user_id": 1,
"language": "ja",
"has_spoiler": false,
"missable": null,
"vote_up_count": 0,
"vote_down_count": 0,
"content": "::: checklist 必殺技\n…",
"content_type": "markdown",
"created_at": "2024-09-16T17:01:12.000000Z",
"updated_at": "2026-08-14T16:10:02.000000Z",
"trophy_set_id": 4404,
"trophy_set": {
"id": 4404,
"name": "うたわれるもの 二人の白皇",
"display_language": "ja-JP",
"icon_url": "https://image.api.playstation.com/trophy/np/NPWR10330_00_000D5E47E59040943750D0813739DB7D7E481F5C0C/4B7719284069838D0C2F23BAA767B12464775B06.PNG",
"platform": [
"PS3",
"PSVITA",
"PS4"
]
},
"trophy": {
"id": 143739,
"name": "協必百景",
"icon_url": "https://image.api.playstation.com/trophy/np/NPWR10330_00_000D5E47E59040943750D0813739DB7D7E481F5C0C/8E71750B2AADBABE6B7339FCC50B979EB624169A.PNG",
"type": "silver",
"display_language": "ja-JP"
}
}
]
}
}瀏覽遊戲
/games 公開 分頁分頁列出遊戲,依首發日期由新到舊排列,可以依名稱或別名搜尋,依平台篩選。
請求參數
qstring查詢搜尋關鍵字,比對名稱、各語言名稱和別名(例如 FF7R)
platform[]string[]查詢依平台篩選,可複選,例如 PS5、PS4、PC、SWITCH
pageinteger查詢頁碼,從 1 開始
預設1per_pageinteger查詢每頁筆數,1 到 100
預設24langstring查詢顯示語言,例如 zh-Hant、ja、en,見「顯示語言」
常用欄位
只列出常用欄位,完整結構請見回應範例。
idinteger遊戲 ID
name / localized_namestring原名,以及依顯示語言選出的名稱(介面上顯示後者)
coverobject | null封面圖,包含網址、尺寸和主色;可能為 null
first_release_datestring | null首發日期;未定檔時為 null
platformsarray發售過的平台,每項包含 code、name、abbreviation
trophy_set_countinteger關聯的獎盃組數量
錯誤
curl --get 'https://api.psray.net/games' \
--data-urlencode 'q=horizon' \
--data-urlencode 'per_page=1'{
"data": [
{
"id": 12334,
"name": "Horizon Zero Dawn Remastered",
"localized_name": "Horizon Zero Dawn Remastered",
"display_language": null,
"cover": {
"id": null,
"url": "https://images.igdb.com/igdb/image/upload/t_cover_big_2x/co8vsm.jpg",
"width": null,
"height": null,
"color": null,
"srcset": null
},
"first_release_date": "2024-10-31",
"first_release_precision": "day",
"platforms": [
{
"code": "PS5",
"name": "PlayStation 5",
"abbreviation": "PS5"
}
],
"trophy_set_count": 1
}
],
"meta": {
"page": 1,
"per_page": 1,
"total": 21,
"total_pages": 21
}
}遊戲詳情
/games/{id} 公開回傳單款遊戲的簡介、別名、各平台和地區的發售日期、外部連結,以及關聯的獎盃組和所屬系列。
請求參數
idinteger路徑必填 遊戲 ID
langstring查詢顯示語言,例如 zh-Hant、ja、en,見「顯示語言」
常用欄位
只列出常用欄位,完整結構請見回應範例。
summary / localized_summarystring | null簡介,以及依顯示語言選出的簡介
aliasesstring[]別名,例如縮寫或舊名
releasesarray各平台、各地區的發售日期
linksarray外部資料庫中的頁面,例如 IGDB
trophy_setsarray關聯的獎盃組,結構同瀏覽獎盃組的列表項目
seriesarray所屬系列
錯誤
curl 'https://api.psray.net/games/6679'{
"data": {
"id": 6679,
"name": "Horizon Zero Dawn",
"localized_name": "Horizon Zero Dawn",
"display_language": null,
"cover": {
"id": null,
"url": "https://images.igdb.com/igdb/image/upload/t_cover_big_2x/co2una.jpg",
"width": null,
"height": null,
"color": null,
"srcset": null
},
"first_release_date": "2017-02-28",
"first_release_precision": "day",
"platforms": [
{
"code": "PS4",
"name": "PlayStation 4",
"abbreviation": "PS4"
}
],
"trophy_set_count": 1,
"summary": null,
"localized_summary": null,
"translations": [],
"aliases": [],
"releases": [
{
"platform": "PS4",
"region": "NA",
"release_date": "2017-02-28",
"date_precision": "day",
"status": null
},
{
"platform": "PS4",
"region": "EU",
"release_date": "2017-03-01",
"date_precision": "day",
"status": null
}
],
"links": [
{
"source": "igdb",
"url": "https://www.igdb.com/games/horizon-zero-dawn"
}
],
"trophy_sets": [
{
"id": 5059,
"np_communication_id": "NPWR11556_00",
"name": "Horizon Zero Dawn",
"default_language": "en-US",
"platform": [
"PS4"
],
"icon_url": "https://image.api.playstation.com/trophy/np/NPWR11556_00_005122C6D8E4545DAC325B8E748CBE7180ED11F3E7/F24674E946809EB0A2E214DB490149851BCEC0EC.PNG",
"defined_trophies": {
"bronze": 65,
"silver": 11,
"gold": 2,
"platinum": 1
},
"owners": 30142,
"completed_players": 5911,
"platinum_achievers": 18847,
"recent_players": 7,
"average_progress": 64,
"average_completion_time": 42067747,
"median_completion_time": 17864400,
"p10_completion_time": 1094939,
"fastest_completion_time": 223327,
"median_platinum_time": 7741552,
"difficult_trophy_count": 8,
"translation_count": 19,
"created_at": "2022-12-31T16:00:00.000000Z",
"updated_at": "2026-11-20T00:10:52.000000Z",
"localized_name": "Horizon Zero Dawn",
"display_language": "en-US",
"available_languages": [
{
"language_code": "en-US",
"is_default": true,
"source": "official",
"name": "Horizon Zero Dawn"
},
{
"language_code": "ja-JP",
"is_default": false,
"source": "official",
"name": "Horizon Zero Dawn"
}
],
"platinum_rate": 62.5,
"completion_rate": 19.6
}
],
"series": [
{
"id": 860,
"name": "Horizon",
"localized_name": "Horizon",
"display_language": null,
"cover": null,
"covers": [
"https://image.api.playstation.com/trophy/np/NPWR11556_00_005122C6D8E4545DAC325B8E748CBE7180ED11F3E7/F24674E946809EB0A2E214DB490149851BCEC0EC.PNG",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR21008_00/2b1ab462-7ee0-4415-81d8-bf2632f03850.png",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR27777_00/a858c347-f4c0-4e6b-8b88-e2b9167d3055.png",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR37082_00/ab7daeb9-8cdf-4164-ae7b-ed7913a72ac2.png"
],
"stage_count": 4,
"side_count": 0,
"trophy_set_count": 8,
"popularity": 55199,
"first_year": 2017,
"last_year": 2024,
"card": "c5e7a74811f8",
"stage_number": 1,
"stage_kind": "main"
}
]
}
}瀏覽系列
/series 公開 分頁分頁列出遊戲系列,可以依系列名或其中作品的標題搜尋,依熱度、最近新作或名稱排序。
請求參數
qstring查詢搜尋關鍵字,比對系列名,也比對系列中獎盃組的標題
sortstring查詢排序:popular 依熱度,recent 依最新作年份,name 依名稱
預設popularpopularrecentnamepageinteger查詢頁碼,從 1 開始
預設1per_pageinteger查詢每頁筆數,1 到 60
預設24langstring查詢顯示語言,例如 zh-Hant、ja、en,見「顯示語言」
常用欄位
只列出常用欄位,完整結構請見回應範例。
idinteger系列 ID
name / localized_namestring原名,以及依顯示語言選出的名稱(介面上顯示後者)
coversstring[]最多 4 張代表作圖示,可以拼成封面
stage_count / side_countinteger主線作品數和外傳數
trophy_set_countinteger系列中的獎盃組總數
popularityinteger熱度,即主線各作玩家數之和
first_year / last_yearinteger | null主線首作和最新作的發售年份
錯誤
curl --get 'https://api.psray.net/series' \
--data-urlencode 'q=horizon' \
--data-urlencode 'per_page=1'{
"data": [
{
"id": 860,
"name": "Horizon",
"localized_name": "Horizon",
"display_language": null,
"cover": null,
"covers": [
"https://image.api.playstation.com/trophy/np/NPWR11556_00_005122C6D8E4545DAC325B8E748CBE7180ED11F3E7/F24674E946809EB0A2E214DB490149851BCEC0EC.PNG",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR21008_00/2b1ab462-7ee0-4415-81d8-bf2632f03850.png",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR27777_00/a858c347-f4c0-4e6b-8b88-e2b9167d3055.png",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR37082_00/ab7daeb9-8cdf-4164-ae7b-ed7913a72ac2.png"
],
"stage_count": 4,
"side_count": 0,
"trophy_set_count": 8,
"popularity": 55199,
"first_year": 2017,
"last_year": 2024,
"card": "c5e7a74811f8",
"viewer_progress": null
}
],
"meta": {
"page": 1,
"per_page": 1,
"total": 5,
"total_pages": 5
}
}系列詳情
/series/{id} 公開依順序回傳系列中的各部作品(主線和外傳)及其獎盃組。傳入 psnid 時,還會附帶這名玩家在系列中的進度。
請求參數
idinteger路徑必填 系列 ID
psnidstring查詢附帶這名玩家在該系列的進度(僅限資料公開的玩家)
langstring查詢顯示語言,例如 zh-Hant、ja、en,見「顯示語言」
常用欄位
只列出常用欄位,完整結構請見回應範例。
descriptionstring | null系列簡介
tier_totalsobject主線各作(每作取玩家最多的版本)的獎盃總數,依等級統計
stagesarray依順序排列的作品,kind 為 main(主線)或 side(外傳)
stages[].entriesarray該作品對應的獎盃組,例如不同平台的版本
viewerobject | nullpsnid 對應玩家在系列中的進度;未傳 psnid 時為 null
錯誤
curl 'https://api.psray.net/series/860'{
"data": {
"id": 860,
"name": "Horizon",
"localized_name": "Horizon",
"display_language": null,
"cover": null,
"covers": [
"https://image.api.playstation.com/trophy/np/NPWR11556_00_005122C6D8E4545DAC325B8E748CBE7180ED11F3E7/F24674E946809EB0A2E214DB490149851BCEC0EC.PNG",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR21008_00/2b1ab462-7ee0-4415-81d8-bf2632f03850.png",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR27777_00/a858c347-f4c0-4e6b-8b88-e2b9167d3055.png",
"https://psnobj.prod.dl.playstation.net/psnobj/NPWR37082_00/ab7daeb9-8cdf-4164-ae7b-ed7913a72ac2.png"
],
"stage_count": 4,
"side_count": 0,
"trophy_set_count": 8,
"popularity": 55199,
"first_year": 2017,
"last_year": 2024,
"description": null,
"languages": [],
"tier_totals": {
"platinum": 4,
"gold": 15,
"silver": 40,
"bronze": 160
},
"stages": [
{
"id": 3313,
"kind": "main",
"number": 1,
"name": "Horizon Zero Dawn",
"release_date": "2017-02-28",
"entries": [
{
"id": 5059,
"np_communication_id": "NPWR11556_00",
"name": "Horizon Zero Dawn",
"localized_name": "Horizon Zero Dawn",
"display_language": "en-US",
"default_language": "en-US",
"platform": [
"PS4"
],
"region": null,
"icon_url": "https://image.api.playstation.com/trophy/np/NPWR11556_00_005122C6D8E4545DAC325B8E748CBE7180ED11F3E7/F24674E946809EB0A2E214DB490149851BCEC0EC.PNG",
"defined_trophies": {
"bronze": 65,
"silver": 11,
"gold": 2,
"platinum": 1
},
"owners": 30142,
"completed_players": 5911,
"platinum_rate": 62.5,
"completion_rate": 19.6,
"game_id": 6679
}
]
}
],
"viewer": null
}
}Errors
錯誤碼
所有錯誤使用相同的格式,依 error.code 區分即可。下表是本頁介面可能回傳的錯誤碼。
- 404
NOT_FOUND路徑不存在,或 ID 不是數字
- 404
TROPHY_SET_NOT_FOUND獎盃組不存在
- 404
USER_NOT_FOUND站內沒有這名玩家(從未同步過,或已註銷)
- 410
USER_BANNED這名玩家已被永久停用
- 404
GAME_NOT_FOUND遊戲不存在
- 404
SERIES_NOT_FOUND系列不存在或尚未發布
- 405
METHOD_NOT_ALLOWED請求方法不對,本頁介面只接受 GET
- 422
VALIDATION_FAILED參數不合法,原因見 error.details
- 500
INTERNAL_ERROR伺服器內部錯誤,請稍後重試
{
"error": {
"code": "TROPHY_SET_NOT_FOUND",
"message": "Trophy set not found."
},
"request_id": "01a21813-3f47-7265-bfc1-9bab0725ff8c"
}Usage
使用須知
- 請快取結果,避免高頻輪詢或批次抓取。目前沒有設定流量限制,但濫用的來源可能會被限制存取。
- 回應日後可能增加欄位,請忽略不認得的欄位。本頁沒有列出的欄位可能調整,不建議依賴。
- 資料來自 PSN 公開的獎盃資訊,由 PSRay 定期同步,可能有延遲。玩家將資料設為私密後,我們不會公開其獎盃資料。
- 遇到問題或有建議,歡迎在意見回饋告訴我們。
介面仍在完善中,變更會同步更新到本頁。