---
title: "社区动态信息流"
method: GET
path: "/v1/posts"
tags: ["社区"]
---

# 社区动态信息流

`GET /v1/posts`

## Request

- Base URL: `https://api.opcmenu.com`
- URL: `https://api.opcmenu.com/v1/posts`
- Auth: none declared

主理人社区的图文/视频动态流。未登录用 feed=recommend（默认）；following 流需登录， 匿名调用返回空。可用 topic 筛话题、authorId 看某位主理人的全部动态 （id 来自 searchPeople / listCreators），适合替用户快速了解「这个人最近在做什么」。

## Query parameters

- `feed` 'recommend' | 'following'
- `topic` string
- `authorId` string
- `limit` integer
- `cursor` string

## Response `200`

动态列表（时间倒序）

- object
  - `ok` boolean
  - `data` object
    - `items` PostCard[]
      - `id` string
      - `author` object
        - `id` string
        - `nickname` string
        - `avatarUrl` string, nullable
        - `isVerified` boolean
      - `title` string, nullable
      - `body` string: 正文
      - `media` object[]: 图片/视频附件
        - `kind` 'image' | 'video'
        - `url` string
        - `posterUrl` string, nullable: 视频封面
      - `topic` string, nullable: 话题
      - `linkUrl` string, nullable: 外链
      - `attachType` string, nullable: 挂卡类型：product / activity / park
      - `attachId` string, nullable: 挂卡对象 id（可按类型接 getProduct / getPark）
      - `likeCount` integer
      - `commentCount` integer
      - `pinned` boolean: 是否置顶
      - `createdAt` string, date-time
    - `nextCursor` string, nullable

---

[API](https://skmtc.dev/opcmenu/apis/opc-api.md) · [All operations](https://skmtc.dev/opcmenu/apis/opc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/opcmenu/apis/opc-api/revisions/ccdee07fb248?raw)
