# Unsplash Integration via LowCodeAPI
**Last Updated**: February 10, 2026
## Overview
Stock photos
**Categories:**
- {'id': 'media-assets', 'name': 'Media & Assets'}
## Base Endpoint
https://api.lowcodeapi.com/unsplash
**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`
## Authentication
**Type:** TOKEN
**Official Documentation:** https://unsplash.com/documentation
## 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
### List collections
**Method:** GET
**LowCodeAPI Path:** /collections
**New Format URL:**
https://api.lowcodeapi.com/unsplash/collections?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/unsplash/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/unsplash/collections?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://unsplash.com/documentation#list-collections
### Get a collection
**Method:** GET
**LowCodeAPI Path:** /collections/:id
**New Format URL:**
https://api.lowcodeapi.com/unsplash/collections/:id?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/unsplash/collections/id?id={id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/unsplash/collections/:id?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://unsplash.com/documentation#get-a-collection
### Get a collection's photos
**Method:** GET
**LowCodeAPI Path:** /collections/:id/photos
**New Format URL:**
https://api.lowcodeapi.com/unsplash/collections/:id/photos?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/unsplash/collections/id/photos?id={id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| id | string | |
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| orientation | string | |
| page | number | |
| per_page | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/unsplash/collections/:id/photos?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://unsplash.com/documentation#get-a-collections-photos
### List a collection's related collections
**Method:** GET
**LowCodeAPI Path:** /collections/:id/related
**New Format URL:**
https://api.lowcodeapi.com/unsplash/collections/:id/related?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/unsplash/collections/id/related?id={id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/unsplash/collections/:id/related?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://unsplash.com/documentation#list-a-collections-related-collections
### Create a new collection
**Method:** POST
**LowCodeAPI Path:** /collections
**New Format URL:**
https://api.lowcodeapi.com/unsplash/collections?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/unsplash/collections?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| description | string | |
| private | boolean | |
| title | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/unsplash/collections?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://unsplash.com/documentation#create-a-new-collection
### Update an existing collection
**Method:** PUT
**LowCodeAPI Path:** /collections/:id
**New Format URL:**
https://api.lowcodeapi.com/unsplash/collections/:id?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/unsplash/collections/id?id={id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| id | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| description | string | |
| private | string | |
| title | string | |
**Example Request (New Format):**
```bash
curl -X PUT 'https://api.lowcodeapi.com/unsplash/collections/:id?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://unsplash.com/documentation#update-an-existing-collection
### Delete a collection
**Method:** DELETE
**LowCodeAPI Path:** /collections/:id
**New Format URL:**
https://api.lowcodeapi.com/unsplash/collections/:id?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/unsplash/collections/id?id={id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| id | string | |
**Example Request (New Format):**
```bash
curl -X DELETE 'https://api.lowcodeapi.com/unsplash/collections/:id?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://unsplash.com/documentation#delete-a-collection
### Add a photo to a collection
**Method:** POST
**LowCodeAPI Path:** /collections/:collection_id/add
**New Format URL:**
https://api.lowcodeapi.com/unsplash/collections/:collection_id/add?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/unsplash/collections/collection_id/add?collection_id={collection_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| collection_id | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| photo_id | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/unsplash/collections/:collection_id/add?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://unsplash.com/documentation#add-a-photo-to-a-collection
### Remove a photo from a collection
**Method:** GET
**LowCodeAPI Path:** /collections/:collection_id/remove
**New Format URL:**
https://api.lowcodeapi.com/unsplash/collections/:collection_id/remove?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/unsplash/collections/collection_id/remove?collection_id={collection_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| collection_id | string | |
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| photo_id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/unsplash/collections/:collection_id/remove?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://unsplash.com/documentation#remove-a-photo-from-a-collection
### Get the users profile
**Method:** GET
**LowCodeAPI Path:** /me
**New Format URL:**
https://api.lowcodeapi.com/unsplash/me?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/unsplash/me?api_token=YOUR_API_TOKEN
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/unsplash/me?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://unsplash.com/documentation#get-the-users-profile
## 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/unsplash/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/unsplash/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/unsplash/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 |
|----------|--------|----------|
| List collections | GET | Collections |
| Get a collection | GET | Collections |
| Get a collection's photos | GET | Collections |
| List a collection's related collections | GET | Collections |
| Create a new collection | POST | Collections |
| Update an existing collection | PUT | Collections |
| Delete a collection | DELETE | Collections |
| Add a photo to a collection | POST | Collections |
| Remove a photo from a collection | GET | Collections |
| Get the users profile | GET | Current user |
| Update the current user's profile | PUT | Current user |
| List photos | GET | Photos |
| Get a photo | GET | Photos |
| Get a random photo | GET | Photos |
| Get a photo's statistics | GET | Photos |
| Track a photo download | GET | Photos |
| Update a photo | PUT | Photos |
| Like a photo | POST | Photos |
| Unlike a photo | DELETE | Photos |
| Search photos | GET | Search |
| Search collections | GET | Search |
| Search users | GET | Search |
| Totals | GET | Stats |
| Month | GET | Stats |
| List topics | GET | Topics |
| Get a topic | GET | Topics |
| Get a topic's photos | GET | Topics |
| Get a user's public profile | GET | Users |
| Get a user's portfolio link | GET | Users |
| List a user’s photos | GET | Users |
| List a user's liked photos | GET | Users |
| List a user's collections | GET | Users |
| Get a user's statistics | GET | Users |
## API Definition Endpoints
You can fetch the complete API specification for this provider:
**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/unsplash/openapi'
```
**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/unsplash/definition'
```
## Response Format
All responses are wrapped in a `data` key:
```json
{
"data": {
// Actual response from provider (object or array)
}
}
```