Skip to main content
AI Studio  add-on for Spider.
Photography & Design
unsplash.com Verified

Unsplash Scraper

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

Get started Docs
target
unsplash.com
success rate
99.9%
latency
~4ms
POST /fetch/unsplash.com/
return_format
curl -X POST https://api.spider.cloud/fetch/unsplash.com/ \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_format": "json"}'
200 OK · cache hit · response shape
{
  "url": "https://unsplash.com/",
  "status": 200,
  "data": {
    "photo_url": "string",
    "photographer": "string",
    "likes": "string",
    "downloads": "string",
    "tags": "string",
    "description": "string",
    "resolution": "string",
    "license": "string"
  }
}
Quick start

Extract data in minutes.

Structured JSON from unsplash.com with a single POST. AI-resolved selectors, cached on the first call.

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
Extraction

Fields you can pull.

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

Start scraping unsplash.com.

Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.