# Wikimedia Commons — card for AI agents

Free media repository of photos, SVGs, video and audio under per-file free licenses, with the MediaWiki API.

Category: Open and public-domain media · maker Wikimedia Foundation · checked 2026-10-10

## Price
- Price: Free
- Free tier: Free. Wikimedia Enterprise has free and paid tiers for high-volume commercial use.

## License
Per file (usually CC BY, CC BY-SA, GFDL or public domain) — https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia

- commercial: **conditions** (Commercial use with conditions)
  > almost all content hosted on Wikimedia Commons may be freely reused subject to certain restrictions
  (https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia)
- attribution: **varies** (Credit depends on the item)
  > some licenses require that the original creator be attributed.
  (https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia)
- in app: **conditions** (Ship inside your app with conditions)
- youtube: **conditions** (Monetized YouTube with conditions)

## Rules to follow
- Send a descriptive User-Agent and make requests serially with maxlag.
- Credit the creator (not the uploader), name the license and link to it.
- License substantially new works as a ShareAlike file's license requires.
- Check trademark, personality and privacy rights; images of people may need consent for commercial use.

## Can an AI agent use it by itself?
**Yes** · free-api: Agent calls a free official API or MCP

## How an agent gets files
- MediaWiki Action API on commons.wikimedia.org (prop=imageinfo returns file URLs and license metadata); no key needed. (sign-in: none)
- Not allowed: Send an informative User-Agent with contact information
- Not allowed: Make requests in series, not in parallel, and send maxlag for non-interactive tasks
- Not allowed: ShareAlike files: modifications must also be similarly freely licensed
- Not allowed: Trademark, personality and privacy rights are separate; commercial use of images of people may need the subject's agreement

## How to connect
- Public API
- API docs: https://www.mediawiki.org/wiki/API:Imageinfo
- API limits: Unidentified 10 req/min; bots with a compliant User-Agent 200 req/min; established editors 2,000 req/min; keep 3 or fewer concurrent requests.
- Website: https://commons.wikimedia.org

## Notes
The WMF gives no warranty on copyright status; verify each file.

## Lines to paste into your prompt or AGENTS.md

```
- Wikimedia Commons (Open and public-domain media). Free media repository of photos, SVGs, video and audio under per-file free licenses, with the MediaWiki API. Price: free; commercial use with conditions; credit depends on the item; ship inside your app with conditions.
  Connect: API docs https://www.mediawiki.org/wiki/API:Imageinfo. Limits: Unidentified 10 req/min; bots with a compliant User-Agent 200 req/min; established editors 2,000 req/min; keep 3 or fewer concurrent requests.
  Get files: MediaWiki Action API on commons.wikimedia.org (prop=imageinfo returns file URLs and license metadata); no key needed.
  Not allowed: Send an informative User-Agent with contact information
  Not allowed: Make requests in series, not in parallel, and send maxlag for non-interactive tasks
  Not allowed: ShareAlike files: modifications must also be similarly freely licensed
  Not allowed: Trademark, personality and privacy rights are separate; commercial use of images of people may need the subject's agreement
  Rule: Send a descriptive User-Agent and make requests serially with maxlag.
  Rule: Credit the creator (not the uploader), name the license and link to it.
  Rule: License substantially new works as a ShareAlike file's license requires.
  Rule: Check trademark, personality and privacy rights; images of people may need consent for commercial use.
  License: https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia (checked 2026-10-10; details: https://agentgid.com/assets/wikimedia-commons/)
```

Not verified: That iiprop=extmetadata returns license fields; whether BY-SA extends to a whole video using one BY-SA clip.

## Links
- AgentGid page: https://agentgid.com/assets/wikimedia-commons/
- Is it free for commercial use? https://agentgid.com/assets/wikimedia-commons/commercial-use/
- Source: https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia
- Source: https://www.mediawiki.org/wiki/API:Etiquette
- Source: https://www.mediawiki.org/wiki/Wikimedia_APIs/Rate_limits
- Source: https://www.mediawiki.org/wiki/API:Imageinfo
- Source: https://www.wikimediastatus.net

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
