Skip to content

Pexels API: Search photos

Search free stock photos on Pexels by subject, orientation, and page. Returns up to 80 photos in search order; Pexels may broaden searches with few exact matches.

pexels.com (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by Pexels.

Inputs

Values from the run on Oct 31, 2026, shown under Output.

Page optionalpage

Results page, e.g. 2.

1 (default)

Whole number 1 or more.

Query, requiredquery

What the photo should show, e.g. office teamwork.

office teamwork

Max Results optionalmax_results

Most photos to return, e.g. 20.

20 (default)

Whole number from 1 to 80.

Orientation optionalorientation

Image orientation, e.g. landscape.

any (default)

One of any, landscape, portrait, square.

Output

From a run on Oct 31, 2026, shortened for this page.
{  "photos": [    {      "width": 5236,      "height": 3491,      "photo_id": 6192762,      "description": "Arrangement of office supplies around teamwork text on black background.",      "licence_note": "Free to use under the Pexels License",      "photographer": "KATRIN BOLOVTSOVA",      "average_colour": "#080F18",      "photo_page_link": "https://www.pexels.com/photo/silver-and-black-pens-on-a-black-surface-6192762/",      "large_image_link": "https://images.pexels.com/photos/6192762/pexels-photo-6192762.jpeg?auto=compress&cs=tinysrgb&w=1880",      "original_image_link": "https://images.pexels.com/photos/6192762/pexels-photo-6192762.jpeg",      "photographer_profile_link": "https://www.pexels.com/@ekaterina-bolovtsova/"    },    {      "width": 3690,      "height": 5535,      "photo_id": 8276211,      "description": "Coworkers joining fists over office desk, symbolizing teamwork and motivation.",      "licence_note": "Free to use under the Pexels License",      "photographer": "PNW Production",      "average_colour": "#726253",      "photo_page_link": "https://www.pexels.com/photo/close-up-of-coworkers-in-an-office-fistbumping-8276211/",      "large_image_link": "https://images.pexels.com/photos/8276211/pexels-photo-8276211.jpeg?auto=compress&cs=tinysrgb&w=1880",      "original_image_link": "https://images.pexels.com/photos/8276211/pexels-photo-8276211.jpeg",      "photographer_profile_link": "https://www.pexels.com/@pnw-prod/"    },    {      "width": 4000,      "height": 6000,      "photo_id": 12903168,      "description": "Professional team collaborating on a project in a well-lit office space.",      "licence_note": "Free to use under the Pexels License",      "photographer": "Mizuno K",      "average_colour": "#9D9C98",      "photo_page_link": "https://www.pexels.com/photo/employees-cooperating-in-office-12903168/",      "large_image_link": "https://images.pexels.com/photos/12903168/pexels-photo-12903168.jpeg?auto=compress&cs=tinysrgb&w=1880",      "original_image_link": "https://images.pexels.com/photos/12903168/pexels-photo-12903168.jpeg",      "photographer_profile_link": "https://www.pexels.com/@mizunokozuki/"    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
pexels.com/search_photos
Returns
photo description, photographer, image links, size, licence, photo page

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method pexels.com/search_photos with the inputs above.

Ask your agent

  • Find me 30 free landscape-oriented stock photos of misty mountain lakes at sunrise for a website hero banner.
  • I need portrait-format images of a barista pouring latte art, free to use commercially — show me who took each one and the licence.
  • Pull page 3 of Pexels results for 'remote work home office' so I can see more options beyond what I've already browsed.
  • Get square photos of fresh vegetables on a wooden table that I can use for Instagram posts, around 15 of them.
  • Search Pexels for 'diverse team brainstorming whiteboard' photos, any orientation, and give me download links and image dimensions.
  • Finds free stock videos on Pexels by search words, with creator, duration, preview image and a direct MP4 link, in Pexels search order starting at the chosen results page.

    pexels.com/search_videos
  • Finds Unsplash photos matching a search phrase, in search order, optionally by shape; excludes Unsplash+ photos unless included. Each result has image links, photographer, licence and photo page.

    unsplash.com/search_photos
  • Finds free-to-use Wikimedia Commons images for a topic in Commons relevance order. Each image comes with its links, creator and licence details.

    commons.wikimedia.org/search_free_images
  • Finds Pinterest pins for an idea in search order, with image, creator, board, saves and linked website. Limited to the first public search page.

    pinterest.com/search_pins
  • Searches Open Food Facts packaged foods by name, optionally filtered by diet, country where sold and brand, ordered by popularity (most scanned first).

    openfoodfacts.org/search_products
  • Searches PyPI by keywords and returns matching packages in relevance order, each with its latest version and that version's release date. Returns up to 100 results.

    pypi.org/search_packages
  • Searches Apartments.com rentals by city, neighborhood, or ZIP code, with optional rent, bedroom, pet, and page filters. Rent and availability wording is returned when displayed; missing details are null.

    apartments.com/search_apartments
  • Searches B&H Photo products by keywords, with optional price range and sort order, and returns prices, savings, stock, ratings, identifiers, images and links in site order. Exact category names fall back to phrase matching to show products.

    bhphotovideo.com/search_products