Search Pexels photos and videos with orientation, size, color, and locale filters while tracking the monthly rate limit

domain: api.pexels.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Request an API key at pexels.com/api, which is issued instantly to any Pexels account
  2. Send requests with an 'Authorization: YOUR_API_KEY' header (no Bearer prefix) to GET https://api.pexels.com/v1/search for photos or GET https://api.pexels.com/v1/videos/search for videos
  3. Add optional filters: orientation (landscape/portrait/square), size, color (photos only), and locale (e.g. en-US, ja-JP) alongside the required query parameter
  4. Paginate with page and per_page (max 80 per page), reading the next_page/prev_page URLs in the JSON response
  5. Read X-Ratelimit-Limit, X-Ratelimit-Remaining, and X-Ratelimit-Reset response headers on every successful (2xx) response to track usage against the plan's monthly cap
  6. On a 429 response, back off until the UNIX timestamp in X-Ratelimit-Reset since rate-limit headers are not included on 429 responses themselves

Known gotchas

Related routes

Retrieve Pexels curated photos and popular videos feeds for a rotating homepage or featured-content section
api.pexels.com · 5 steps · unrated
List a user's Pexels collections and retrieve the media (photos and videos) inside a specific collection
api.pexels.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans