入门
在 Duaer 里查Pexels 图片与视频
在 Duaer 里:Pexels:免费商用图片与视频,含摄影师署名与文件链接。一次成功查询用 1 额度。
能拿到什么
Duaer 数据市场里的「Pexels 图片与视频」:Pexels:免费商用图片与视频,含摄影师署名与文件链接。查到结果时用 1 额度,结果交给数字组织的下一个节点。
从节点创建器选 Duaer 数据 → Pexels 图片与视频,或打开 数据市场。相关:Pixabay 图片与视频、维基共享资源素材。
适合做什么
- 为落地页找一张主视觉照片。
- 为短视频找竖版素材视频。
在画布里检索
- 打开节点创建器,选 Duaer 数据 → Pexels photos and videos。
- 填 Words(如 coffee shop);Type(video)、Orientation(portrait)可选。
- Limit 默认 10,最大 20。执行。
查到结果才扣 1 额度;没有结果、输入有误或上游失败都不扣。
用 API 调用
- GET https://api.duaer.com/v1/data/pexels?words=coffee%20shop
- Authorization: Bearer <Duaer key>
下方是与数据市场「复制技能」相同的英文技能,含参数、示例与返回字段。
调用技能(英文)
与数据市场「复制技能」一致。
---
name: duaer-pexels
description: >-
Duaer Pexels photos and videos. Pexels: free stock photos and videos with photographer credit and file links.
One successful search uses 1 Duaer credit.
---
# Duaer Pexels photos and videos
Duaer Pexels photos and videos searches Pexels stock photos or videos and returns file links with the photographer. Duaer holds the upstream API key; you only send your Duaer key.
## When to use
- Find a hero photo for a landing page.
- Find a portrait stock video for a short.
## When not to use
- Illustrations and vectors. Use https://skills.duaer.com/pixabay.md.
- Sound effects. Use https://skills.duaer.com/freesound.md.
## Call
`GET https://api.duaer.com/v1/data/pexels?words=coffee%20shop`
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 photo or video, such as coffee shop.
- `type` — Optional. `photo` or `video`. Default `photo`.
- `orientation` — Optional. `landscape`, `portrait`, or `square`.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.
## Examples
- `GET https://api.duaer.com/v1/data/pexels?words=coffee%20shop` — coffee shop photos.
- `GET https://api.duaer.com/v1/data/pexels?words=ocean&type=video&orientation=portrait` — portrait ocean videos.
## Result
The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:
- `mediaType`, `pexelsId`, `width`, `height`, `durationSeconds` — photo or video and its size.
- `imageUrl`, `originalUrl`, `thumbnailUrl`, `videoUrl` — file links; videos pick an MP4 up to 1920 pixels wide.
- `author`, `authorUrl`, `averageColor`, `license` — photographer or author and the Pexels License.
Pexels asks you to credit the photographer and Pexels where you can.
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/pixabay.md — Duaer Pixabay images and videos
- https://skills.duaer.com/commons-media.md — Duaer Wikimedia Commons media
常见问题
Duaer 的Pexels 图片与视频检索扣多少额度?
查到结果时扣 1 额度;没有结果或出错不扣。
Duaer Pexels 图片与视频需要署名吗?
Pexels 许可允许免费商用且不强制署名,但建议注明摄影师与 Pexels。Duaer 返回摄影师与主页链接。
同组