# API未返回帖子名称值

**URL:** <https://meta.discourse.org/t/api-is-not-returning-post-name-value/360327>\
**Category:** Development\
**Created:** [2025年四月4日 01:21 UTC](https://meta.discourse.org/t/api-is-not-returning-post-name-value/360327 "2025-04-04T01:21:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeremy_d/32/497534_2.png) [@Jeremy\_D](https://meta.discourse.org/u/Jeremy_D)\
**Post date:** [2025年四月4日 01:21 UTC](https://meta.discourse.org/t/api-is-not-returning-post-name-value/360327/1 "2025-04-04T01:21:01Z")

</div>

我正在尝试通过 API 获取帖子详情，但似乎我查询的所有帖子的 `name` 字段的响应都为 `null`。

示例截断响应：

```plaintext
{
    "id": 15,
    "name": null,
    "username": "Jeremy",
    "avatar_template": "/user_avatar/redacted/jeremy/{size}/3_2.png",
    "created_at": "2025-01-28T05:00:56.331Z",
    "cooked": "<p>Placeholder content tbd</p>",
    "post_number": 1,
    "post_type": 1,
    "posts_count": 1,
    "updated_at": "2025-01-28T05:00:56.331Z",

```

还有一个我认为可能包含帖子名称的值，即 `user_title`，但它也为 `null`。是不是我遗漏了某个设置？是的，这些帖子确实有标题。

---

_[View the full topic](https://meta.discourse.org/t/api-is-not-returning-post-name-value/360327)._
