StockSnap Scraper
Extract high-resolution CC0 stock photos, trending tags, view counts, and download data from StockSnap library. Built on spider-browser .
- target
- stocksnap.io
- success rate
- 99.9%
- latency
- ~4ms
/fetch/stocksnap.io/ curl -X POST https://api.spider.cloud/fetch/stocksnap.io/ \ -H "Authorization: Bearer $SPIDER_API_KEY" \ -H "Content-Type: application/json" \ -d '{"return_format": "json"}'
{
"url": "https://stocksnap.io/",
"status": 200,
"data": {
"photo_title": "string",
"photographer": "string",
"views": "string",
"downloads": "string",
"tags": "string",
"date_added": "string"
}
} # StockSnap Scraper
**Photo title**: string
**Photographer**: string
**Views**: string
**Downloads**: string
**Tags**: string
**Date added**: string Extract data in minutes.
Structured JSON from stocksnap.io with a single POST. AI-resolved selectors, cached on the first call.
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://stocksnap.io/search/office+workspace");
await page.content();
const data = await page.evaluate(`(() => {
const photos = [];
document.querySelectorAll(".photo-grid-item").forEach(el => {
const img = el.querySelector("img");
const src = img?.getAttribute("src");
const alt = img?.getAttribute("alt");
const views = el.querySelector(".photo-views")?.textContent?.trim();
if (src) photos.push({ src, alt, views });
});
return JSON.stringify({ total: photos.length, photos: photos.slice(0, 10) });
})()`);
console.log(JSON.parse(data));
await spider.close(); curl -X POST https://api.spider.cloud/fetch/stocksnap.io/ \
-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/stocksnap.io/",
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/stocksnap.io/", {
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); Fields you can pull.
Asset metadata
Extract image metadata, tags, and license info from stocksnap.io.
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.
Unsplash Scraper
Extract high-resolution photo URLs, photographer credits, download counts, and tag metadata from Unsplash free stock photos.
Pexels Scraper
Extract free stock photos, video thumbnails, photographer info, and resolution data from Pexels media library.
Shutterstock Scraper
Extract stock image metadata, contributor profiles, licensing info, and keyword tags from Shutterstock library.
Start scraping stocksnap.io.
Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.