# n8n-nodes-pexels

**Full Documentation:**
- 🇻🇳 [Tiếng Việt](https://dps.media/node-n8n-cho-pexels-tu-dong-hoa-tim-kiem-anh-va-video-mien-phi/)
- 🇺🇸 [English](https://dps.media/en/n8n-node-for-pexels-automate-search-photos-and-videos-free/)
- 🇨🇳 [中文](https://dps.media/zh/pexels-%e7%9a%84-n8n-%e8%8a%82%e7%82%b9%e8%87%aa%e5%8a%a8%e5%8c%96%e5%85%8d%e8%b4%b9%e5%9b%be%e7%89%87%e5%92%8c%e8%a7%86%e9%a2%91%e6%90%9c%e7%b4%a2/)

Community node pack for n8n to search and browse free photos and videos from the Pexels API.

## Features
- Search photos with filters (orientation, color, size, locale)
- Browse curated photos and fetch single photo details
- Search and browse popular videos with duration/size constraints
- List your collections, featured collections, and retrieve collection media (photos/videos)
- Handles pagination automatically with `Return All` or `Limit` controls

## Get Pexels API Key

For complete instructions on getting your API key, visit our detailed guide: https://dps.media/node-n8n-cho-pexels-tu-dong-hoa-tim-kiem-anh-va-video-mien-phi/

## Credentials
1. In n8n, add new credentials of type **Pexels API**
2. Set the **API Key** value from Pexels
3. Leave **Base URL** as `https://api.pexels.com` unless instructed by Pexels to change it

## Operations
- **Photos**: Search, Curated, Get
- **Videos**: Search, Popular, Get
- **Collections**: List, List Featured, Get Collection Media (supports type filter photos/videos/all)

## Usage notes
- The nodes respect Pexels limits (max 80 items per request) and will paginate until the requested limit is reached.
- The collection media response includes a `collection` object on each item with the collection metadata for easier tracing.
- Colors and other filters map directly to the Pexels REST parameters; refer to the official docs for accepted values.
- API Rate Limit: 200 requests per hour and 20,000 requests per month. Contact Pexels for higher limits with attribution examples.

## API Limitations

### ⚠️ **Rate Limits**
- Default: 200 requests/hour and 20,000 requests/month
- For unlimited requests, contact Pexels with attribution examples

### ✅ **Allowed Usage**
- Free to use all photos and videos
- No attribution required (but appreciated)
- Modify photos/videos as needed
- Commercial use allowed

### ❌ **Not Allowed**
- Selling unaltered copies
- Offensive use of identifiable people
- Implying endorsement
- Redistribution on other stock platforms

## Development
```
npm install
npm run build
```
The build copies the SVG icon into `dist/nodes` alongside the compiled node files.

## More Information
For detailed tutorials, examples, and advanced configurations, visit our blog:
**https://dps.media/node-n8n-cho-pexels-tu-dong-hoa-tim-kiem-anh-va-video-mien-phi/**

## Support
- For support and issues: https://dps.media/node-n8n-cho-pexels-tu-dong-hoa-tim-kiem-anh-va-video-mien-phi/
- Blog: https://dps.media/node-n8n-cho-pexels-tu-dong-hoa-tim-kiem-anh-va-video-mien-phi/