search_images
Search stock photos for products and get ready-to-use WebCake CDN URLs, ensuring images display correctly in the storefront.
Instructions
Search stock photos (Pexels) for a page/product. IMPORTANT: the storefront only renders images served from the WebCake CDN (image domains are whitelisted) — raw Pexels URLs will NOT display. By default this re-hosts each result on the WebCake CDN and returns a ready-to-use cdn_url (cached, so repeats are free). Use cdn_url for image src / product images. Requires the PEXELS_API_KEY environment variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Subject to search, e.g. 'coffee shop interior' | |
| upload | No | Re-host each result on the WebCake CDN and return cdn_url (default true — required for the image to show). Set false to only browse Pexels URLs. | |
| per_page | No | How many results (default 6) | |
| orientation | No | Preferred orientation |