Search Pexels Photos
pexels_search_photosSearch Pexels for photos by keyword, then narrow results with orientation, size, color, or locale filters. Returns compact photo objects with pre-sized URLs and attribution credit.
Instructions
Search Pexels for photos matching a query, with optional orientation/size/color/locale filters. Returns compact photo objects with pre-sized URLs and a courtesy credit (attribution is appreciated but not required by the Pexels license). Read-only. Each photo includes several pre-sized URLs in src (original/large2x/large/medium/small/portrait/landscape/tiny) — pick the closest fit rather than always using original.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, 1-based. | |
| size | No | Minimum photo size: large (24MP), medium (12MP), or small (4MP). | |
| color | No | Desired photo color: a named color (red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white) or a hex code like "#ffffff". | |
| query | Yes | The search query, e.g. "ocean", "tigers", "pears". | |
| locale | No | The locale of the search, e.g. "en-US", "fr-FR" (28 supported locales). | |
| per_page | No | Items per page (clamped to a max of 80). | |
| orientation | No | Desired photo orientation. |