---
title: "API documentation | PSRay"
description: "How to use the public PSRay API: endpoints, parameters, response fields and samples for trophy sets, player profiles, games and series, with a console to try each request."
image: "https://psray.net/images/psray-share.jpg"
url: "https://psray.net/docs/api?lang=en"
lang: "en-US"
---

Developers

# PSRay API

Read PSRay's trophy sets, player profiles, games and series with plain HTTP requests. This page covers the most common public, read-only endpoints, and you can try each one right here.

Read-only No API key JSON CORS enabled

Base URL `https://api.psray.net`

- Paths follow the base URL directly; there is no `/api` prefix.

- Every endpoint on this page is a GET request that needs neither a login nor an API key.

- Responses are UTF-8 encoded JSON.

- Cross-origin requests are allowed from any origin, so you can call the API straight from a browser.

Quick start

```bash
curl 'https://api.psray.net/trophies/5059'
```

Responses

## Response format

On success the result is in `data`. List endpoints also return `meta` with the page number, page size, total count and total pages. Asking for a page past the end returns an empty array, not an error.

On failure you get the matching HTTP status and an `error` object. `error.code` is a stable error code, so branch on it in your code. `error.message` is an English description, and when parameter validation fails, `error.details` gives the reason for each field.

Every response carries an `X-Request-Id` header, and error responses repeat it as `request_id`. Include it when you report a problem so we can find the request in our logs.

Timestamps are ISO 8601 strings in UTC, for example `2026-08-10T15:23:07.000000Z`.

200

```json
{
  "data": [ … ],
  "meta": {
    "page": 1,
    "per_page": 24,
    "total": 35,
    "total_pages": 2
  }
}
```

Languages

## Display language

Trophy set titles, trophy names, game names and series names come in several languages. The API picks the display language in this order:

1. The `lang` query parameter, for example `?lang=zh-Hans`
2. The `Accept-Language` request header, highest weight first
3. If neither is given or nothing matches, the item's default language

Chinese is mapped to PSN's language variants by region: `zh-TW` is treated as `zh-Hant`, and `zh-CN` as `zh-Hans`.

`display_language` in the response tells you which language was used. `name` is always the original title; show `localized_name` in your interface.

```bash
curl 'https://api.psray.net/trophies/5059?lang=ja'
```

## Browse trophy sets

GET `/trophies` Public Paginated

Lists trophy sets page by page. Search by title, filter by platform or by whether there is a platinum, and sort by newest, trending or most players.

### Parameters

Parameter In Description

- `q` string

  Query

  Search terms, matched against the original title, every official localized title and the NPWR ID; a bare number or #number matches the ID exactly. Results are sorted by relevance and sort is ignored

- `sort` string

  Query

  Order: newest by date added, trending by players in the last 7 days, popular by total players

  Default `newest` `newest` `trending` `popular`

- `platform[]` string\[]

  Query

  Filter by platform; accepts several

  `PS5` `PS4` `PS3` `PSVITA` `PSPC`

- `has_platinum` boolean

  Query

  true returns only trophy sets with a platinum, false only those without

  `true` `false`

- `page` integer

  Query

  Page number, starting at 1

  Default `1`

- `per_page` integer

  Query

  Items per page, 1 to 100

  Default `24`

- `lang` string

  Query

  Display language, for example zh-Hans, ja or en; see Display language

### Common fields

Only the most-used fields are listed; see the sample response for the full shape.

- `id` integer

  Trophy set ID

- `np_communication_id` string

  PSN trophy set ID, for example NPWR11556_00

- `name / localized_name` string

  Original title, and the title picked for the display language (show the latter)

- `platform` string\[]

  Platforms, for example PS5, PS4

- `icon_url` string

  Trophy set icon URL

- `defined_trophies` object

  Trophy count per type: bronze, silver, gold, platinum

- `owners` integer

  Number of public players

- `platinum_rate / completion_rate` number | null

  Platinum and completion rates in percent; may be null

- `median_completion_time` integer | null

  Median time to complete, in seconds

### Errors

422 VALIDATION_FAILED All error codes

```bash
curl --get 'https://api.psray.net/trophies' \
  --data-urlencode 'q=horizon' \
  --data-urlencode 'per_page=1'
```

200

```json
{
  "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
  }
}
```

## Trophy set details

GET `/trophies/{id}` Public

Returns everything about one trophy set: its groups and all trophies, available languages, recent players, and the game and series it belongs to. Pass psnid to add that player's public progress.

### Parameters

Parameter In Description

- `id` integer

  Path

  Required Trophy set ID (PSRay's numeric ID, not the NPWR ID)

- `psnid` string

  Query

  Adds this player's progress on the trophy set (public profiles only)

- `lang` string

  Query

  Display language, for example zh-Hans, ja or en; see Display language

### Common fields

Only the most-used fields are listed; see the sample response for the full shape.

- `trophy_set` object

  The trophy set itself, with much the same fields as a list item

- `display_language` string

  The display language used for this response

- `available_languages` array

  Available languages and their titles, unofficial translations included

- `groups` array

  Trophy groups: the base game and each add-on

- `groups[].trophies` array

  Trophies in the group: type, name, description, icon, earn rate and rarity

- `recent_players` array

  Public players who earned trophies most recently, up to 10

- `game` object | null

  The game, shaped like a game list item; null when not linked

- `series` array

  Series it belongs to

- `viewer_progress` object | null

  Progress of the player given as psnid; null when not found or private

### Errors

404 TROPHY_SET_NOT_FOUND All error codes

```bash
curl 'https://api.psray.net/trophies/5059'
```

200

```json
{
  "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
  }
}
```

## Player profile

GET `/profile/{psnid}` Public

Returns a player's profile: trophy level, trophy counts by type, rankings, a trophy calendar for the past year and their latest comments. Private profiles still return 200, with is_profile_public set to false and calendar set to null.

### Parameters

Parameter In Description

- `psnid` string

  Path

  Required The player's PSN Online ID, case-insensitive

- `lang` string

  Query

  Display language for trophy and trophy set names in the latest comments

### Common fields

Only the most-used fields are listed; see the sample response for the full shape.

- `psnid` string

  PSN Online ID

- `avatar_url` string

  Avatar URL

- `country` string | null

  Country or region code, for example JP

- `trophy_level / progress` integer

  Trophy level, and progress to the next level (0 to 100)

- `platinum / gold / silver / bronze` integer

  Trophy count per type

- `points` integer

  Trophy points

- `rank / server_rank` integer | null

  Global and regional rank; null when not ranked

- `is_profile_public` boolean

  Whether the profile is public

- `calendar` array | null

  Trophies earned per day over the past year, each with date and count; null when private

- `recent_tips` array | null

  The 5 latest comments; null for players who haven't signed up on PSRay

### Errors

404 USER_NOT_FOUND 410 USER_BANNED All error codes

```bash
curl 'https://api.psray.net/profile/abyssmoe'
```

200

```json
{
  "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"
        }
      }
    ]
  }
}
```

## Browse games

GET `/games` Public Paginated

Lists games page by page, newest first release first. Search by name or alias and filter by platform.

### Parameters

Parameter In Description

- `q` string

  Query

  Search terms, matched against the name, localized names and aliases (such as FF7R)

- `platform[]` string\[]

  Query

  Filter by platform; accepts several, for example PS5, PS4, PC, SWITCH

- `page` integer

  Query

  Page number, starting at 1

  Default `1`

- `per_page` integer

  Query

  Items per page, 1 to 100

  Default `24`

- `lang` string

  Query

  Display language, for example zh-Hans, ja or en; see Display language

### Common fields

Only the most-used fields are listed; see the sample response for the full shape.

- `id` integer

  Game ID

- `name / localized_name` string

  Original title, and the title picked for the display language (show the latter)

- `cover` object | null

  Cover image with URL, size and main colour; may be null

- `first_release_date` string | null

  First release date; null when not yet announced

- `platforms` array

  Platforms it was released on, each with code, name and abbreviation

- `trophy_set_count` integer

  Number of linked trophy sets

### Errors

422 VALIDATION_FAILED All error codes

```bash
curl --get 'https://api.psray.net/games' \
  --data-urlencode 'q=horizon' \
  --data-urlencode 'per_page=1'
```

200

```json
{
  "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
  }
}
```

## Game details

GET `/games/{id}` Public

Returns a game's summary, aliases, release dates per platform and region, external links, and its trophy sets and series.

### Parameters

Parameter In Description

- `id` integer

  Path

  Required Game ID

- `lang` string

  Query

  Display language, for example zh-Hans, ja or en; see Display language

### Common fields

Only the most-used fields are listed; see the sample response for the full shape.

- `summary / localized_summary` string | null

  Summary, and the summary picked for the display language

- `aliases` string\[]

  Aliases, such as abbreviations or former titles

- `releases` array

  Release dates per platform and region

- `links` array

  Pages on external databases such as IGDB

- `trophy_sets` array

  Linked trophy sets, shaped like Browse trophy sets items

- `series` array

  Series it belongs to

### Errors

404 GAME_NOT_FOUND All error codes

```bash
curl 'https://api.psray.net/games/6679'
```

200

```json
{
  "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"
      }
    ]
  }
}
```

## Browse series

GET `/series` Public Paginated

Lists game series page by page. Search by series name or the titles of its games, and sort by popularity, latest release or name.

### Parameters

Parameter In Description

- `q` string

  Query

  Search terms, matched against the series name and the titles of its trophy sets

- `sort` string

  Query

  Order: popular by popularity, recent by latest release year, name by name

  Default `popular` `popular` `recent` `name`

- `page` integer

  Query

  Page number, starting at 1

  Default `1`

- `per_page` integer

  Query

  Items per page, 1 to 60

  Default `24`

- `lang` string

  Query

  Display language, for example zh-Hans, ja or en; see Display language

### Common fields

Only the most-used fields are listed; see the sample response for the full shape.

- `id` integer

  Series ID

- `name / localized_name` string

  Original title, and the title picked for the display language (show the latter)

- `covers` string\[]

  Up to 4 icons of key entries, for building a cover

- `stage_count / side_count` integer

  Number of main entries and spin-offs

- `trophy_set_count` integer

  Total number of trophy sets in the series

- `popularity` integer

  Popularity: the sum of players across the main entries

- `first_year / last_year` integer | null

  Release years of the first and latest main entries

### Errors

422 VALIDATION_FAILED All error codes

```bash
curl --get 'https://api.psray.net/series' \
  --data-urlencode 'q=horizon' \
  --data-urlencode 'per_page=1'
```

200

```json
{
  "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 details

GET `/series/{id}` Public

Returns the series' games in order, main entries and spin-offs alike, each with its trophy sets. Pass psnid to add that player's progress through the series.

### Parameters

Parameter In Description

- `id` integer

  Path

  Required Series ID

- `psnid` string

  Query

  Adds this player's progress through the series (public profiles only)

- `lang` string

  Query

  Display language, for example zh-Hans, ja or en; see Display language

### Common fields

Only the most-used fields are listed; see the sample response for the full shape.

- `description` string | null

  Series description

- `tier_totals` object

  Trophy totals per type across the main entries (the most-played version of each)

- `stages` array

  Entries in order; kind is main or side

- `stages[].entries` array

  Trophy sets for the entry, such as versions for different platforms

- `viewer` object | null

  Progress through the series of the player given as psnid; null when psnid is omitted

### Errors

404 SERIES_NOT_FOUND All error codes

```bash
curl 'https://api.psray.net/series/860'
```

200

```json
{
  "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 codes

All errors share one format, so you can tell them apart by `error.code`. These are the codes the endpoints on this page can return.

- 404 `NOT_FOUND`

  The path does not exist, or an ID is not a number

- 404 `TROPHY_SET_NOT_FOUND`

  The trophy set does not exist

- 404 `USER_NOT_FOUND`

  PSRay has no such player (never synced, or the account was deleted)

- 410 `USER_BANNED`

  The player has been permanently suspended

- 404 `GAME_NOT_FOUND`

  The game does not exist

- 404 `SERIES_NOT_FOUND`

  The series does not exist or is not published yet

- 405 `METHOD_NOT_ALLOWED`

  Wrong request method; the endpoints on this page accept GET only

- 422 `VALIDATION_FAILED`

  Invalid parameters; error.details explains why

- 500 `INTERNAL_ERROR`

  Internal server error; please try again later

Error

404

```json
{
  "error": {
    "code": "TROPHY_SET_NOT_FOUND",
    "message": "Trophy set not found."
  },
  "request_id": "01a21813-3f47-7265-bfc1-9bab0725ff8c"
}
```

Usage

## Usage notes

- Please cache results and avoid frequent polling or bulk scraping. There is no rate limit today, but abusive sources may be blocked.
- Responses may gain new fields over time, so ignore the ones you don't recognise. Fields not listed on this page may change; don't rely on them.
- The data is PSN's public trophy information, synced by PSRay at intervals, so it can lag behind. Players who set their profile to private don't have their trophy data published.
- Found a problem or have a suggestion? Let us know on the [Feedback](https://psray.net/feedback.md?lang=en) board.

The API is still evolving; changes will be reflected on this page.
