Photos API
This is a public version of the Moose API. Please check this thread to keep in touch.
This is a public version of the Moose API. Please check this thread to keep in touch.
Search stock photos, list them, and get a photo by id with its high-resolution file and similar photos.
Get list of images by query
Text search query
Page number
Number of results per page. Max: 100
Return only specified fields. Example: "id,urls(thumb)". Please request only needed fields.
Query and result language
import { request } from 'undici'
const { statusCode, body } = await request('https://api-photos.icons8.com/api/v2/images/search?type=photo&query=coffee&page=1&perPage=10&fields=id%2Curls&orderBy=relevant&locale=en', {
headers: {
'api-key': 'YOUR_SECRET_TOKEN'
}
})
{
"total": 35344,
"images": [
{
"id": "5c7b907a8b658800017c5a9e",
"type": "photo",
"free": false,
"title": "Jogging is a great way to keep body in shape",
"urls": {
"thumb": {
"width": 288,
"height": 431,
"url": "https://moose-prod-var-cdn.icons8.com/be/photos/thumbs/XddV8vNNa7n7EMTb.jpg"
},
"small": {
"width": 357.8085106382979,
"height": 536,
"url": "https://moose-prod-var-cdn.icons8.com/sh/photos/previews/wc-7ZJXmShEX_2u6.jpg"
},
"medium": {
"width": 576,
"height": 862,
"url": "https://moose-prod-var-cdn.icons8.com/vz/photos/thumbs/rSX2IwSUh2g2BuVx.jpg"
},
"large": {
"width": 715.6170212765958,
"height": 1072,
"url": "https://moose-prod-var-cdn.icons8.com/pv/photos/previews/XdQsQKDplEtR2peb.jpg"
}
},
"assets": {
"models": [
"5c850e3c8b65880001aaab75"
],
"objects": [
"5d966bf18b65880001e16128"
],
"background": null
},
"categories": [
"Women",
"Sports",
"Technology"
],
"descriptions": [
"Jogging is a great way to keep body in shape",
"Young woman in sportswear running"
],
"tags": [
"Exhausting",
"Jogging"
]
}
]
}Search images
Get list of images
Page number
Number of results per page. Max: 100
Return only specified fields. Example: "id,urls(thumb)". Please request only needed fields.
Query and result language
import { request } from 'undici'
const { statusCode, body } = await request('https://api-photos.icons8.com/api/v2/images?type=photo&page=1&perPage=10&fields=id%2Curls&orderBy=latest&locale=en', {
headers: {
'api-key': 'YOUR_SECRET_TOKEN'
}
})
{
"total": 35344,
"images": [
{
"id": "5c7b907a8b658800017c5a9e",
"type": "photo",
"free": false,
"title": "Jogging is a great way to keep body in shape",
"urls": {
"thumb": {
"width": 288,
"height": 431,
"url": "https://moose-prod-var-cdn.icons8.com/be/photos/thumbs/XddV8vNNa7n7EMTb.jpg"
},
"small": {
"width": 357.8085106382979,
"height": 536,
"url": "https://moose-prod-var-cdn.icons8.com/sh/photos/previews/wc-7ZJXmShEX_2u6.jpg"
},
"medium": {
"width": 576,
"height": 862,
"url": "https://moose-prod-var-cdn.icons8.com/vz/photos/thumbs/rSX2IwSUh2g2BuVx.jpg"
},
"large": {
"width": 715.6170212765958,
"height": 1072,
"url": "https://moose-prod-var-cdn.icons8.com/pv/photos/previews/XdQsQKDplEtR2peb.jpg"
}
},
"assets": {
"models": [
"5c850e3c8b65880001aaab75"
],
"objects": [
"5d966bf18b65880001e16128"
],
"background": null
},
"categories": [
"Women",
"Sports",
"Technology"
],
"descriptions": [
"Jogging is a great way to keep body in shape",
"Young woman in sportswear running"
],
"tags": [
"Exhausting",
"Jogging"
]
}
]
}List images
Get a link to a high resolution asset of image
import { request } from 'undici'
const { statusCode, body } = await request('https://api-photos.icons8.com/api/v2/images/5c7b907a8b658800017c5a9e/hi-res', {
headers: {
'api-key': 'YOUR_SECRET_TOKEN'
}
})
{
"width": 4000,
"height": 6000,
"url": "https://ACCOUNT_ID.r2.cloudflarestorage.com/r2-icons8-moose-prod-assets/assets/sata/original/530/1ac525bb-9599-4a88-a824-f037791e67b0.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=KEY%2F20261028%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20261028T120000Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=SIGNATURE"
}High-resolution image
Get list of similars images by id
Page number
Number of results per page. Max: 100
Return only specified fields. Example: "id,urls(thumb)". Please request only needed fields.
Query and result language
import { request } from 'undici'
const { statusCode, body } = await request('https://api-photos.icons8.com/api/v2/images/5c7b907a8b658800017c5a9e/similars?page=1&perPage=10&fields=id%2Curls&locale=en', {
headers: {
'api-key': 'YOUR_SECRET_TOKEN'
}
})
{
"total": 35344,
"images": [
{
"id": "5c7b907a8b658800017c5a9e",
"type": "photo",
"free": false,
"title": "Jogging is a great way to keep body in shape",
"urls": {
"thumb": {
"width": 288,
"height": 431,
"url": "https://moose-prod-var-cdn.icons8.com/be/photos/thumbs/XddV8vNNa7n7EMTb.jpg"
},
"small": {
"width": 357.8085106382979,
"height": 536,
"url": "https://moose-prod-var-cdn.icons8.com/sh/photos/previews/wc-7ZJXmShEX_2u6.jpg"
},
"medium": {
"width": 576,
"height": 862,
"url": "https://moose-prod-var-cdn.icons8.com/vz/photos/thumbs/rSX2IwSUh2g2BuVx.jpg"
},
"large": {
"width": 715.6170212765958,
"height": 1072,
"url": "https://moose-prod-var-cdn.icons8.com/pv/photos/previews/XdQsQKDplEtR2peb.jpg"
}
},
"assets": {
"models": [
"5c850e3c8b65880001aaab75"
],
"objects": [
"5d966bf18b65880001e16128"
],
"background": null
},
"categories": [
"Women",
"Sports",
"Technology"
],
"descriptions": [
"Jogging is a great way to keep body in shape",
"Young woman in sportswear running"
],
"tags": [
"Exhausting",
"Jogging"
]
}
]
}Image similars
Get image by id
Return only specified fields. Example: "id,urls(thumb)". Please request only needed fields.
Query and result language
import { request } from 'undici'
const { statusCode, body } = await request('https://api-photos.icons8.com/api/v2/images/5c7b907a8b658800017c5a9e?fields=id%2Curls&locale=en', {
headers: {
'api-key': 'YOUR_SECRET_TOKEN'
}
})
{
"id": "5c7b907a8b658800017c5a9e",
"type": "photo",
"free": false,
"title": "Jogging is a great way to keep body in shape",
"urls": {
"thumb": {
"width": 288,
"height": 431,
"url": "https://moose-prod-var-cdn.icons8.com/be/photos/thumbs/XddV8vNNa7n7EMTb.jpg"
},
"small": {
"width": 357.8085106382979,
"height": 536,
"url": "https://moose-prod-var-cdn.icons8.com/sh/photos/previews/wc-7ZJXmShEX_2u6.jpg"
},
"medium": {
"width": 576,
"height": 862,
"url": "https://moose-prod-var-cdn.icons8.com/vz/photos/thumbs/rSX2IwSUh2g2BuVx.jpg"
},
"large": {
"width": 715.6170212765958,
"height": 1072,
"url": "https://moose-prod-var-cdn.icons8.com/pv/photos/previews/XdQsQKDplEtR2peb.jpg"
}
},
"assets": {
"models": [
"5c850e3c8b65880001aaab75"
],
"objects": [
"5d966bf18b65880001e16128"
],
"background": null
},
"categories": [
"Women",
"Sports",
"Technology"
],
"descriptions": [
"Jogging is a great way to keep body in shape",
"Young woman in sportswear running"
],
"tags": [
"Exhausting",
"Jogging"
]
}Image by id
Search transparent assets for editors, list them, and get an asset by id with its high-resolution file and similar assets.