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.
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 offers a free API that provides access to a vast library of high-quality photos and videos, enabling seamless integration into applications and websites.
Through its API, with the provider’s credentials and permissions.
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 serverTeams 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.
Starter briefs to set up with your accounts, not finished workflows.
Gives an editor three landscape options with credit lines already written, instead of a blank image slot.
Uses the video search endpoint and keeps one file so the next step receives a single link.
A low-volume read of the curated feed that respects the attribution guidelines.
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.
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.
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.
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.
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.
One workflow free. No card. Weekly AI-building limits.