---
title: "Get Subject Relations"
method: GET
path: "/v0/subjects/{subject_id}/subjects"
tags: ["条目"]
---

# Get Subject Relations

`GET /v0/subjects/{subject_id}/subjects`

## Request

- The document declares no server URL.
- Auth: HTTP bearer

## Path parameters

- `subject_id` integer, required: 条目 ID

## Response `200`

Successful Response

- V0SubjectRelation[]
  - `id` integer, required
  - `type` integer, required
  - `name` string, required
  - `name_cn` string, required
  - `images` Images
    - `large` string, required
    - `common` string, required
    - `medium` string, required
    - `small` string, required
    - `grid` string, required
  - `relation` string, required

## Other responses

- `400`: Validation Error
- `404`: Not Found

## Changes

- **2022-11-19** (v0) `bb6bcec42206`: 2 warning, 2 info
  - removed the optional property `detail` from the response with the `400` status
  - removed the optional property `detail` from the response with the `404` status
  - added the optional property `details` to the response with the `400` status
  - added the optional property `details` to the response with the `404` status
- **2022-06-21** (v0) `849933a48cb4`: 1 breaking
  - for the `path` request parameter `subject_id`, the min was increased from `0.00` to `1.00`
- **2022-05-07** (v0) `588c3a75d5cd`: 4 breaking, 4 warning
  - added `subschema #1, subschema #2` to the `detail` response property `oneOf` list for the response status `400`
  - added `subschema #1, subschema #2` to the `detail` response property `oneOf` list for the response status `404`
  - the `detail` response's property type changed from `object` to no type for status `400`
  - the `detail` response's property type changed from `object` to no type for status `404`
  - …4 more
- **2022-04-23** (v0) `c74b08b9afd8`: 2 breaking
  - the response property `detail` became optional for the status `400`
  - the response property `detail` became optional for the status `404`
- **2022-04-20** (v0) `00677f33719a`: 1 info
  - api operation id `get_subject_relations_v0_subjects__subject_id__subjects_get` removed and replaced with `getRelatedSubjectsBySubjectId`

[Operation history](https://skmtc.dev/bangumi/apis/bangumi-open-api/changes/v0/subjects/:subject_id/subjects/get.md)

---

[API](https://skmtc.dev/bangumi/apis/bangumi-open-api.md) - [All operations](https://skmtc.dev/bangumi/apis/bangumi-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bangumi/apis/bangumi-open-api/revisions/6aafdbda7895?raw)
