---
title: "解析作品链接"
method: GET
path: "/api/v2/channels/works/link-info"
tags: ["渠道管理/作品"]
---

# 解析作品链接

`GET /api/v2/channels/works/link-info`

## Request

- Base URL: `https://aitoearn.cn`
- URL: `https://aitoearn.cn/api/v2/channels/works/link-info`
- Auth: API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/aitoearn/apis/aitoearn-api/docs/api/v2/channels/works/link-info/get.ts> (a function with typed inputs; its response is checked against the schema)

接口说明：按指定平台解析社媒作品链接，返回已识别的作品基础信息、快照数组和平台扩展字段。

## Query parameters

- `platform` 'douyin' | 'xhs' | 'wxSph' | 'KWAI' | 'youtube' | 'wxGzh' | 'bilibili' | 'twitter' | 'tiktok' | 'facebook' | 'instagram' | 'threads' | 'pinterest' | 'linkedin' | 'google_business', required: 平台
- `link` string, required: 作品链接
- `accountId` string: 账号 ID

## Response `200`

请求已被服务处理。业务是否成功以响应体 code === 0 为准。

- object
  - `data` object
    - `platform` string
    - `work` object
      - `id` string
      - `url` string
      - `mediaType` string
    - `snapshots` object[]
    - `extra` object
      - `dataId` string
      - `uniqueId` string
      - `type` string
      - `videoType` string
      - `resolvedUrl` string
  - `code` integer: 业务状态码。0 表示成功，非 0 表示业务错误。
  - `message` string: 响应消息。
  - `requestId` string: 请求 ID。
  - `timestamp` integer: 错误响应时间戳，Unix 毫秒。

## Changes

- **2026-11-03** `7cc8f21c4c96`: 7 breaking, 15 warning, 21 info
  - the response property `code` became optional for the status `200`
  - the response property `data/platform` became optional for the status `200`
  - the response property `data/work/id` became optional for the status `200`
  - the response property `message` became optional for the status `200`
  - …39 more

[Operation history](https://skmtc.dev/aitoearn/apis/aitoearn-api/changes/api/v2/channels/works/link-info/get.md)

---

[API](https://skmtc.dev/aitoearn/apis/aitoearn-api.md) - [All operations](https://skmtc.dev/aitoearn/apis/aitoearn-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aitoearn/apis/aitoearn-api/revisions/7cc8f21c4c96?raw)
