# Pexels Integration via LowCodeAPI
**Last Updated**: February 10, 2026
## Overview
Stock photos and videos
**Categories:**
- {'id': 'media-assets', 'name': 'Media & Assets'}
## Base Endpoint
https://api.lowcodeapi.com/pexels
**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`
## Authentication
**Type:** TOKEN
**Official Documentation:** https://www.pexels.com/api/documentation/#authorization
## URL Format (Important)
LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.
### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`
### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`
### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider
## API Categories
## Common Endpoints
### Featured Collections
**Method:** GET
**LowCodeAPI Path:** /v1/collections/featured
**New Format URL:**
https://api.lowcodeapi.com/pexels/v1/collections/featured?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/pexels/v1/collections/featured?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| page | number | |
| per_page | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/pexels/v1/collections/featured?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://www.pexels.com/api/documentation/#collections-featured
### My Collections
**Method:** GET
**LowCodeAPI Path:** /v1/collections
**New Format URL:**
https://api.lowcodeapi.com/pexels/v1/collections?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/pexels/v1/collections?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| page | number | |
| per_page | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/pexels/v1/collections?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://www.pexels.com/api/documentation/#collections-all
### Collections Media
**Method:** GET
**LowCodeAPI Path:** /v1/collections/:id
**New Format URL:**
https://api.lowcodeapi.com/pexels/v1/collections/:id?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/pexels/v1/collections/id?id={id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| id | number | |
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| type | enum | |
| page | number | |
| per_page | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/pexels/v1/collections/:id?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://www.pexels.com/api/documentation/#collections-media
### Search for Photos
**Method:** GET
**LowCodeAPI Path:** /v1/search
**New Format URL:**
https://api.lowcodeapi.com/pexels/v1/search?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/pexels/v1/search?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| color | string | |
| locale | enum | |
| orientation | enum | |
| page | number | |
| per_page | number | |
| query | string | |
| size | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/pexels/v1/search?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://www.pexels.com/api/documentation/#photos-search
### Curated Photos
**Method:** GET
**LowCodeAPI Path:** /v1/curated
**New Format URL:**
https://api.lowcodeapi.com/pexels/v1/curated?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/pexels/v1/curated?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| page | number | |
| per_page | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/pexels/v1/curated?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://www.pexels.com/api/documentation/#photos-curated
### Get a Photo
**Method:** GET
**LowCodeAPI Path:** /v1/photos/:id
**New Format URL:**
https://api.lowcodeapi.com/pexels/v1/photos/:id?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/pexels/v1/photos/id?id={id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| id | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/pexels/v1/photos/:id?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://www.pexels.com/api/documentation/#photos-show
### Search for Videos
**Method:** GET
**LowCodeAPI Path:** /videos/search
**New Format URL:**
https://api.lowcodeapi.com/pexels/videos/search?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/pexels/videos/search?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| locale | enum | |
| orientation | string | |
| page | number | |
| per_page | number | |
| query | string | |
| size | enum | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/pexels/videos/search?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://www.pexels.com/api/documentation/#videos-search
### Popular Videos
**Method:** GET
**LowCodeAPI Path:** /videos/popular
**New Format URL:**
https://api.lowcodeapi.com/pexels/videos/popular?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/pexels/videos/popular?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| max_duration | number | |
| min_duration | number | |
| min_height | number | |
| min_width | number | |
| page | number | |
| per_page | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/pexels/videos/popular?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://www.pexels.com/api/documentation/#videos-popular
### Get a Video
**Method:** GET
**LowCodeAPI Path:** /videos/videos/:id
**New Format URL:**
https://api.lowcodeapi.com/pexels/videos/videos/:id?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/pexels/videos/videos/id?id={id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| id | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/pexels/videos/videos/:id?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://www.pexels.com/api/documentation/#videos-show
## Usage Examples
### Example 1: Basic API Request (New Format)
Making a simple GET request to retrieve resources:
```bash
# Get a list of resources - no path parameters needed
curl -X GET "https://api.lowcodeapi.com/pexels/endpoint?api_token=YOUR_API_TOKEN"
```
### Example 2: Request with Path Parameters (New Format)
Retrieving a specific resource using its ID:
```bash
# Get specific resource by ID - replace RESOURCE_ID with actual ID from previous response
curl -X GET "https://api.lowcodeapi.com/pexels/endpoint/{RESOURCE_ID}?api_token=YOUR_API_TOKEN"
# Note: RESOURCE_ID typically comes from a previous list request or from the provider dashboard
```
### Example 3: POST Request with Body (New Format)
Creating a new resource:
```bash
# Create a new resource
curl -X POST "https://api.lowcodeapi.com/pexels/endpoint?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"field": "value", "another_field": "another_value"}'
```
## Error Handling
LowCodeAPI returns standard HTTP status codes. Common errors:
| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |
All error responses include error details:
```json
{
"data": {
"error": {
"message": "Error description",
"code": "ERROR_CODE"
}
}
}
```
## Complete Endpoint Reference
| Endpoint | Method | Category |
|----------|--------|----------|
| Featured Collections | GET | Collection |
| My Collections | GET | Collection |
| Collections Media | GET | Collection |
| Search for Photos | GET | Photos |
| Curated Photos | GET | Photos |
| Get a Photo | GET | Photos |
| Search for Videos | GET | Videos |
| Popular Videos | GET | Videos |
| Get a Video | GET | Videos |
## API Definition Endpoints
You can fetch the complete API specification for this provider:
**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/pexels/openapi'
```
**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/pexels/definition'
```
## Response Format
All responses are wrapped in a `data` key:
```json
{
"data": {
// Actual response from provider (object or array)
}
}
```