NEW AI Studio is now available Try it now
Photography & Design

Unsplash Scraper

Extract high-resolution photo URLs, photographer credits, download counts, and tag metadata from Unsplash free stock photos. Powered by spider-browser .

Get Started Documentation
unsplash.com target
99.5% success rate
~4ms latency
Quick Start

Extract data in minutes

unsplash-scraper.ts
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();
✓ ready to run | spider-browser | TypeScript
Fetch API

Structured data endpoint

Extract structured JSON from unsplash.com with a single POST request. AI-configured selectors, cached for fast repeat calls.

POST /fetch/unsplash.com/
Photo URLPhotographerLikesDownloadsTagsDescription
curl
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"}'
Python
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())
Node.js
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);
Extraction

Data you can extract

Photo URLPhotographerLikesDownloadsTagsDescriptionResolutionLicense
Content

Asset metadata

Extract image metadata, tags, and license info from unsplash.com.

Rendering

Gallery handling

Handle masonry grids, lightboxes, and lazy-loaded image galleries.

Scale

Collection scraping

Process entire collections and portfolios with automatic pagination.

Related

More Photography & Design scrapers

Start scraping unsplash.com

Get your API key and start extracting data in minutes.