Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Default limits: 200 requests an hour and 20,000 a month; X-Ratelimit-Limit, X-Ratelimit-Remaining and X-Ratelimit-Reset come back on 2xx answers only.
  • Terms: show a prominent link to Pexels wherever results are displayed, and credit the photographer when possible.
  • Each photo carries src URLs per size (original, large2x, large, medium, small, portrait, landscape, tiny); each video carries video_files with quality, width, height and link. Lists carry next_page/prev_page URLs only when that page exists.

Endpoints

List curated photos

Get a photo

Get a video

  • The documented path really repeats videos: /v1/videos/videos/{id}.

List the user’s collections

List a collection’s media