One simple API to search and optimize images from Unsplash, StockSnap, and Pixabay.
The StockIt API aggregates millions of free-to-use images from the web's best sources with built-in optimization.
Search for images across all supported providers.
q
string
Search query
lim
integer
Results to return (default: 30, max: 500)
ext
string
Format: jpg, png, webp
quality
integer
Compression quality (1-100, default: 90)
orientation
string
Filter: p (portrait), l (landscape), s (square)
{
"count": 1,
"query": "cyberpunk",
"results": [
{
"id": "unsplash_abc",
"source": "unsplash",
"url": "..."
}
]
}
Specialized endpoints for different use cases.
Fetches random images from curated topics or search results.
Query a specific provider directly.