Skip to main content gottem  — one API for every scraper.
Photography & Design
Verified

Pexels Scraper

Extract free stock photos, video thumbnails, photographer info, and resolution data from Pexels media library. Built on spider-browser .

Get started Docs
target
pexels.com
success rate
99.9%
latency
~4ms
Quick start

Extract data in minutes.

pexels-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://www.pexels.com/search/landscape/");
await page.content();

const data = await page.extractFields({
  title: "h3, [data-testid*='title'], a[class*='title']",
  photographer: ".photo-item__photographer",
  image: { selector: ".photo-item__img img", attribute: "src" },
  alt: { selector: ".photo-item__img img", attribute: "alt" },
});

console.log(data);
await spider.close();
ready to run · spider-browser · TypeScript
Fetch API

One endpoint for pexels.com.

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

POST /fetch/pexels.com/
Photo URLPhotographerResolutionOrientationTagsDownloads
cURL
curl -X POST https://api.spider.cloud/fetch/pexels.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/pexels.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/pexels.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

Fields you can pull.

Photo URLPhotographerResolutionOrientationTagsDownloads
Content

Asset metadata

Extract image metadata, tags, and license info from pexels.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 pexels.com.

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