Skip to content
Integration

Pexels integrations and automation

Say what should happen in Pexels, in plain words. Whenever builds it and runs it on a schedule, webhook or app event.

Connection requirements, provider permissions and optional AI usage apply. Read the runtime limits.

No credit card needed.

Pexels on Whenever

About Pexels

Pexels offers a free API that provides access to a vast library of high-quality photos and videos, enabling seamless integration into applications and websites.

How Whenever connects

Through its API, with the provider’s credentials and permissions.

Build it from your AI client

Connect Claude, Cursor or Codex to the Whenever MCP server. Your coding agent builds and deploys the Pexels workflow. It then runs on Whenever, with the chat closed.

Set up the Whenever MCP server

Plan your Pexels workflow

Teams usually reach for the Pexels API when a recurring piece of content needs a picture and nobody wants to open a browser tab to find one. A weekly newsletter needs a header image that matches its topic, a product catalogue draft needs placeholder photography, or a social calendar needs a short list of candidate shots for an editor to pick from. Pexels answers those requests with photo and video search, a curated photo feed, and collections, and each result carries the photographer name, a link back to the Pexels page, and several pre-sized image URLs.

Requests are authenticated with a single API key sent in the Authorization header; there is no user login involved, so a workflow sees the same public library as anyone else rather than an account-specific view. Search accepts a query plus filters for orientation (landscape, portrait or square), minimum size, colour and locale, and results are paginated with a per-page count. Videos have their own search, popular and lookup endpoints under the same API and return video files rather than one photo URL, which matters if a later step expects a single image link.

The Pexels guidelines ask you to show a prominent link to Pexels and to credit photographers when possible, for example “Photo by Jane Doe on Pexels” linking to the photo page. By default a key is limited to 200 requests per hour and 20,000 per month; successful responses carry X-Ratelimit headers showing what remains of the monthly quota, and a 429 response means the limit was hit. A workflow that searches once per scheduled item fits comfortably; a loop that pages through thousands of results to build a local archive does not.

A practical design stores the chosen photo id next to the item it illustrates, so the next run does not pick the same image twice and the attribution text can be rebuilt later. If an optional AI step turns an article title into search keywords, its wording can differ from run to run; keeping the final pick tied to a stored id means the published image does not change after an editor has approved it.

Pexels workflow examples

Starter briefs to set up with your accounts, not finished workflows.

Candidate header images for the weekly newsletter

Gives an editor three landscape options with credit lines already written, instead of a blank image slot.

Build this workflow

Short stock clips for a social calendar

Uses the video search endpoint and keeps one file so the next step receives a single link.

Build this workflow

Monthly curated-photo mood board

A low-volume read of the curated feed that respects the attribution guidelines.

Build this workflow

Related apps for your workflows

All integrations

Pexels FAQs

How many requests does the Pexels API allow?

By default 200 requests per hour and 20,000 per month. Successful responses include X-Ratelimit-Limit, X-Ratelimit-Remaining and X-Ratelimit-Reset for the monthly period. Pexels says you can contact it for a higher limit, and that apps meeting its API terms can get unlimited requests for free.

Do I have to credit photographers when using Pexels images from the API?

The guidelines ask for a prominent link to Pexels and credit to the photographer whenever possible. Every photo result includes the photographer name and profile URL, so a workflow can store the credit line next to the image.

Can the Pexels API search videos as well as photos?

Yes. Search for Videos, Popular Videos and Get a Video are documented endpoints, now served under api.pexels.com/v1/videos. Name which video file to keep in the brief so later steps get one link.

Does the Pexels API let me upload or like photos?

No. The documented endpoints read content: photo and video search, the curated photo feed, popular videos, single photo or video lookup, featured collections and your own collections. Requests use an API key in the Authorization header.

Why does the same search return different photos on different days?

The library keeps growing, and Pexels says it adds at least one new photo per hour to the curated list. Store the chosen photo id if the image must stay fixed once approved.

Your first workflow is one sentence away.

One workflow free. No card. Weekly AI-building limits.