> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/getting-started/commons-media.md).

# 在 Duaer 里查维基共享资源素材

在 Duaer 里：维基共享资源：可自由使用的图片、音频与视频，含文件链接、许可与作者。一次成功查询用 1 额度。
## 能拿到什么

Duaer 数据市场里的「维基共享资源素材」：维基共享资源：可自由使用的图片、音频与视频，含文件链接、许可与作者。查到结果时用 1 额度，结果交给数字组织的下一个节点。

从节点创建器选 Duaer 数据 → 维基共享资源素材，或打开 [数据市场](/zh/getting-started/data-market.md)。相关：[Pexels 图片与视频](/zh/getting-started/pexels.md)、[图标](/zh/getting-started/icons.md)。

## 适合做什么

- 为文章找一张可自由使用的照片。
- 找一段公有领域的音频。

## 在画布里检索

1. 打开节点创建器，选 Duaer 数据 → Wikimedia Commons media。
2. 填 Words（如 coffee beans）；Type（audio）可选。
3. Limit 默认 10，最大 20。执行。

查到结果才扣 1 额度；没有结果、输入有误或上游失败都不扣。

## 用 API 调用

- GET https://api.duaer.com/v1/data/commons-media?words=coffee%20beans
- Authorization: Bearer <Duaer key>

下方是与数据市场「复制技能」相同的英文技能，含参数、示例与返回字段。

## 调用技能（英文）

与数据市场「复制技能」一致。

```
---
name: duaer-commons-media
description: >-
  Duaer Wikimedia Commons media. Wikimedia Commons: free images, audio, and video with file links, license, and author.
  One successful search uses 1 Duaer credit.
---

# Duaer Wikimedia Commons media

Duaer Wikimedia Commons media searches Wikimedia Commons for freely licensed images, audio, and video, with the file link, license, and author for attribution.

## When to use

- Find a freely licensed photo for an article.
- Find a public-domain audio clip.

## When not to use

- Stock photos with a single simple license. Use https://skills.duaer.com/pexels.md.
- Icons. Use https://skills.duaer.com/icons.md.

## Call

`GET https://api.duaer.com/v1/data/commons-media?words=coffee%20beans`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `words`.

- `words` — Words describing the file, such as coffee beans.
- `type` — Optional. `image`, `audio`, or `video`. Default `image`.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/commons-media?words=coffee%20beans` — photos of coffee beans.
- `GET https://api.duaer.com/v1/data/commons-media?words=rain&type=audio` — audio recordings of rain.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `fileUrl`, `thumbnailUrl`, `mime` — file, 640-pixel thumbnail, and media type.
- `width`, `height`, `durationSeconds`, `sizeBytes` — size, and length for audio and video.
- `license`, `licenseUrl`, `artist`, `description` — license and attribution.

Follow each file license; many require crediting the artist.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/pexels.md — Duaer Pexels photos and videos
- https://skills.duaer.com/icons.md — Duaer Icons

```
## Questions

### Duaer 的维基共享资源素材检索扣多少额度？

查到结果时扣 1 额度；没有结果或出错不扣。

### Duaer 维基共享资源素材可以商用吗？

看每个文件的许可：CC0 与公有领域可直接用，CC BY 与 CC BY-SA 需要署名作者。Duaer 返回许可与作者。

## 相关

- [在 Duaer 里查Pexels 图片与视频](https://doc.duaer.com/zh/getting-started/pexels.md)
- [在 Duaer 里查图标](https://doc.duaer.com/zh/getting-started/icons.md)

