Unsplash Scraper
Extract high-resolution photo URLs, photographer credits, download counts, and tag metadata from Unsplash free stock photos. Powered by spider-browser .
Extract data in minutes
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://unsplash.com/s/photos/nature");
await page.content();
const data = await page.evaluate(`(() => {
const photos = [];
document.querySelectorAll("[data-testid='photo-grid-masonry'] figure").forEach(el => {
const img = el.querySelector("img[srcset]");
const src = img?.getAttribute("src");
const alt = img?.getAttribute("alt");
const photographer = el.querySelector("a[rel='nofollow']")?.textContent?.trim();
if (src) photos.push({ src, alt, photographer });
});
return JSON.stringify({ total: photos.length, photos: photos.slice(0, 10) });
})()`);
console.log(JSON.parse(data));
await spider.close(); Structured data endpoint
Extract structured JSON from unsplash.com with a single POST request. AI-configured selectors, cached for fast repeat calls.
curl -X POST https://api.spider.cloud/fetch/unsplash.com/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"return_format": "json"}' import requests
resp = requests.post(
"https://api.spider.cloud/fetch/unsplash.com/",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={"return_format": "json"},
)
print(resp.json()) const resp = await fetch("https://api.spider.cloud/fetch/unsplash.com/", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({ return_format: "json" }),
});
const data = await resp.json();
console.log(data); Data you can extract
Asset metadata
Extract image metadata, tags, and license info from unsplash.com.
Gallery handling
Handle masonry grids, lightboxes, and lazy-loaded image galleries.
Collection scraping
Process entire collections and portfolios with automatic pagination.
More Photography & Design scrapers
Extract free stock photos, video thumbnails, photographer info, and resolution data from Pexels media library.
Extract stock image metadata, contributor profiles, licensing info, and keyword tags from Shutterstock library.
Extract editorial and creative image metadata, photographer credits, and rights info from Getty Images archive.
Start scraping unsplash.com
Get your API key and start extracting data in minutes.