Skip to content

Wikimedia Commons API: Search free images

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 (opens in a new tab)Version 2ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by Wikimedia Commons.

Inputs

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

Query, requiredquery

What the image should show, for example Golden Gate Bridge at night.

Golden Gate Bridge at night

Max Results optionalmax_results

Maximum number of images to return, for example 20.

20

Whole number from 1 to 50. Default 20.

Output

From a run on Oct 26, 2026, shortened for this page.
{  "images": [    {      "title": "Golden Gate Bridge by night.jpg",      "width": 1800,      "author": "Daniel Schwen",      "height": 1283,      "description": "Golden Gate Bridge at looking south-south-east by night looking south across the Golden Gate towards San Francisco.",      "licence_link": "http://creativecommons.org/licenses/by-sa/3.0/",      "licence_name": "CC BY-SA 3.0",      "file_page_link": "https://commons.wikimedia.org/wiki/File:Golden_Gate_Bridge_by_night.jpg",      "thumbnail_link": "https://thumb.wikimedia.org/wikipedia/commons/thumb/c/c2/Golden_Gate_Bridge_by_night.jpg/960px-Golden_Gate_Bridge_by_night.jpg?utm_source=commons.wikimedia.org&utm_campaign=imageinfo&utm_content=thumbnail",      "attribution_text": "\"Golden Gate Bridge by night.jpg\" by Daniel Schwen, CC BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0/), via Wikimedia Commons (https://commons.wikimedia.org/wiki/File:Golden_Gate_Bridge_by_night.jpg)",      "original_image_link": "https://upload.wikimedia.org/wikipedia/commons/c/c2/Golden_Gate_Bridge_by_night.jpg?utm_source=commons.wikimedia.org&utm_campaign=imageinfo&utm_content=original",      "attribution_required": true    },    {      "title": "Golden Gate Bridge and San Francisco skyline from Hawk Hill at Blue Hour dllu.jpg",      "width": 13706,      "author": "Daniel L. Lu (user:dllu)",      "height": 4094,      "description": "The Golden Gate Bridge and San Francisco as seen from Hawk Hill during blue hour.",      "licence_link": "https://creativecommons.org/licenses/by-sa/4.0",      "licence_name": "CC BY-SA 4.0",      "file_page_link": "https://commons.wikimedia.org/wiki/File:Golden_Gate_Bridge_and_San_Francisco_skyline_from_Hawk_Hill_at_Blue_Hour_dllu.jpg",      "thumbnail_link": "https://thumb.wikimedia.org/wikipedia/commons/thumb/2/20/Golden_Gate_Bridge_and_San_Francisco_skyline_from_Hawk_Hill_at_Blue_Hour_dllu.jpg/960px-Golden_Gate_Bridge_and_San_Francisco_skyline_from_Hawk_Hill_at_Blue_Hour_dllu.jpg?utm_source=commons.wikimedia.org&utm_campaign=imageinfo&utm_content=thumb…",      "attribution_text": "\"Golden Gate Bridge and San Francisco skyline from Hawk Hill at Blue Hour dllu.jpg\" by Daniel L. Lu (user:dllu), CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0), via Wikimedia Commons (https://commons.wikimedia.org/wiki/File:Golden_Gate_Bridge_and_San_Francisco_skyline_from_Hawk_Hill_a…",      "original_image_link": "https://upload.wikimedia.org/wikipedia/commons/2/20/Golden_Gate_Bridge_and_San_Francisco_skyline_from_Hawk_Hill_at_Blue_Hour_dllu.jpg?utm_source=commons.wikimedia.org&utm_campaign=imageinfo&utm_content=original",      "attribution_required": true    },    {      "title": "Fort Point National Historic Site and Golden Gate Bridge.jpg",      "width": 2000,      "author": "Brocken Inaglory",      "height": 1333,      "description": "Fort Point National Historic Site and Golden Gate Bridge.",      "licence_link": "https://creativecommons.org/licenses/by-sa/3.0",      "licence_name": "CC BY-SA 3.0",      "file_page_link": "https://commons.wikimedia.org/wiki/File:Fort_Point_National_Historic_Site_and_Golden_Gate_Bridge.jpg",      "thumbnail_link": "https://thumb.wikimedia.org/wikipedia/commons/thumb/a/a3/Fort_Point_National_Historic_Site_and_Golden_Gate_Bridge.jpg/960px-Fort_Point_National_Historic_Site_and_Golden_Gate_Bridge.jpg?utm_source=commons.wikimedia.org&utm_campaign=imageinfo&utm_content=thumbnail",      "attribution_text": "\"Fort Point National Historic Site and Golden Gate Bridge.jpg\" by Brocken Inaglory, CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0), via Wikimedia Commons (https://commons.wikimedia.org/wiki/File:Fort_Point_National_Historic_Site_and_Golden_Gate_Bridge.jpg)",      "original_image_link": "https://upload.wikimedia.org/wikipedia/commons/a/a3/Fort_Point_National_Historic_Site_and_Golden_Gate_Bridge.jpg?utm_source=commons.wikimedia.org&utm_campaign=imageinfo&utm_content=original",      "attribution_required": true    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
commons.wikimedia.org/search_free_images
Returns
title, description, image and thumbnail links, size, author, licence, attribution text, file 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 commons.wikimedia.org/search_free_images with the inputs above.

Ask your agent

  • Find me 10 freely licensed photos of the Eiffel Tower at sunset, with the author and licence for each so I can credit them properly.
  • I need public domain or Creative Commons images of red pandas for a school presentation — give me around 15 with attribution text.
  • Search Wikimedia Commons for pictures of the Mars Curiosity rover and return the full-size and thumbnail URLs.
  • Get up to 30 reusable images of traditional Japanese tea ceremonies, including image dimensions and the file page link.
  • Pull 5 Commons images of the Great Barrier Reef coral that I can legally put on my blog, along with who made them and the licence terms.

See more

  • 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/search_photos
  • 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
  • Searches Britannica for encyclopedia articles and returns their titles, short descriptions, article links and images when shown. Excludes other search formats such as videos, questions and stories.

    britannica.com/search_articles
  • Searches a Wikipedia language edition by keywords and returns matching articles in relevance order, with descriptions, snippets, word counts, last edit dates and links.

    wikipedia.org/search_articles
  • 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 NASA public photos, videos or audio by words and creation year, returning matches in relevance order with thumbnails and full-size file links.

    nasa.gov/search_images
  • Finds public Hugging Face models by search words, with an optional task and sort order. License is null when the model does not publish one.

    huggingface.co/search_models
  • 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